:root {
    --maroon: #6D2C2F;
    --maroon-dark: #5A2326;
    --cream: #F9F6F1;
    --cream-deep: #F2EEE8;
    --text: #2D2522;
    --muted: #6E625B;
    --line: #DED8D0;
    --line-strong: #CFC6BC;
    --success-bg: #F2F7F3;
    --success-text: #356146;
    --error-bg: #FBF2F2;
    --error-text: #8B3A3E;
    --shadow-soft: 0 22px 55px rgba(63, 43, 36, 0.07);
    --radius-lg: 10px;
    --radius-md: 6px;
    --radius-sm: 4px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--text);
    min-height: 100%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.signup-page {
    min-height: 100vh;
    padding: 56px 20px;
    background:
        linear-gradient(to bottom, rgba(109, 44, 47, 0.03), rgba(109, 44, 47, 0)),
        var(--cream);
    animation: pageFadeIn 1.1s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.honeypot-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.signup-wrap {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: start;
}

.signup-intro {
    position: sticky;
    top: 54px;
    max-width: 470px;
    padding-top: 34px;
}

.overline {
    margin: 0 0 18px;
    color: var(--maroon);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}

.signup-intro h1,
.success-wrap h1 {
    margin: 0;
    color: var(--maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.98;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.intro-copy {
    margin: 24px 0 0;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.8;
}

.intro-meta {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
}

.refined-meta {
    padding-top: 18px;
    border-top: 1px solid rgba(109, 44, 47, 0.18);
    color: var(--maroon);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--maroon);
    display: inline-block;
}

.signup-card,
.success-wrap {
    position: relative;
    background: #fffdfa;
    border: 1px solid rgba(109, 44, 47, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.signup-card {
    padding: 40px 38px 34px;
}

.signup-card::before,
.success-wrap::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(109, 44, 47, 0.10);
    pointer-events: none;
}


.signup-card__top {
    padding: 22px 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(109, 44, 47, 0.16);
}

.section-label {
    margin: 0 0 10px;
    color: var(--maroon);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}

.signup-card__top h2,
.success-panel h2 {
    margin: 0;
    color: var(--maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.section-copy {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.98rem;
}

.online-note {
    margin-top: 22px;
    padding: 18px 0 0;
    border-top: 1px solid rgba(109, 44, 47, 0.14);
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.online-note__label {
    display: block;
    margin-bottom: 6px;
    color: var(--maroon);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.online-note a,
.fine-print a,
.success-panel a {
    color: var(--maroon);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(109, 44, 47, 0.35);
}

.online-note a:hover,
.fine-print a:hover,
.success-panel a:hover {
    border-bottom-color: var(--maroon);
}

.signup-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(109, 44, 47, 0.20);
    border-radius: 3px;
    background: #fffefc;
    color: var(--text);
    padding: 13px 14px;
    font: inherit;
    outline: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: #978981;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 2px rgba(109, 44, 47, 0.07);
    transform: translateY(-1px);
}

.field-hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.subsection {
    position: relative;
    padding: 24px 0 22px;
    border: none;
    border-top: 1px solid rgba(109, 44, 47, 0.14);
    border-bottom: 1px solid rgba(109, 44, 47, 0.08);
    border-radius: 0;
    background: transparent;
}

.subsection-head {
    margin-bottom: 16px;
}

.subsection-head h3 {
    margin: 0;
    color: var(--maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 500;
}

.subsection-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.consent-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-top: 1px solid rgba(109, 44, 47, 0.12);
    cursor: pointer;
}

.consent-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.consent-checkbox {
    padding-top: 2px;
    flex: 0 0 auto;
}

.consent-checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--maroon);
    border-radius: 2px;
}

.consent-content strong {
    display: block;
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 600;
}

.consent-content small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.submit-wrap {
    padding-top: 8px;
}

.submit-button {
    width: 100%;
    min-height: 56px;
    margin-top: 4px;
    border: 1px solid var(--maroon);
    border-radius: 3px;
    background: var(--maroon);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.submit-button:hover {
    background: transparent;
    color: var(--maroon);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(109, 44, 47, 0.08);
}

.submit-button:disabled {
    opacity: 0.92;
    cursor: wait;
}

.button-loader {
    width: 16px;
    height: 16px;
    display: none;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.submit-button:hover .button-loader {
    border-color: rgba(109, 44, 47, 0.22);
    border-top-color: var(--maroon);
}

.submit-button.is-loading .button-loader {
    display: inline-block;
}

.fine-print {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.79rem;
    line-height: 1.6;
    text-align: center;
}

.message-stack,
.form-errors {
    margin-bottom: 18px;
}

.message,
.form-errors {
    border-radius: 4px;
    padding: 13px 14px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.message-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #D7E7DA;
}

.message-error,
.form-errors {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #E8CBCD;
}

.field-error {
    margin: 8px 0 0;
    color: var(--error-text);
    font-size: 0.82rem;
    line-height: 1.45;
}

.checkbox-error {
    margin-left: 32px;
}

.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
}

.success-wrap {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 48px 40px;
    text-align: center;
}

.success-mark {
    width: 70px;
    height: 70px;
    margin: 10px auto 28px;
    border-radius: 4px;
    border: 1px solid rgba(109, 44, 47, 0.18);
    background: #fffefc;
    display: grid;
    place-items: center;
}

.success-mark span {
    width: 28px;
    height: 14px;
    border-left: 3px solid var(--maroon);
    border-bottom: 3px solid var(--maroon);
    transform: rotate(-45deg) translate(1px, -1px);
}

.success-copy {
    margin: 22px auto 0;
    max-width: 480px;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.75;
}

.success-copy strong {
    color: var(--maroon);
    font-weight: 600;
}

.success-panel {
    margin: 28px 0 24px;
    padding: 22px 0 0;
    border: none;
    border-top: 1px solid rgba(109, 44, 47, 0.14);
    border-radius: 0;
    background: transparent;
}

.success-panel p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.secondary-panel {
    margin-top: -8px;
}

.text-link {
    color: var(--maroon);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.text-link:hover {
    text-decoration: underline;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: revealUp 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-1 { animation-delay: 0.12s; }
.reveal-2 { animation-delay: 0.28s; }
.reveal-3 { animation-delay: 0.44s; }
.reveal-4 { animation-delay: 0.60s; }
.reveal-5 { animation-delay: 0.76s; }
.reveal-6 { animation-delay: 0.92s; }
.reveal-7 { animation-delay: 1.08s; }
.reveal-8 { animation-delay: 1.24s; }
.reveal-9 { animation-delay: 1.40s; }

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

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

@media (max-width: 940px) {
    .signup-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .signup-intro {
        position: static;
        max-width: none;
        padding-top: 0;
    }

    .signup-intro::after {
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .signup-page,
    .success-page {
        padding: 28px 14px;
    }

    .signup-card,
    .success-wrap {
        padding: 30px 22px;
    }

    .signup-card::before,
    .success-wrap::before {
        inset: 9px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .signup-intro h1,
    .success-wrap h1 {
        font-size: clamp(2.25rem, 12vw, 3.2rem);
    }

    .signup-card__top h2 {
        font-size: 1.6rem;
    }

    .subsection {
        padding: 22px 0 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
