/* Shared palette: black, gold and blush */
:root {
    --ink: #0c0809;
    --plum: #1d1019;
    --card: rgba(255, 255, 255, 0.04);
    --line: rgba(224, 184, 79, 0.25);
    --gold: #e0b84f;
    --gold-hi: #f3d27a;
    --blush: #ffdbe9;
    --rose: #ff4fa3;
    --text: #f7eef3;
    --muted: #b9a7b3;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--sans);
    color: var(--text);
    line-height: 1.6;
    background:
        radial-gradient(ellipse at top, rgba(255, 79, 163, 0.15), transparent 60%),
        linear-gradient(180deg, var(--plum), var(--ink));
    background-attachment: fixed;
}

a {
    color: var(--gold);
}

a:focus-visible,
button:focus-visible,
textarea:focus-visible,
input:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(12, 8, 9, 0.75);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    transition: padding 0.3s, background 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
    padding: 10px 24px;
    background: rgba(12, 8, 9, 0.94);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* Form progress runs along the bottom edge of the header */
.progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-hi));
    box-shadow: 0 0 12px rgba(224, 184, 79, 0.6);
    transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.brand {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text);
    text-decoration: none;
}

.nav-link {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
}

/* Layout */
.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.notice {
    margin: 0;
    padding: 14px 18px;
    border: 1px solid var(--rose);
    border-radius: 14px;
    background: rgba(255, 79, 163, 0.08);
    color: var(--blush);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.02em;
}

h1 {
    margin: 32px 0 8px;
    text-align: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: 2.2rem;
    line-height: 1.2;
}

.intro {
    margin: 4px 0;
    text-align: center;
    color: var(--muted);
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: var(--gold);
    text-align: center;
}

/* Form */
.request-form {
    margin-top: 32px;
}

/* The --glow and --mx/--my variables drive the cursor spotlight */
.question {
    --glow: transparent;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(circle 280px at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 70%),
        var(--card);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.question:hover {
    --glow: rgba(224, 184, 79, 0.1);
}

.question.is-complete {
    border-color: rgba(224, 184, 79, 0.55);
}

.question label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.85rem;
    vertical-align: middle;
    transition: background 0.3s, box-shadow 0.3s;
}

.is-complete .num {
    background: var(--gold-hi);
    box-shadow: 0 0 0 4px rgba(224, 184, 79, 0.2);
    font-size: 0;
}

.is-complete .num::before {
    content: "\2713";
    font-size: 0.9rem;
}

textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font: inherit;
    resize: none;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(224, 184, 79, 0.2);
}

textarea::placeholder {
    color: #7f6f7a;
}

.count {
    margin-top: 6px;
    text-align: right;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0 28px;
    color: var(--muted);
    cursor: pointer;
}

.check input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--gold);
}

/* Invalid fields shake and turn rose */
.nudge {
    animation: nudge 0.45s ease;
}

textarea.nudge,
.check input.nudge {
    border-color: var(--rose);
}

@keyframes nudge {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Buttons */
.cta {
    position: relative;
    display: block;
    width: 100%;
    padding: 14px 34px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-hi), var(--gold));
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(224, 184, 79, 0.25);
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s;
}

.cta:hover {
    color: var(--ink);
    box-shadow: 0 14px 36px rgba(224, 184, 79, 0.35);
}

.cta:disabled {
    cursor: wait;
}

.cta.is-loading {
    color: transparent;
}

.cta.is-loading::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ink);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* Success state */
.success {
    padding: 56px 0;
    text-align: center;
}

.success .cta {
    display: inline-block;
    width: auto;
    margin-top: 24px;
}

/* Animated seal: the check draws itself, then sparks burst out */
.seal {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
}

.seal svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.seal circle {
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: draw 0.6s ease forwards;
}

.seal path {
    fill: none;
    stroke: var(--gold-hi);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
    animation: draw 0.35s ease 0.6s forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.spark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
    pointer-events: none;
    animation: spark 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes spark {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0);
        opacity: 0;
    }
}

/* Footer */
.site-footer {
    padding: 32px 24px 48px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 4px 0;
}

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

    .seal circle,
    .seal path {
        animation: none;
        stroke-dashoffset: 0;
    }

    .nudge,
    .cta.is-loading::after {
        animation: none;
    }
}
