/* ── RESET & BASE ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --rose: #d4859a;
    --rose-deep: #b06478;
    --rose-light: #fdf0f3;
    --rose-pale: #f9e4ea;
    --text-dark: #1e1214;
    --text-mid: #5a4048;
    --text-muted: #9a7882;
    --border: rgba(180, 100, 130, 0.18);
    --border-md: rgba(180, 100, 130, 0.30);
    --bg-page: #fff9fa;
    --bg-card: #ffffff;
    --bg-input: #fdf5f7;
    --success: #3a8a4a;
    --error: #c0392b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-card: 0 4px 32px rgba(180, 100, 130, 0.10), 0 1px 4px rgba(180, 100, 130, 0.07);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    min-height: 100vh;
    padding: 0;
}

/* ── DECORATIVE BG PATTERN ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(212, 133, 154, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(176, 100, 120, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ── PAGE WRAPPER ── */
.page {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

/* ── HERO HEADER ── */
.hero {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeUp 0.6s ease both;
}

.logo-mark {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f7d6e0, #ebb8c8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 4px 18px rgba(212, 133, 154, 0.30);
}

.logo-mark svg {
    width: 30px;
    height: 30px;
}

.studio-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(13px, 2vw, 15px);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--rose);
    font-weight: 500;
    margin-bottom: 8px;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 6vw, 46px);
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero p {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
}

/* ── CARD ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 5vw, 44px);
    box-shadow: var(--shadow-card);
    animation: fadeUp 0.7s 0.1s ease both;
}

/* ── SECTION LABELS ── */
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    display: block;
    width: 22px;
    height: 1px;
    background: var(--rose);
}

.section-label span {
    font-size: 10.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--rose);
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

/* ── GRID ── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

/* ── FIELDS ── */
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field+.field {
    margin-top: 18px;
}

.grid-2 .field+.field {
    margin-top: 0;
}

.field label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-mid);
    letter-spacing: 0.3px;
}

.req {
    color: var(--rose);
    margin-left: 2px;
}

.field input,
.field select,
.field textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-input);
    border: 1px solid var(--border-md);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.field select {
    background-image: url("#");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--rose);
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(212, 133, 154, 0.14);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.field textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.65;
}

/* ── TIME SLOTS ── */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 9px;
    margin-top: 4px;
}

.time-slot {
    position: relative;
}

.time-slot input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.time-slot label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border: 1px solid var(--border-md);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-mid);
    cursor: pointer;
    transition: all 0.16s;
    background: var(--bg-input);
    letter-spacing: 0;
    user-select: none;
}

.time-slot input[type="radio"]:checked+label {
    background: var(--rose-pale);
    border-color: var(--rose);
    color: var(--rose-deep);
    font-weight: 500;
}

.time-slot label:hover {
    border-color: var(--rose);
    background: var(--rose-light);
    color: var(--text-dark);
}

/* ── CHECKBOX ── */
.consent-box {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    background: var(--rose-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    cursor: pointer;
}

.consent-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--rose);
    cursor: pointer;
}

.consent-box p {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.65;
}

/* ── ERROR MESSAGES ── */
.err {
    font-size: 11.5px;
    color: var(--error);
    margin-top: 3px;
    display: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: #e07070;
    box-shadow: 0 0 0 3px rgba(200, 80, 80, 0.09);
}

.field.has-error .err {
    display: block;
}

.show-err {
    display: block !important;
}

/* ── SUBMIT BUTTON ── */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: opacity 0.18s, transform 0.12s, box-shadow 0.18s;
    box-shadow: 0 4px 18px rgba(212, 133, 154, 0.35);
    margin-top: 6px;
}

.btn-submit:hover:not(:disabled) {
    opacity: 0.93;
    box-shadow: 0 6px 24px rgba(212, 133, 154, 0.45);
    transform: translateY(-1px);
}

.btn-submit:active:not(:disabled) {
    transform: scale(0.99);
}

.btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

/* ── LOADING SPINNER ── */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

/* ── SUCCESS STATE ── */
.success-msg {
    display: none;
    text-align: center;
    padding: 48px 20px 36px;
}

.check-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #eaf5ec;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-msg h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.success-msg p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.success-msg .detail-pill {
    display: inline-block;
    margin-top: 20px;
    background: var(--rose-light);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--rose-deep);
}

/* ── SETUP NOTICE (shown until EmailJS configured) ── */
.setup-notice {
    background: #fff8e1;
    border: 1px solid #f0c040;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #7a5c00;
    line-height: 1.6;
}

.setup-notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13.5px;
}

.setup-notice code {
    background: rgba(0, 0, 0, 0.07);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
    .page {
        padding: 32px 14px 60px;
    }

    .card {
        padding: 20px 16px;
    }

    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 26px;
    }

    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}