/* ============================================================
   Kasaya.ph — Invitation Form
   Multi-step form, mobile-first
   ============================================================ */

.form-page {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #FAF6F1;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
}

/* ── Top nav ────────────────────────────────────────────────── */
.form-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(250,246,241,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #E8DDD4;
}

.form-nav-back {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    letter-spacing: .12em;
    color: #9E8C87;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color .2s;
}
.form-nav-back:hover { color: #3A3230; }

.form-nav-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: #3A3230;
}

.form-nav-step {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    letter-spacing: .1em;
    color: #C48B9F;
}

/* ── Progress bar ───────────────────────────────────────────── */
.form-progress {
    height: 3px;
    background: #E8DDD4;
    width: 100%;
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #C48B9F, #C9A96E);
    transition: width .4s cubic-bezier(.22,1,.36,1);
}

/* ── Mini hero preview strip ────────────────────────────────── */
.form-preview-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #F0E8DC;
    border-bottom: 1px solid #E8DDD4;
}

.form-preview-frame {
    position: relative;
    width: 52px;
    aspect-ratio: 5 / 7;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.form-preview-frame > div {
    position: absolute;
    inset: 0;
    min-height: unset !important;
    max-width: unset !important;
}

.form-preview-frame .inv-hero {
    position: absolute !important;
    inset: 0 !important;
    aspect-ratio: unset !important;
    min-height: unset !important;
    padding: 6px 5px !important;
}

.form-preview-frame .inv-hero-content { gap: 2px !important; }
.form-preview-frame .inv-section-label { display: none !important; }
.form-preview-frame .inv-hero-name  { font-size: 7px !important; line-height: 1.1 !important; }
.form-preview-frame .inv-hero-amp   { font-size: 6px !important; }
.form-preview-frame .inv-date-badge { padding: 2px 4px !important; gap: 1px !important; }
.form-preview-frame .inv-date-day   { font-size: 4px !important; }
.form-preview-frame .inv-date-full  { font-size: 5px !important; }
.form-preview-frame .divider-floral,
.form-preview-frame .divider-rule   { margin: 2px auto !important; width: 80% !important; }
.form-preview-frame .inv-rule-dot   { font-size: 4px !important; }
.form-preview-frame .inv-scroll-hint { display: none !important; }
.form-preview-frame .inv-hero-sub   { display: none !important; }

.form-preview-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form-preview-names {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 16px;
    color: #3A3230;
    line-height: 1.2;
}

.form-preview-date {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    color: #9E8C87;
    letter-spacing: .06em;
}

.form-preview-template {
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    color: #C48B9F;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ── Draft restored banner ───────────────────────────────────── */
.form-draft-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(201,169,110,.1);
    border-bottom: 1px solid rgba(201,169,110,.25);
    animation: formBannerIn .3s ease;
}

@keyframes formBannerIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-draft-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.form-draft-title {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #8A6520;
    margin: 0 0 2px;
}

.form-draft-sub {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #9E8C87;
    margin: 0;
}

.form-draft-dismiss {
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(201,169,110,.3);
    border-radius: 3px;
    padding: 5px 10px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #8A6520;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .15s;
}

    .form-draft-dismiss:hover {
        background: rgba(201,169,110,.1);
        border-color: #C9A96E;
    }

/* ── Form body ──────────────────────────────────────────────── */
.form-body {
    flex: 1;
    padding: 0 20px;
}

/* ── Step ───────────────────────────────────────────────────── */
.form-step {
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    gap: 16px 8px;
}

.form-step-header {
    margin-bottom: 3px;
}

.form-step-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 48px;
    font-weight: 300;
    color: #E8DDD4;
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}

.form-step-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 32px;
    color: #1A0F0C;
    line-height: 1.15;
    margin: 0 0 6px;
}

.form-step-sub {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #9E8C87;
    line-height: 1.6;
    margin: 0;
}

/* ── Form controls ──────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #6B5B54;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 0;
}

.form-optional {
    font-size: 9px;
    color: #C48B9F;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: none;
}

.form-input {
    width: 100%;
    padding: 4px 5px;
    background: #fff;
    border: 1px solid #D4C4B0;
    color: #3A3230;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 14px;
    border-radius: 8px;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
}
.form-input:focus { border-color: #C48B9F; }

.form-input-sm { width: auto; flex: 1; }

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

.form-section-label {
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #C48B9F;
    padding: 4px 0;
    border-bottom: 1px solid #E8DDD4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-divider {
    height: 1px;
    background: #E8DDD4;
    margin: 4px 0;
}

/* ── List items ─────────────────────────────────────────────── */
.form-list-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.form-list-remove {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 1px solid #D4C4B0;
    background: transparent;
    color: #9E8C87;
    border-radius: 2px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}
