:root {
    color-scheme: light;
    --bg: #fff4fb;
    --panel: rgba(255,255,255,0.94);
    --panel-strong: rgba(255,250,255,0.98);
    --border: rgba(172,84,217,0.16);
    --accent: #ac54d9;
    --accent-soft: #ff8dc2;
    --text: #3f2d56;
    --muted: #7c6c91;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(172,84,217,0.14), transparent 26%),
                radial-gradient(circle at bottom right, rgba(255,112,194,0.18), transparent 32%),
                linear-gradient(180deg, #fff4fb 0%, #ffedf8 100%);
    min-height: 100vh;
}
.page-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 40px 0 80px;
}
.signup-brand {
    display: block;
    width: fit-content;
    text-align: center;
    margin-bottom: 28px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.2s ease;
}
.signup-brand:hover {
    transform: translateY(-1px);
}
.signup-brand img {
    max-width: min(180px, 45vw);
    height: auto;
}
.heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 32px;
    padding: 0 12px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: '';
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(255,255,255,0.35));
}
.heading h1 {
    margin: 16px 0 10px;
    font-size: clamp(2.4rem, 3vw, 3.4rem);
    line-height: 1.04;
}
.step-heading {
    text-align: left;
    max-width: 620px;
    margin: 0 0 24px;
    padding: 0;
}
.step-heading h1 {
    margin: 10px 0 0;
    font-size: clamp(1.55rem, 2vw, 2.1rem);
    line-height: 1.15;
}
.heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}
.form-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px;
    border: 1px solid rgba(255,149,187,0.35);
    border-radius: 28px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 28px 70px rgba(195,96,138,0.12);
    max-width: 1080px;
    margin: 0 auto;
}
.form-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    gap: 24px;
    align-items: end;
}
.section-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.form-overview h2,
.step-copy h3 {
    margin: 0;
    color: var(--text);
    line-height: 1.15;
}
.form-overview h2 {
    font-size: clamp(1.5rem, 2.3vw, 2.15rem);
}
.progress-shell {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(172,84,217,0.12);
}
.progress-bar {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    transition: width 0.25s ease;
}
.autosave-status {
    grid-column: 2;
    min-height: 18px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: right;
}
.form-tabs {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(172,84,217,0.12);
    border-radius: 18px;
    background: rgba(255,244,251,0.82);
}
.tab-pill {
    flex: 1 1 140px;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
    border: 1px solid transparent;
}
.tab-pill:hover {
    transform: none;
    box-shadow: none;
    color: var(--accent);
}
.tab-pill.is-active {
    background: #fff;
    color: var(--accent);
    border-color: rgba(172,84,217,0.18);
    box-shadow: 0 12px 28px rgba(172,84,217,0.1);
}
.tab-pill.is-complete {
    color: #6c4382;
}
.registration-form .form-step {
    display: none;
}
.registration-form .form-step.is-active {
    display: block;
}
.form-step {
    padding-top: 4px;
}
.step-copy {
    max-width: 680px;
    margin-bottom: 26px;
}
.step-copy h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}
.step-copy p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}
.registration-note {
    display: inline-flex;
    margin-top: 12px !important;
    padding: 10px 12px;
    border: 1px solid rgba(172,84,217,0.16);
    border-radius: 12px;
    background: rgba(172,84,217,0.08);
    color: var(--text) !important;
    font-size: 0.92rem;
    font-weight: 700;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.grid-2 .field {
    width: 100%;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
label {
    font-size: 0.92rem;
    color: #664859;
    font-weight: 700;
}
input, select {
    border: 2px solid rgba(122,45,169,0.62);
    border-radius: 16px;
    background: #fff;
    color: #3b2b34;
    padding: 16px 18px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 52px;
}
input::placeholder,
select option[value=""] {
    color: #b38a9c;
}
input:focus, select:focus {
    border-color: #6f249f;
    box-shadow: 0 0 0 6px rgba(172,84,217,0.14);
}
.password-field {
    position: relative;
    display: block;
}
.password-field input {
    width: 100%;
    padding-right: 58px;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--text);
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}
.password-toggle svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.password-toggle .eye-closed {
    display: none;
}
.password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}
.password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}
.password-toggle:hover {
    background: rgba(172,84,217,0.12);
    color: var(--accent);
}
.inline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.triple-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.full-row {
    grid-column: 1 / -1;
}
textarea {
    border: 2px solid rgba(122,45,169,0.62);
    border-radius: 16px;
    background: #fff;
    color: #3b2b34;
    padding: 16px 18px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 130px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea:focus {
    border-color: #6f249f;
    box-shadow: 0 0 0 6px rgba(172,84,217,0.14);
}
.field-error input,
.field-error select,
.field-error textarea {
    border-color: #ff4f7e;
    box-shadow: 0 0 0 5px rgba(255,79,126,0.12);
}
.field-error label {
    color: #c92d5d;
}
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}
.multi-check-dropdown {
    position: relative;
}
.multi-check-dropdown summary {
    list-style: none;
    min-height: 56px;
    border: 2px solid rgba(122,45,169,0.62);
    border-radius: 16px;
    background: #fff;
    color: #3b2b34;
    padding: 15px 44px 15px 18px;
    font-size: 1rem;
    font-weight: 400;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.multi-check-dropdown summary::-webkit-details-marker {
    display: none;
}
.multi-check-dropdown summary::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 23px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #3b2b34;
    border-bottom: 2px solid #3b2b34;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
.multi-check-dropdown[open] summary {
    border-color: #6f249f;
    box-shadow: none;
}
.multi-check-dropdown[open] summary::after {
    transform: rotate(225deg);
}
.multi-check-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 0;
    border: 2px solid rgba(122,45,169,0.62);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}
