:root {
    --primary: #d4af37;
    --primary-glow: rgba(212, 175, 55, 0.4);
    --gold-dark: #b8860b;
    --bg: #050505;
    --zinc-950: #0a0a0a;
    --zinc-900: #121212;
    --zinc-800: #1a1a1a;
    --zinc-700: #27272a;
    --zinc-600: #3f3f46;
    --zinc-500: #71717a;
    --zinc-400: #a1a1aa;
    --zinc-300: #d4d4d8;
    --text: #f4f4f5;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font-family: inherit;
}

/* --- Rendering Performance --- */
.content-visibility-auto {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

/* --- Layout & Grid --- */

.max-w-4xl {
    max-width: 896px;
}

.max-w-2xl {
    max-width: 672px;
}


/* --- Spacing --- */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.pb-48 {
    padding-bottom: 12rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-16 {
    margin-top: 4rem;
}

/* =======================================================
   SAFE POSITIONING SYSTEM (NO CASCADE COLLISIONS)
   ======================================================= */

/* Base positioning */
.relative {
    position: relative !important;
}

.absolute {
    position: absolute !important;
}

.fixed {
    position: fixed !important;
}

.sticky {
    position: sticky !important;
}

/* Sticky defaults */
.sticky {
    top: 0;
    z-index: 100;
}

/* Anchors */
.inset-0 {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
}

.top-0 {
    top: 0 !important;
}

.bottom-10 {
    bottom: 2.5rem !important;
}

.left-0 {
    left: 0 !important;
}

.left-1\/2 {
    left: 50% !important;
}

/* =======================================================
   TRANSFORM SAFE UTILITIES
   (Prevents translate overriding rotate/scale animations)
   ======================================================= */

.-translate-x-1\/2 {
    --tw-translate-x: -50%;
    transform: translateX(var(--tw-translate-x)) !important;
}

.translate-y-12 {
    --tw-translate-y: 3rem;
    transform: translateY(var(--tw-translate-y)) !important;
}

/* Prevent transform override stacking issues */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1) !important;
}

.group:hover .group-hover\:rotate-180 {
    transform: rotate(180deg) !important;
}

/* Bounce fix (prevents centering break) */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* --- Visuals & Borders --- */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.aspect-square {
    aspect-ratio: 1/1;
}

.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}

.object-cover {
    object-fit: cover;
}

.grayscale {
    filter: grayscale(100%);
    transition: var(--transition);
}

.group:hover .grayscale {
    filter: grayscale(0%);
}

.bg-black {
    background-color: #000;
}

.bg-\[\#050505\] {
    background-color: #050505;
}

.bg-\[\#0a0a0a\] {
    background-color: #0a0a0a;
}

.bg-zinc-900 {
    background-color: var(--zinc-900);
}

.bg-zinc-900\/20 {
    background-color: rgba(18, 18, 18, 0.2);
}

.bg-zinc-900\/40 {
    background-color: rgba(18, 18, 18, 0.4);
}

