/* Base styles and resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: #1A1A1A;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    margin: 0;
}

/* Container layout for magazine format */
.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.form-section {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.magazine-section {
    width: 50%;
    background: #433E3A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.magazine-cover {
    width: 90%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out;
}

/* Form container */
.form-container {
    width: 100%;
    max-width: 560px;
    padding: 3rem 2rem;
    background: white;
}

.form-step {
    width: 100%;
    position: relative;
    transition: opacity 0.3s ease;
}

/* Success page container */
.success-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10; /* Make sure it's above the main container */
}

.success-content {
    width: 100%;
    max-width: 560px;
    padding: 3rem;
    text-align: center;
    background: white;
}

/* Typography */
h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    text-align: center;
    letter-spacing: -0.02em;
}

.form-description {
    text-align: center;
    color: #4A4A4A;
    margin-bottom: 2.5rem;
    font-size: 0.9375rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 32px 0;
}

.line {
    width: 64px;
    height: 2px;
    background-color: #E5E5E5;
}

.line.active {
    background-color: #1A1A1A;
}

/* Form groups */
.form-group {
    margin-bottom: 1.75rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.9375rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    color: #1A1A1A;
    background-color: #ffffff;
    font-family: inherit;
    outline: none !important;
    box-shadow: none !important;
}

/* Active field state styling - simplified to just border color */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1A1A1A;
    box-shadow: none !important;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%231A1A1A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Buttons */
.btn-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    background-color: #1A1A1A;
    color: white;
    width: 100%;
    margin-top: 1rem;
    outline: none !important;
    box-shadow: none !important;
}

.btn-continue:hover {
    background-color: #333;
}

.btn-continue::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.33334 8H12.6667M12.6667 8L8.00001 3.33333M12.6667 8L8.00001 12.6667' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    margin-left: 0.5rem;
}

.back-link-container {
    text-align: center;
    margin-top: 2.5rem;
}

.back-to-times {
    color: #4A4A4A;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    display: inline-block;
    position: relative;
}

.back-to-times:hover {
    color: #1A1A1A;
}

.back-to-times::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    left: 0;
    bottom: -2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
    transform-origin: right;
}

.back-to-times:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Thank you page specific styles */
.thank-you-message {
    text-align: center;
    margin-bottom: 2rem;
    color: #4A4A4A;
    font-size: 0.9375rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.highlighted-text {
    color: #1A1A1A;
    font-weight: 500;
}

.notification-box {
    background-color: #F7F7F7;
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    align-items: flex-start;
    text-align: left;
}

.notification-icon {
    position: relative;
    flex-shrink: 0;
}

.mail-icon {
    width: 88px;
    height: 88px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #E94040;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.notification-text h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #1A1A1A;
}

.notification-text p {
    font-size: 0.8rem;
    color: #4A4A4A;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

/* Error styling */
input.error,
select.error,
textarea.error {
    border-color: #E94040 !important;
    background-color: rgba(233, 64, 64, 0.05);
}

.error-message {
    color: #E94040;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    display: block;
}

/* ConvertKit Form Styling */
.formkit-form {
    width: 100%;
}

.formkit-fields {
    width: 100%;
}

.formkit-field {
    margin-bottom: 1.75rem;
}

.formkit-input, 
.formkit-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #E5E5E5 !important;
    border-radius: 4px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    color: #1A1A1A;
    background-color: #ffffff;
    font-family: inherit;
    outline: none !important;
    box-shadow: none !important;
}

/* Active field state for ConvertKit form fields - simplified to just border color */
.formkit-input:focus,
.formkit-select:focus {
    outline: none;
    border-color: #1A1A1A !important;
    box-shadow: none !important;
}

[data-group="dropdown"] {
    position: relative;
    width: 100%;
}

[data-group="dropdown"]::before {
    content: "";
    top: calc(50% - 2.5px);
    right: 1rem;
    position: absolute;
    pointer-events: none;
    border-color: #1A1A1A transparent transparent transparent;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    height: 0;
    width: 0;
    z-index: 999;
}

.formkit-select {
    appearance: none;
    padding-right: 2.5rem;
}

.formkit-alert {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    color: #E94040;
    border-radius: 4px;
    margin-bottom: 1rem;
    list-style: none;
}

.hidden-submit {
    display: none !important;
}

.hidden-on-step-1 {
    display: none;
}

.formkit-powered-by-convertkit-container {
    display: none !important; /* Hide the powered by link */
}

/* Additional CSS to ensure no red borders */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

.formkit-input, .formkit-select {
    border: 1px solid #E5E5E5 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .form-container, .success-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .form-section, 
    .magazine-section {
        width: 100%;
    }

    .form-section {
        padding: 2rem 1rem;
        order: 2;
    }

    .magazine-section {
        min-height: 40vh;
        order: 1;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .success-content {
        padding: 2rem 1rem;
    }
    
    /* Center notification box on mobile */
    .notification-box {
        padding: 1.5rem;
        gap: 1.5rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .notification-text p,
    .notification-text h4 {
        text-align: center;
    }

    .mail-icon {
        width: 80px;
        height: 80px;
        padding: 16px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .notification-box {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .mail-icon {
        width: 72px;
        height: 72px;
    }
    
    .notification-badge {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
    
    .form-container, .success-content {
        padding: 1.5rem 1rem;
    }
    
    .btn-continue {
        height: 44px;
        font-size: 0.875rem;
    }
}