.form-list-remove:hover { background: #F5EDE8; color: #C48B9F; }

.form-add-btn {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #C48B9F;
    background: transparent;
    border: 1px dashed #C48B9F;
    padding: 10px 16px;
    border-radius: 2px;
    cursor: pointer;
    transition: background .2s;
    width: 100%;
    text-align: center;
}
.form-add-btn:hover { background: rgba(196,139,159,.06); }

/* ── Sponsor / program / gift items ────────────────────────── */
.form-sponsor-item,
.form-program-item,
.form-gift-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: #fff;
    border: 1px solid #E8DDD4;
    border-radius: 2px;
    border-left: 3px solid #C9A96E;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #6B5B54;
    cursor: pointer;
}

/* ── Program row container ───────────────────────────────────── */
.form-program-row {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #FAF6F1;
    border: 1px solid #E8DDD4;
    border-radius: 6px;
    margin-bottom: 10px;
}

.form-program-row-top {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* ← align left ✓ */
    gap: 8px;
}

.form-program-time {
    width: 90px;
    flex-shrink: 0;
}

.form-program-key {
    flex: 0;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #6B5B54;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}

/* ── Row 2 — Title + Description ────────────────────────────── */
.form-program-row-body {
    display: flex;
    flex-direction: column; /* ← mobile: stacked ✓ */
    gap: 6px;
    width: 100%;
}

.form-program-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-program-desc-wrap {
    width: 100%;
}

.form-program-desc {
    font-style: italic;
    font-size: 12px;
    color: #6B5B54;
}

/* ── Preset select ───────────────────────────────────────────── */
.form-program-preset-select {
    font-size: 11px;
    color: #9E8C87;
    cursor: pointer;
    width: 100%;
}

/* ── Desktop — Title + Description side by side ──────────────── */
@media (min-width: 768px) {
    .form-program-row-body {
        flex-direction: row; /* ← desktop: side by side ✓ */
        align-items: flex-start;
        gap: 12px;
    }

    .form-program-title-wrap {
        flex: 2; /* ← 2 parts */
    }

    .form-program-desc-wrap {
        flex: 3; /* ← 3 parts — wider than title ✓ */
    }

    .form-program-time {
        width: 80px;
    }

    .form-program-preset-select {
        width: auto;
    }
}

/* ── Preview step ───────────────────────────────────────────── */
.form-step-preview { gap: 20px; }

.form-full-preview-wrap {
    position: relative;
    width: 80%;
    margin: 0 auto;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(139,90,106,.15),
                0 4px 10px rgba(0,0,0,.08);
}

.form-confirm-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.form-confirm-note {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 15px;
    color: #9E8C87;
    text-align: center;
    line-height: 1.6;
}

.form-confirm-btn {
    width: 100%;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #FAF6F1;
    background: #3A3230;
    border: none;
    padding: 16px;
    border-radius: 1px;
    cursor: pointer;
    transition: background .2s;
}
.form-confirm-btn:hover { background: #5A3828; }

.form-back-edit {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9E8C87;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: center;
    padding: 8px;
    transition: color .2s;
}
.form-back-edit:hover { color: #3A3230; }

/* ── Bottom navigation ──────────────────────────────────────── */
.form-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(250,246,241,.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid #E8DDD4;
    z-index: 40;
}

.form-btn-primary {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #FAF6F1;
    background: #C48B9F;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
}
.form-btn-primary:hover { background: #f7b9cf; }

.form-btn-ghost {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #9E8C87;
    background: transparent;
    border: 1px solid #D4C4B0;
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.form-btn-ghost:hover { color: #3A3230; border-color: #C48B9F; }

/* ── Form step shared styles ────────────────────────────────── */
.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #FAF6F1;
    border: 1px solid #E8DDD4;
    border-radius: 4px;
}

.form-field-label-group {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #C48B9F;
    margin: 0 0 4px;
}

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

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.form-step-hint {
    font-size: 13px;
    color: #9E8C87;
    font-style: italic;
    text-align: center;
    padding: 32px 20px;
    background: #FAF6F1;
    border: 1px dashed #D4C4B0;
    border-radius: 4px;
}

/* ── List rows — entourage names ────────────────────────────── */
.form-list-row,
.form-sponsor-row,
/*.form-program-row,*/
.form-gift-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.form-gift-row {
    align-items: flex-start;
    padding: 14px;
    background: #fff;
    border: 1px solid #E8DDD4;
    border-radius: 4px;
    margin-bottom: 10px;
}

.form-gift-row-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.form-input-time {
    flex: 0 0 90px;
    text-align: center;
}

.form-toggle-group {
    display: flex;
    gap: 8px;
}

.form-toggle-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #D4C4B0;
    border-radius: 4px;
    background: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6B5B54;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}

    .form-toggle-btn:hover {
        border-color: #C48B9F;
    }

.form-toggle-btn--active {
    background: #C48B9F;
    border-color: #C48B9F;
    color: #fff;
}

/* ── Swatch row ──────────────────────────────────────────────── */
.form-swatch-row {
    position: relative;
    display: flex;
    flex-direction: column; /* ← stacked on mobile */
    gap: 6px;
    margin-bottom: 10px;
    padding-top: 20px; /* ← space for remove button */
}

/* ── Color picker ────────────────────────────────────────────── */
.form-color-picker {
    width: 40px;
    height: 40px;
    border: 1px solid #D4C4B0;
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    flex-shrink: 0;
    background: none;
}

/* ── Color name input ────────────────────────────────────────── */
.form-color-name {
    flex: 1;
    min-width: 0;
}

/* ── Swatch preview circle ───────────────────────────────────── */
.form-swatch-preview {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #E8DDD4;
    flex-shrink: 0;
    transition: background .2s;
}

/* ── Add / Remove buttons ────────────────────────────────────── */
.form-btn-add {
    width: 100%;
    padding: 9px;
    background: transparent;
    border: 1px dashed #C48B9F;
    border-radius: 3px;
    color: #C48B9F;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s;
    margin-top: 4px;
}
.form-btn-add:hover { background: rgba(196,139,159,.06); }

.form-btn-remove {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: transparent;
    border: 1px solid #D4C4B0;
    border-radius: 3px;
    color: #9E8C87;
    font-size: 10px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-btn-remove:hover      { border-color: #C0392B; color: #C0392B; }
.form-btn-remove-top        { align-self: flex-start; margin-top: 2px; }

/* ── Checkbox ─────────────────────────────────────────────────── */
.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #6B5B54;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

/* ── Step indicator ──────────────────────────────────────────── */
.form-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    overflow-x: auto;
    gap: 0;
    border-bottom: 1px solid #E8DDD4;
    background: #FAF6F1;
    flex-shrink: 0;
}

.form-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.form-step-dot-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    background: #F0E8DC;
    color: #9E8C87;
    border: 2px solid #E8DDD4;
    transition: all .2s;
}

.form-step-dot--active .form-step-dot-icon {
    background: #C48B9F;
    color: #fff;
    border-color: #C48B9F;
}

.form-step-dot--done .form-step-dot-icon {
    background: #8FAF8A;
    color: #fff;
    border-color: #8FAF8A;
}

.form-step-dot-label {
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9E8C87;
    white-space: nowrap;
}
.form-step-dot--active .form-step-dot-label { color: #C48B9F; }
.form-step-dot--done   .form-step-dot-label { color: #8FAF8A; }

.form-step-line {
    height: 2px;
    width: 32px;
    background: #E8DDD4;
    flex-shrink: 0;
    margin-bottom: 18px;
    transition: background .2s;
}
.form-step-line--done { background: #8FAF8A; }

/* ── Skip button ─────────────────────────────────────────────── */
.form-btn-skip {
    padding: 8px 24px;
    background: transparent;
    border: 1px solid #D4C4B0;
    color: #9E8C87;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
}
.form-btn-skip:hover { color: #C48B9F; border-color: #C48B9F; }

/* ── Milestone selector ──────────────────────────────────────── */
.form-milestone-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

/* ── Tagline & milestone preset buttons ─────────────────────── */
.form-tagline-presets,
.form-milestone-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.form-preset-btn {
    padding: 6px 12px;
    background: #FAF6F1;
    border: 1px solid #D4C4B0;
    border-radius: 20px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #6B5B54;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    line-height: 1.4;
}

.form-preset-btn:hover {
    border-color: #C48B9F;
    color: #C48B9F;
    background: rgba(196,139,159,.06);
}

.form-preset-btn--active {
    background: #C48B9F;
    border-color: #C48B9F;
    color: #fff;
}

.form-preset-btn--active:hover {
    background: #A06070;
    border-color: #A06070;
    color: #fff;
}


/* ── Email gate ──────────────────────────────────────────────── */
.form-email-gate {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}

.form-hint {
    font-size: 11px;
    color: #9E8C87;
    margin-top: 0;
    display: block;
    margin-bottom: 0;
    line-height: 1.1;
}

/* ── Or divider ──────────────────────────────────────────────── */
.form-email-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #D4C4B0;
}

.form-email-divider-line {
    flex: 1;
    height: 1px;
    background: #E8DDD4;
}

.form-email-divider-text {
    font-size: 11px;
    color: #9E8C87;
    font-family: 'Jost', sans-serif;
    letter-spacing: .1em;
}

/* ── Google button ───────────────────────────────────────────── */
.form-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    background: #fff;
    border: 1px solid #D4C4B0;
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #3A3230;
    cursor: pointer;
    transition: all .15s;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

    .form-btn-google:hover {
        border-color: #9E8C87;
        box-shadow: 0 2px 8px rgba(0,0,0,.1);
    }

/* ── Skip link ───────────────────────────────────────────────── */
.form-btn-link {
    background: none;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #9E8C87;
    cursor: pointer;
    text-align: center;
    padding: 4px;
    transition: color .15s;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .form-btn-link:hover {
        color: #C48B9F;
    }


/* ── Skip warning ────────────────────────────────────────────── */
.form-skip-warning {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(192,57,43,.06);
    border: 1px solid rgba(192,57,43,.2);
    border-radius: 4px;
    animation: formWarnIn .2s ease;
}

@keyframes formWarnIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-skip-warning-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.form-skip-warning-title {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #C0392B;
    margin: 0 0 6px;
}

.form-skip-warning-msg {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #6B5B54;
    line-height: 1.7;
    margin: 0 0 12px;
}

.form-skip-warning-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.form-btn-skip-confirm {
    padding: 7px 14px;
    background: transparent;
    border: 1px solid rgba(192,57,43,.4);
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #C0392B;
    cursor: pointer;
    transition: all .15s;
}

    .form-btn-skip-confirm:hover {
        background: rgba(192,57,43,.08);
        border-color: #C0392B;
    }


.form-btn-primary:disabled {
    background: #F0E8DC;
    color: #C4B4A8;
    border: 1px dashed #D4C4B0; /* ← dashed border shows it's inactive */
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
    letter-spacing: .04em;
}

    /* ── Optional — add lock icon via ::before ───────────────────── */
    .form-btn-primary:disabled::before {
        content: '🔒 ';
        font-size: 12px;
    }


/* ── Success screen ──────────────────────────────────────────── */
.form-step-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 24px 60px;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.form-success-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.form-success-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 28px;
    font-weight: 300;
    color: #1A0F0C;
    margin: 0;
}

.form-success-sub {
    font-size: 13px;
    color: #9E8C87;
    margin: 0;
    line-height: 1.6;
}

/* ── Invitation ID ───────────────────────────────────────────── */
.form-success-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    background: #F5F0E8;
    border: 1px solid #E8DDD4;
    border-radius: 4px;
    width: 100%;
}

.form-success-meta-label {
    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #9E8C87;
    font-family: 'Jost', sans-serif;
}

.form-success-meta-value {
    font-size: 13px;
    color: #3A3230;
    word-break: break-all;
}

/* ── Shareable link section ──────────────────────────────────── */
.form-success-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-success-section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    color: #6B5B54;
    margin: 0;
    font-family: 'Jost', sans-serif;
}

/* ── Email note ──────────────────────────────────────────────── */
.form-success-email-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(143,175,138,.1);
    border: 1px solid rgba(143,175,138,.3);
    border-radius: 4px;
    width: 100%;
    text-align: left;
}

.form-success-email-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.form-success-email-title {
    font-size: 12px;
    font-weight: 500;
    color: #5A8A55;
    margin: 0 0 2px;
    font-family: 'Jost', sans-serif;
}

.form-success-email-addr {
    font-size: 12px;
    color: #6B5B54;
    margin: 0;
    font-family: 'Courier New', monospace;
}

/* ── Action buttons ──────────────────────────────────────────── */
.form-success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-btn-open {
    display: block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

/* ── Tips ────────────────────────────────────────────────────── */
.form-success-tips {
    width: 100%;
    padding: 16px 20px;
    background: #FAF6F1;
    border: 1px solid #E8DDD4;
    border-radius: 4px;
    text-align: left;
}

.form-success-tips-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9E8C87;
    margin: 0 0 10px;
    font-family: 'Jost', sans-serif;
}

.form-success-tips-list {
    margin: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-success-tips-list li {
        font-size: 13px;
        color: #6B5B54;
        line-height: 1.5;
    }


/* ── Court row — name + message stacked ─────────────────────── */
.form-court-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.form-court-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-input-sm {
    font-size: 12px;
    padding: 7px 10px;
    font-style: italic;
}

.form-rose-num {
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    font-size: 12px;
    color: #9E8C87;
    padding-top: 9px;
}


/* ── Custom court divider ────────────────────────────────────── */
.form-custom-courts-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 4px;
    color: #C48B9F;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

    .form-custom-courts-divider::before,
    .form-custom-courts-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #E8DDD4;
    }

/* ── Custom court section ───────────────────────────────────── */
.form-custom-court-section {
    border: 1px dashed #C48B9F;
    background: rgba(196,139,159,.03);
}

.form-custom-court-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.form-input-icon {
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.form-btn-add-section {
    border-color: #1A0F0C;
    color: #1A0F0C;
    font-weight: 500;
}

    .form-btn-add-section:hover {
        background: rgba(26,15,12,.04);
    }


/* ── Generate error ──────────────────────────────────────────── */
.form-generate-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(192,57,43,.06);
    border: 1px solid rgba(192,57,43,.2);
    border-radius: 4px;
    margin-top: 10px;
    animation: formWarnIn .2s ease;
}

.form-generate-error-title {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #C0392B;
    margin: 0 0 2px;
}

.form-generate-error-msg {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #6B5B54;
    margin: 0;
    line-height: 1.5;
}

.form-generate-error-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 12px;
    color: #9E8C87;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}


.form-success-email-spam {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #9E8C87;
    line-height: 1.6;
    margin: 6px 0 0;
}

/* ── Pro Tips overlay ────────────────────────────────────────── */
.form-tips-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,15,12,.65);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: formTipsIn .3s ease;
}

@keyframes formTipsIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Modal card ──────────────────────────────────────────────── */
.form-tips-modal {
    background: #FEFCF8;
    border-radius: 8px;
    padding: 32px 28px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,.3);
    animation: formTipsSlide .35s cubic-bezier(.16,1,.3,1);
}

@keyframes formTipsSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Icon ────────────────────────────────────────────────────── */
.form-tips-icon {
    font-size: 40px;
    line-height: 1;
}

/* ── Title ───────────────────────────────────────────────────── */
.form-tips-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 26px;
    font-weight: 300;
    color: #1A0F0C;
    margin: 0;
}