.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black\/50 {
    --tw-gradient-from: rgba(0, 0, 0, 0.5);
    --tw-gradient-to: rgba(0, 0, 0, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-transparent {
    --tw-gradient-to: rgba(0, 0, 0, 0);
}

.border-zinc-900 {
    border-color: var(--zinc-900);
}

.border-zinc-800 {
    border-color: var(--zinc-800);
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/30 {
    border-color: rgba(255, 255, 255, 0.3);
}

.border-y {
    border-top-width: 1px;
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

/* --- Typography --- */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.tracking-\[0\.2em\] {
    letter-spacing: 0.2em;
}

.tracking-\[0\.3em\] {
    letter-spacing: 0.3em;
}

.text-white {
    color: #fff;
}

.text-zinc-400 {
    color: var(--zinc-400);
}

.text-zinc-500 {
    color: var(--zinc-500);
}

.text-zinc-600 {
    color: var(--zinc-600);
}

.text-\[\#d4af37\],
.gold-text {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --- Special Components --- */
.cursor-glow {
    pointer-events: none;
    position: fixed;
    width: 600px;
    height: 600px;
    z-index: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    opacity: 0.8;
}

.btn-premium {
    background-color: var(--primary);
    color: #000;
    padding: 0.85rem 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 0.75rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
    position: relative;

}

.btn-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: all 0.6s ease;
    filter: blur(5px);
}

.btn-premium:hover {
    background-color: #fff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px var(--primary-glow);
}

.btn-premium:hover::after {
    left: 120%;
}

.btn-premium:active {
    transform: translateY(-1px) scale(0.98);
}

.directory-dot {
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.8;
    }
}

@keyframes shine {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

.glass-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    width: 100%;
    transition: var(--transition);
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

/* Directory Style Forms */
.directory-choice-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem;
    border-radius: 2rem;
    transition: var(--transition);
}

.directory-choice-btn:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--primary);
    transform: translateY(-8px);
}

.directory-choice-btn .icon-wrap {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.directory-card {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.directory-card .card-content {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 1rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.directory-card input:checked+.card-content {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.directory-card .emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Choice Pills for Step 3 */
.choice-pill {
    cursor: pointer;
    display: inline-block;
}

.choice-pill span {
    display: block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    color: var(--zinc-400);
}

.choice-pill input:checked+span {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.choice-pill:hover span {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Gold Slider */
.gold-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--zinc-800);
    border-radius: 2px;
    outline: none;
}

.gold-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: var(--transition);
}

.gold-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Animation Classes */
.hero-text {
    opacity: 0;
    transform: translateY(30px);
}

.hero-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 500ms;
}

.transition-transform {
    transition: transform 0.15s ease;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-700 {
    transition-duration: 700ms;
}

.duration-1000 {
    transition-duration: 1000ms;
}

.opacity-0 {
    opacity: 0;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-100 {
    opacity: 1;
}

.pointer-events-none {
    pointer-events: none;
}

/* Custom Utilities */
.space-x-8>*+* {
    margin-left: 2rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.space-y-12>*+* {
    margin-top: 3rem;
}

.blur-3xl {
    filter: blur(64px);
}

.translate-y-12 {
    transform: translateY(3rem);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:rotate-180 {
    transform: rotate(180deg);
}

/* --- Scroll Bar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--zinc-800);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--zinc-700);
}

.h-full {
    height: 100%;
}

.w-full {
    width: 100%;
}

/* --- Form Immersion Update --- */
#quote {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.9);
    padding: 2rem 1.5rem;
    -webkit-overflow-scrolling: touch;
}

/* Perfect centering for desktop, scrolls from top on small screens */
#quote>div {
    margin: auto;
    width: 100%;
    max-width: 56rem;
    position: relative;
    z-index: 10;
}

/* Make the glass-card feel like the only thing in the world */
.glass-card {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

/* Selection Animations (Pop & Highlight) */
.form-step label div,
.form-step .directory-choice-btn,
#urgencyGate button {
    position: relative;
}

/* The Pop & Highlight Animation */
.peer:checked+div,
.directory-card input:checked+.card-content {
    animation: tile-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    border-color: var(--primary) !important;
    background: rgba(212, 175, 55, 0.12) !important;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15), inset 0 0 20px rgba(212, 175, 55, 0.05) !important;
}

/* Premium Checkmark Indicator */
.peer:checked+div::after,
.directory-card input:checked+.card-content::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 22px;
    height: 22px;
    background-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: check-fade-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@keyframes tile-pop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes check-fade-in {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-20deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* --- Premium Golden Footer --- */
.footer-golden {
    background: linear-gradient(165deg, #af8d23 0%, #ecd07a 35%, #d4af37 50%, #ecd07a 65%, #9a7b2c 100%);
    color: #0c0a09;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.footer-golden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.footer-golden h3,
.footer-golden h4,
.footer-golden .gold-text {
    color: #000 !important;
}

.footer-golden .text-zinc-500,
.footer-golden .text-zinc-600,
.footer-golden .text-zinc-700 {
    color: rgba(0, 0, 0, 0.7) !important;
}

.footer-golden .border-white\/5 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.footer-golden a:hover {
    color: #f4f4f5 !important;
    background: #000;
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 2px;
}