.multi-check-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 14px;
    color: #3b2b34;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
}
.multi-check-option:hover {
    background: #f7f7f7;
}
.multi-check-option input {
    width: 14px;
    height: 14px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    box-shadow: none;
    flex: 0 0 14px;
    accent-color: var(--accent);
}
.button-group {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-top: 8px;
}
button {
    border: none;
    border-radius: 14px;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(255,61,143,0.2);
}
.password-toggle,
.password-toggle:hover {
    padding: 0;
    background: transparent;
    color: var(--accent);
    transform: translateY(-50%);
    box-shadow: none;
}
.password-toggle:hover {
    background: rgba(172,84,217,0.12);
}
.btn-ghost {
    background: rgba(255,255,255,0.86);
    color: var(--accent);
    border: 1px solid rgba(172,84,217,0.18);
}
.btn-ghost:hover {
    box-shadow: 0 16px 32px rgba(172,84,217,0.12);
}
.btn-submit-final {
    display: none;
}
.photo-step-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
}
.skip-photo-btn {
    white-space: nowrap;
}
.upload-panel {
    display: grid;
    gap: 14px;
}
.photo-upload-box {
    display: grid;
    gap: 8px;
    padding: 28px;
    border: 2px dashed rgba(172,84,217,0.28);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,244,251,0.8));
    cursor: pointer;
    text-align: center;
}
.photo-upload-box:hover {
    border-color: rgba(172,84,217,0.48);
    box-shadow: 0 18px 42px rgba(172,84,217,0.1);
}
.photo-upload-box span {
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 800;
}
.photo-upload-box small,
.photo-upload-note {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}
.photo-upload-box input {
    width: min(100%, 520px);
    margin: 14px auto 0;
    border-radius: 12px;
    background: #fff;
}
.photo-upload-note {
    text-align: center;
}
.photo-preview-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(96px, 128px));
    gap: 12px;
}
.photo-preview-grid.has-photos {
    display: grid;
}
.photo-preview-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(172,84,217,0.18);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(172,84,217,0.1);
}
.photo-preview-delete {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 10px;
    background: rgba(226,75,117,0.94);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(226,75,117,0.24);
}
.photo-preview-delete:hover {
    transform: none;
    box-shadow: 0 10px 22px rgba(226,75,117,0.28);
}
.photo-preview-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
    background: #fff4fb;
}
.photo-preview-card span {
    display: block;
    overflow: hidden;
    padding: 8px 9px;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.form-link {
    color: var(--accent);
    text-decoration: none;
}
.form-link:hover,
.form-link-strong:hover {
    text-decoration: underline;
}
.form-link-strong {
    font-weight: 700;
}
.login-prompt {
    text-align: center;
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.95rem;
}
.footer-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    padding-top: 24px;
}
.success-card, .error-card {
    padding: 18px 20px;
    border-radius: 20px;
    font-size: 0.96rem;
    max-width: 760px;
    margin: 0 auto 24px;
    border: 1px solid transparent;
}
.success-card {
    background: rgba(45, 189, 126, 0.16);
    border-color: rgba(45, 189, 126, 0.35);
    color: #17683e;
}
.error-card {
    background: rgba(255, 63, 96, 0.14);
    border-color: rgba(255, 63, 96, 0.4);
    color: #a42e49;
}
.payment-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(51, 28, 64, 0.48);
    backdrop-filter: blur(8px);
}
.payment-modal {
    width: min(560px, 100%);
    overflow: hidden;
    display: grid;
    gap: 22px;
    padding: 34px;
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: 28px;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,141,194,0.22), transparent 34%),
        linear-gradient(180deg, #fff 0%, #fff5fb 100%);
    box-shadow: 0 32px 90px rgba(63,45,86,0.28);
    text-align: center;
}
.payment-modal-logo {
    width: min(190px, 70%);
    display: grid;
    place-items: center;
    margin: 0 auto;
    padding: 14px 18px;
    border: 1px solid rgba(172,84,217,0.12);
    border-radius: 22px;
    background: rgba(255,255,255,0.86);
    box-shadow: 0 18px 34px rgba(172,84,217,0.12);
}
.payment-modal-logo img {
    display: block;
    width: 100%;
    height: auto;
}
.payment-modal-copy {
    display: grid;
    gap: 10px;
}
.payment-kicker {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.payment-modal h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.1;
}
.payment-modal p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}
.payment-modal .payment-message-strong {
    color: #4a345d;
    font-weight: 800;
}
.payment-message-separator {
    width: min(260px, 78%);
    height: 1px;
    margin: 2px auto;
    background: linear-gradient(90deg, transparent, rgba(172,84,217,0.38), rgba(255,141,194,0.44), transparent);
}
.payment-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 15px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(255,61,143,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.payment-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 50px rgba(255,61,143,0.28);
}
@media (max-width: 860px) {
    .form-panel {
        padding: 28px 20px;
        border-radius: 24px;
    }
    .form-overview {
        grid-template-columns: 1fr;
    }
    .autosave-status {
        grid-column: 1;
        text-align: left;
    }
    .grid-2, .inline-row, .triple-row {
        grid-template-columns: 1fr;
    }
    .form-actions {
        flex-direction: column-reverse;
    }
    .photo-step-top {
        grid-template-columns: 1fr;
    }
    .form-actions button {
        width: 100%;
    }
    .skip-photo-btn {
        width: 100%;
    }
    .payment-modal {
        padding: 28px 20px;
        border-radius: 24px;
    }
}