.form-tips-sub {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #9E8C87;
    margin: 0;
    letter-spacing: .04em;
}

/* ── Divider ─────────────────────────────────────────────────── */
.form-tips-divider {
    width: 40px;
    height: 1px;
    background: #E8DDD4;
}

/* ── Tips list ───────────────────────────────────────────────── */
.form-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    width: 100%;
}

.form-tips-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-tips-bullet {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.form-tips-item p {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #6B5B54;
    line-height: 1.7;
    margin: 0;
}

.form-tips-item strong {
    color: #1A0F0C;
    font-weight: 500;
}

/* ── CTA button ──────────────────────────────────────────────── */
.form-tips-btn {
    width: 100%;
    padding: 14px;
    background: #C48B9F;
    border: none;
    border-radius: 4px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}

    .form-tips-btn:hover {
        background: #A06070;
    }

/* ── Skip ────────────────────────────────────────────────────── */
.form-tips-skip {
    background: none;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #C4B4A8;
    cursor: pointer;
    padding: 0;
    transition: color .15s;
}

    .form-tips-skip:hover {
        color: #9E8C87;
    }

/* ── Gallery preview ─────────────────────────────────────────── */
.form-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* ── Each thumbnail ──────────────────────────────────────────── */
.form-gallery-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #E8DDD4;
    flex-shrink: 0;
}

    .form-gallery-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* ── Remove button ───────────────────────────────────────────── */
