/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #3a3a3a;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    background: linear-gradient(180deg, #f0e6d8 0%, #d9c2a3 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='32' height='32' filter='url(%23f)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

#form-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f0e6d8 0%, #d9c2a3 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

h1, h2, .hero-motto, .eyebrow {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

p, label, input, select, textarea, .form-disclaimer, .supporting-text, .positioning-line, .next-steps, .microcopy {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
}


/* ===========================
   HERO STATE
   =========================== */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #d9c2a3;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    transition: transform 0.2s ease-out;
}

.hero-logo {
    width: 220px;
    height: auto;
    margin-bottom: 38px;
    animation: fadeInLogo 1s ease-out forwards;
    opacity: 0;
}

.hero-motto {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 500;
    letter-spacing: 0.6px;
    color: #faf8f4;
    opacity: 0;
    line-height: 1.12;
    margin: 0 auto;
    max-width: 720px;
}

@keyframes fakeBlink {
    0%, 100% { border-right-color: transparent; }
    50% { border-right-color: #faf8f4; }
}

.hero-motto.typing {
    border-right: 1px solid #faf8f4;
    animation: fakeBlink 1s steps(1, end) infinite;
}

.form-intro h2 {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #2a2a2a;
    margin-bottom: 12px;
    line-height: 1.2;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: #8b7a6a;
    margin-bottom: 8px;
    text-transform: uppercase;
    display: block;
}

.positioning-line {
    font-size: 1.1rem;
    font-weight: 500;
    color: #6b6b6b;
    margin-bottom: 20px;
    font-style: italic;
}

.supporting-text {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #5a5a5a;
    margin-bottom: 32px;
}

.divider {
    width: 80px;
    height: 1px;
    background-color: rgba(42, 42, 42, 0.12);
    margin: 32px auto 0;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInMottoDelayed {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   FORM PAGE
   =========================== */
#form-page {
    min-height: 100vh;
    background-color: #d9c2a3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

#form-page.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.form-wrapper {
    width: 100%;
    max-width: 580px;
    animation: slideUpForm 0.8s ease-out 0.3s forwards;
    opacity: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideUpForm {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-intro {
    margin-bottom: 44px;
    text-align: center;
}

.form-logo {
    margin-bottom: 24px;
    text-align: center;
    opacity: 0.85;
}

.form-logo img {
    max-width: 110px;
    height: auto;
    opacity: 0.85;
}

.eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8b7a6a;
    margin-bottom: 16px;
    display: block;
}

.form-intro h2 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 300;
    letter-spacing: -0.5px;
    color: #2a2a2a;
    margin-bottom: 20px;
    line-height: 1.15;
}

.supporting-text {
    font-size: 1.05rem;
    color: #5a5a5a;
    font-weight: 400;
    line-height: 1.6;
}

/* ===========================
   PREMIUM FORM STYLES
   =========================== */
.premium-form {
    position: relative;
    background-color: rgba(252, 249, 243, 0.92);
    padding: 56px;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(27, 23, 18, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.premium-form::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 36px rgba(255, 255, 255, 0.35);
    pointer-events: none;
    z-index: 0;
}

.premium-form > * {
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

.form-row:last-child {
    margin-bottom: 0;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row.full {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Inter', inherit;
    font-size: 1rem;
    padding: 20px 0;
    border: none;
    border-bottom: 2px solid #e8dcc9;
    background-color: transparent;
    color: #2a2a2a;
    border-radius: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.12px;
    min-height: 60px;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: #b0a09a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #a38a73;
    background-color: transparent;
    box-shadow: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    font-size: 1rem;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232a2a2a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 24px;
}

/* ===========================
   SUBMIT BUTTON
   =========================== */
.submit-btn {
    background-color: #4a4a4a;
    color: #ffffff;
    border: 2px solid #4a4a4a;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 16px;
    cursor: pointer;
    margin-top: 40px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Inter', inherit;
    box-shadow: 0 6px 20px rgba(74, 74, 74, 0.25);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover {
    background-color: #3a3a3a;
    border-color: #3a3a3a;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(74, 74, 74, 0.35);
}

.submit-btn:hover::before {
    left: 100%;
}

.loading-ring {
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    display: inline-block;
    animation: ring-spin 0.75s linear infinite;
    vertical-align: middle;
}

@keyframes ring-spin {
    to { transform: rotate(360deg); }
}

.submit-btn:active {
    transform: translateY(0);
}

.what-happens-next {
    margin-top: 24px;
    text-align: center;
}

.microcopy {
    font-size: 0.9rem;
    color: #8b7a6a;
    font-weight: 500;
    margin-bottom: 8px;
}

.next-steps {
    font-size: 0.95rem;
    color: #6b6b6b;
    line-height: 1.5;
    font-weight: 400;
}

.social-proof {
    margin-top: 32px;
    padding: 20px;
    background: rgba(217, 194, 163, 0.1);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(217, 194, 163, 0.2);
}

.social-proof p {
    font-size: 1rem;
    font-weight: 500;
    color: #5a5a5a;
    font-style: italic;
    margin: 0;
}

.social-link {
    text-align: center;
    margin-top: 24px;
}

.social-icon-link {
    color: #8b7a6a;
    transition: color 0.3s ease;
    display: inline-block;
}

.social-icon-link:hover {
    color: #a38a73;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
}

.footer-content p {
    font-size: 0.9rem;
    color: #8b7a6a;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

.footer-content p br {
    display: block;
}

@media (min-width: 600px) {
    .footer-content p br {
        display: inline;
        content: " ";
        margin: 0 4px;
    }
}

.social-link {
    text-align: center;
    margin-top: 14px;
}

.social-icon-link {
    color: #faf8f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(42, 42, 42, 0.9);
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-icon-link:hover,
.social-icon-link:focus {
    background: rgba(42, 42, 42, 1);
    transform: translateY(-2px);
    color: #ffffff;
}

.social-icon-link {
    text-decoration: none;
}

.social-icon-link svg {
    width: 20px;
    height: 20px;
    stroke: #faf8f4;
}

.social-icon-link:hover svg,
.social-icon-link:focus svg {
    stroke: #ffffff;
}

/* ===========================
   SUCCESS STATE
   =========================== */
.success-state {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: slideUpForm 0.8s ease-out 0.3s forwards;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.success-state.hidden {
    display: none;
}

.success-content {
    max-width: 400px;
    margin: 0 auto;
}

.success-icon {
    width: 72px;
    height: 72px;
    color: #2a2a2a;
    margin-bottom: 28px;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: checkmarkAnimation 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes checkmarkAnimation {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-state h3 {
    font-size: 2.2rem;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 16px;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.success-state p {
    font-size: 1.1rem;
    color: #5a5a5a;
    line-height: 1.6;
    font-weight: 400;
}
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.hidden {
    display: none !important;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 40px 32px;
    }
    
    .success-state {
        padding: 50px 30px;
    }
    
    .form-intro h2 {
        font-size: 2.2rem;
    }
    
    .hero-motto {
        font-size: 2rem;
    }
    
    .hero-logo {
        width: 150px;
    }
    
    #form-page {
        padding: 40px 20px;
    }
    
    .submit-btn {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .positioning-line {
        font-size: 1rem;
    }
    
    .supporting-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .form-wrapper {
        padding: 32px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .form-intro h2 {
        font-size: 1.8rem;
    }
    
    .positioning-line {
        font-size: 0.95rem;
    }
    
    .supporting-text {
        font-size: 0.95rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 18px 24px;
        font-size: 1rem;
    }
    
    .hero-logo {
        width: 120px;
        margin-bottom: 24px;
    }
    
    .hero-motto {
        font-size: 1.8rem;
        letter-spacing: 0.3px;
    }
    
    .eyebrow {
        font-size: 1rem;
    }
    
    /* Radio buttons stack vertically on mobile */
    .form-group div[style*="display: flex"] {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .form-group div[style*="display: flex"] label {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .success-state {
        padding: 40px 20px;
    }
    
    .success-state h3 {
        font-size: 1.8rem;
    }
    
    .social-proof {
        padding: 16px;
        margin-top: 24px;
    }
    
    .what-happens-next {
        margin-top: 20px;
    }
    
    .site-footer {
        margin-top: 40px;
        padding: 30px 20px;
    }
}