.form-gallery-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,.6);
    border: none;
    color: #fff;
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .15s;
}

    .form-gallery-remove:hover {
        background: #C0392B;
    }

/* ── Milestone row ───────────────────────────────────────────── */
.form-milestone-row {
    position: relative;
    display: flex;
    flex-direction: column; /* ← stacked on mobile */
    gap: 6px;
    margin-bottom: 10px;
    padding-top: 20px; /* ← space for remove button */
}

/* ── Remove — top right corner ───────────────────────────────── */
.form-milestone-remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(192,57,43,.08);
    border: 1px solid rgba(192,57,43,.2);
    color: #C0392B;
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    padding: 0;
}

    .form-milestone-remove:hover {
        background: #C0392B;
        color: #fff;
    }


/* ── Custom upload button ────────────────────────────────────── */
.form-gallery-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    border: 1px dashed #D4C4B0;
    border-radius: 4px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #9E8C87;
    cursor: pointer;
    transition: all .2s;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

    .form-gallery-upload-btn:hover {
        border-color: #C48B9F;
        color: #C48B9F;
    }

.form-gallery-upload-btn--loading {
    opacity: .6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Tier banner ─────────────────────────────────────────────── */
.form-tier-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    gap: 8px;
}

.form-tier-banner-sub {
    font-size: 10px;
    font-weight: 400;
    opacity: .7;
}

.form-tier-banner--free {
    background: #FAF6F1;
    color: #9E8C87;
    border-bottom-color: #E8DDD4;
}

.form-tier-banner--premium {
    background: rgba(196,139,159,.08);
    color: #C48B9F;
    border-bottom-color: rgba(196,139,159,.2);
}

.form-tier-banner--premium-plus {
    background: linear-gradient(135deg, rgba(201,169,110,.1) 0%, rgba(196,139,159,.1) 100%);
    color: #8A6520;
    border-bottom-color: rgba(201,169,110,.2);
}

.form-tier-upgrade-link {
    color: #C48B9F;
    text-decoration: none;
    font-weight: 500;
}

    .form-tier-upgrade-link:hover {
        text-decoration: underline;
    }

/* ── Locked section ──────────────────────────────────────────── */
.form-locked-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #FAF6F1;
    border: 1px dashed #D4C4B0;
    border-radius: 4px;
    margin-bottom: 12px;
}

.form-locked-icon {
    font-size: 20px;
    opacity: .5;
}

.form-locked-title {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #9E8C87;
    margin: 0 0 2px;
}

.form-locked-sub {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #C4B4A8;
    margin: 0;
}

/* ── Hero image preview ──────────────────────────────────────── */
.form-hero-img-preview {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #E8DDD4;
}

    .form-hero-img-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.form-hero-img-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 5px 10px;
    background: rgba(0,0,0,.6);
    border: none;
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}

    .form-hero-img-remove:hover {
        background: #C0392B;
    }

/* ── Closing preview ─────────────────────────────────────────── */
.form-closing-preview {
    margin-top: 4px;
    padding: 16px 20px;
    border: 1px solid #E8DDD4;
    border-radius: 4px;
    background: #FEFCF8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.form-closing-preview-verse {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 15px;
    font-weight: 300;
    color: #3A3230;
    line-height: 1.85;
    margin: 0;
}

.form-closing-preview-ref {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #9E8C87;
    letter-spacing: .06em;
    margin: 0;
}

.form-sponsor-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-sponsor-gender {
    width: 70px;
    flex-shrink: 0;
}

.form-sponsor-name {
    flex: 1;
}

/* ── Payment summary ─────────────────────────────────────────── */
.form-payment-summary {
    background: #FAF6F1;
    border: 1px solid #E8DDD4;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.form-payment-tier {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-payment-tier-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.form-payment-tier-name {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1A0F0C;
    margin: 0 0 3px;
}

.form-payment-tier-desc {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #9E8C87;
    margin: 0;
    line-height: 1.5;
}

.form-payment-tier-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 300;
    color: #C48B9F;
    margin: 0;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Payment methods ─────────────────────────────────────────── */
.form-payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.form-payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border: 1px solid #E8DDD4;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
}

    .form-payment-method:hover {
        border-color: #C48B9F;
    }

.form-payment-method--active {
    border-color: #C48B9F;
    background: rgba(196,139,159,.05);
    box-shadow: 0 2px 8px rgba(196,139,159,.15);
}

.form-payment-method-icon {
    font-size: 24px;
}

.form-payment-method-name {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #3A3230;
    margin: 0;
}

/* ── Instructions ────────────────────────────────────────────── */
.form-payment-instructions {
    background: #FEFCF8;
    border: 1px solid #E8DDD4;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.form-payment-instructions-title {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6B5B54;
    margin: 0 0 4px;
}

.form-payment-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-payment-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #C48B9F;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-payment-step-item p {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #3A3230;
    line-height: 1.6;
    margin: 0;
}

.form-payment-highlight {
    color: #C48B9F;
    font-weight: 600;
}

/* ── Note ────────────────────────────────────────────────────── */
.form-payment-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(201,169,110,.08);
    border: 1px solid rgba(201,169,110,.2);
    border-radius: 4px;
    margin-top: 4px;
}

.form-payment-note-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.form-payment-note p {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #6B5B54;
    line-height: 1.7;
    margin: 0;
}

.form-payment-note strong {
    color: #8A6520;
}

/* ── Instruction body — two column ───────────────────────────── */
.form-payment-instr-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* ── Steps — left ────────────────────────────────────────────── */
.form-payment-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

/* ── QR — right ──────────────────────────────────────────────── */
.form-payment-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.form-payment-qr-frame {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    border: 2px solid #E8DDD4;
    background: #fff;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.form-payment-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.form-payment-qr-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #3A3230;
    margin: 0;
}

.form-payment-qr-brand {
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-payment-qr-brand-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.form-payment-qr-number {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #9E8C87;
    margin: 0;
    letter-spacing: .04em;
}

/* ── Payment summary card ────────────────────────────────────── */
.form-success-payment {
    width: 100%;
    background: #FEFCF8;
    border: 1px solid #E8DDD4;
    border-left: 3px solid #C9A96E;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-success-payment-title {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8A6520;
    margin: 0;
}

.form-success-payment-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-success-payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.form-success-payment-label {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #9E8C87;
}

.form-success-payment-val {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #1A0F0C;
    text-align: right;
}

.form-success-payment-status {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    background: rgba(201,169,110,.12);
    color: #8A6520;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.form-success-payment-note {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #9E8C87;
    line-height: 1.6;
    margin: 0;
}

    .form-success-payment-note strong {
        color: #8A6520;
    }

/* ── Promo input row ─────────────────────────────────────────── */
.form-promo-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.form-promo-input {
    flex: 1;
}

.form-promo-btn {
    padding: 10px 16px;
    background: #1A0F0C;
    border: none;
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #FAF6F1;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
    flex-shrink: 0;
}

    .form-promo-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

    .form-promo-btn:hover:not(:disabled) {
        opacity: .8;
    }

/* ── Error ───────────────────────────────────────────────────── */
.form-promo-error {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #C0392B;
    margin: 4px 0 0;
}

/* ── Applied ─────────────────────────────────────────────────── */
.form-promo-applied {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(90,138,85,.08);
    border: 1px solid rgba(90,138,85,.25);
    border-radius: 4px;
}

.form-promo-applied-icon {
    font-size: 16px;
    color: #5A8A55;
    flex-shrink: 0;
    font-weight: 700;
}

.form-promo-applied-title {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #5A8A55;
    margin: 0 0 2px;
}

.form-promo-applied-desc {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #6B5B54;
    margin: 0;
}

.form-promo-remove {
    background: none;
    border: none;
    color: #9E8C87;
    cursor: pointer;
    font-size: 12px;
    margin-left: auto;
    padding: 0;
    flex-shrink: 0;
    transition: color .15s;
}

    .form-promo-remove:hover {
        color: #C0392B;
    }

/* ── Divider ─────────────────────────────────────────────────── */
.form-promo-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}

.form-promo-divider-line {
    flex: 1;
    height: 1px;
    background: #E8DDD4;
}

.form-promo-divider-text {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #9E8C87;
    letter-spacing: .06em;
    white-space: nowrap;
}

/* ── Promo success note ──────────────────────────────────────── */
.form-promo-success-note {
    padding: 16px;
    background: rgba(90,138,85,.06);
    border: 1px solid rgba(90,138,85,.2);
    border-radius: 4px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #3A3230;
    line-height: 1.7;
    text-align: center;
}

    .form-promo-success-note strong {
        color: #5A8A55;
    }

/* ── Cotillion row — stacked mobile, side-by-side desktop ───── */
.form-cotillion-row {
    display: flex;
    flex-direction: column; /* ← mobile: stacked ✓ */
    gap: 6px;
    position: relative;
    padding-right: 32px; /* ← space for remove button ✓ */
}

.form-cotillion-field {
    flex: 1;
    margin: 0;
}

.form-cotillion-remove {
    position: absolute;
    top: 0;
    right: 0;
}

.form-input:disabled {
    background: #F5F0E8;
    color: #9E8C87;
    cursor: not-allowed;
    opacity: 0.8;
}

/* ── Name row — filename + remove side by side ───────────────── */
.form-music-name-row {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* ← left aligned ✓ */
    gap: 6px; /* ← tight gap beside name ✓ */
    margin-bottom: 6px;
}

/* ── Remove button ───────────────────────────────────────────── */
.form-music-remove-btn {
    background: none;
    border: 1px solid rgba(192,57,43,.25);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #C0392B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: all .15s;
}

    .form-music-remove-btn:hover:not(:disabled) {
        background: #C0392B;
        color: #fff;
    }

    .form-music-remove-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

.form-music-name {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #3A3230;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; /* ← prevent long names from overflowing ✓ */
}

/* ── Edit preview notes ──────────────────────────────────────── */
.edit-preview-notes {
    margin-top: 20px;
    padding: 16px;
    background: rgba(201,169,110,.08);
    border: 1px solid rgba(201,169,110,.2);
    border-left: 3px solid #C9A96E;
    border-radius: 4px;
}

.edit-preview-notes-title {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #8A6520;
    margin: 0 0 10px;
    letter-spacing: .04em;
}

.edit-preview-notes-list {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #6B5B54;
    line-height: 1.8;
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ============================================================
   DESKTOP LAYOUT — min-width 768px
   Mobile styles above are completely untouched
   ============================================================ */
/* ── Mobile — stack if very narrow ──────────────────────────── */
@media (max-width: 360px) {
    .form-payment-instr-body {
        flex-direction: column;
        align-items: center;
    }

    .form-payment-qr {
        width: 100%;
    }
}

@media (min-width: 768px) {
    /* ── Page — no max-width constraint on desktop ───────────── */
    .form-page {
        max-width: 75%;
        min-height: 100svh;
        background: #FAF6F1;
    }

    /* ── Nav — wider breathing room ─────────────────────────── */
    .form-nav {
        padding: 0 48px;
        height: 56px;
    }

    /* ── Two-column layout wrapper ───────────────────────────── */
    .form-layout {
        display: grid;
        grid-template-columns: 1fr 420px;
        gap: 0;
        height: calc(80svh - 56px - 4px); /* minus nav + progress */
        align-items: start;
    }

    /* ── LEFT — form steps column ────────────────────────────── */
    .form-layout-left {
        display: flex;
        flex-direction: column;
        height: calc(100svh - 56px - 4px);
        border-right: 1px solid #E8DDD4;
        overflow-y: auto;
    }

    .form-body {
        flex: 1;
        padding: 0 20px;
        max-width: 600px;
    }

    .form-bottom-nav {
        width: 100%;
        max-width: none; /* ← remove any inherited max-width */
        box-sizing: border-box;
        padding: 20px 30px;
        border-top: 1px solid #E8DDD4;
        background: #FAF6F1;
        position: relative;
    }

    /* ── Right panel — scrolls the full preview ─────────────── */
    .form-layout-right {
        position: sticky;
        top: 0;
        height: calc(100svh - 56px - 4px);
        overflow-y: auto; /* ← right panel scrolls */
        overflow-x: hidden;
        background: #F0E8DC;
        display: flex;
        flex-direction: column;
    }

    .form-desktop-preview {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 24px 20px;
    }

    .form-desktop-preview-label {
        font-family: 'Jost', sans-serif;
        font-size: 9px;
        letter-spacing: .22em;
        text-transform: uppercase;
        color: #5A3828;
        margin: 0 0 16px;
        align-self: flex-start;
    }

    /* ── Preview frame ───────────────────────────────────────── */
    .form-desktop-frame {
        width: 100%;
        border-radius: 3px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,.4);
    }

    .form-desktop-frame--skeleton {
        aspect-ratio: 5 / 7;
        background: rgba(255,255,255,.05);
        border-radius: 3px;
        animation: formSkeletonPulse 1.8s ease-in-out infinite;
    }

    @keyframes formSkeletonPulse {
        0%, 100% {
            opacity: .5;
        }

        50% {
            opacity: 1;
        }
    }

    /* ── Form fields — wider on desktop ─────────────────────── */
    .form-group {
        margin-bottom: 20px;
    }

    .form-input {
        padding: 6px 8px;
        font-size: 14px;
    }

    .form-label {
        font-size: 11px;
        margin-bottom: 7px;
    }

    .form-step-header {
        margin-bottom: 4px;
    }

    .form-step-title {
        font-size: 28px;
    }

    /* ── Preset buttons — slightly larger ────────────────────── */
    .form-preset-btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    /* ── Field groups — more spacing ─────────────────────────── */
    .form-field-group {
        padding: 20px;
        margin-bottom: 16px;
    }

    /* ── Row layout — 2 cols on desktop ─────────────────────── */
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* ── Success screen — centered card ─────────────────────── */
    .form-step-success {
        max-width: 480px;
        margin: 80px auto;
        padding: 48px;
        background: #fff;
        border: 1px solid #E8DDD4;
        border-radius: 6px;
        box-shadow: 0 8px 32px rgba(139,90,106,.1);
    }

    /* ── Hide mobile-only preview step on desktop ────────────── */
    /* Preview is always visible on right panel — no need to show
       it as a step on desktop                                   */
    .form-desktop-hide-preview-step {
        display: none;
    }

    .form-milestone-row {
        flex-direction: row; /* ← side by side on desktop ✓ */
        align-items: center;
        padding-top: 0;
        padding-right: 28px; /* ← space for remove button ✓ */
    }

    .form-swatch-row {
        flex-direction: row; /* ← side by side on desktop ✓ */
        align-items: center;
        padding-top: 0;
        padding-right: 28px; /* ← space for remove button ✓ */
    }

    .form-milestone-remove {
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }

    .form-milestone-year {
        width: 80px;
        flex-shrink: 0;
    }

    .form-milestone-event {
        flex: 1;
    }

    .form-cotillion-row {
        flex-direction: row; /* ← desktop: row ✓ */
        align-items: flex-end;
        gap: 8px;
    }

    .form-cotillion-remove {
        position: static;
        justify-content: center;
        align-items: center;
       /* margin-bottom: 2px;*/ /* ← align with inputs ✓ */
    }
}

@media (min-width: 1200px) {
    /* ── Wider preview panel on large screens ────────────────── */
    .form-layout {
        grid-template-columns: 1fr 480px;
    }
}
