:root {
    --bg-dark: #1a1a1a;
    --bg-card: #222222;
    --text-main: #f5f5f5;
    --text-muted: #888888;
    --accent-gold: #d4af37;
    --border-color: #333333;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; }

/* Hero Section */
.hero-section {
    width: 100vw; /* Force full viewport width */
    max-width: 100%; /* Prevent overflow */
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* This handles horizontal centering */
    text-align: center;
    position: relative;
    overflow: hidden; /* Key: prevents scrollbars from shifting layout */
}

.hero-content {
    width: 100%;
    max-width: 800px; /* Constrain the content width */
    margin: 0 auto;   /* Force margins to be equal */
    padding: 0 20px;  /* Safety padding on mobile */
    z-index: 10;      /* Ensure it sits above background */
}

.hero-content h1 { font-size: 4rem; margin-bottom: 0.5rem; letter-spacing: -1px; }
.hero-content .subtitle { font-family: var(--font-sans); font-size: 1rem; text-transform: uppercase; letter-spacing: 4px; color: var(--accent-gold); margin-bottom: 4rem; }

/* The Input */
.input-wrapper { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
#taq-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-main);
    padding: 1rem 0;
    text-align: center;
    transition: border-color 0.3s ease, text-shadow 0.3s ease;
}
#taq-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}
#taq-input::placeholder { color: #444; font-style: italic; }

/* Buttons */
.btn-gold {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.btn-gold:hover { background-color: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.3); }

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: var(--bg-card);
    margin: 15% auto;
    padding: 3rem;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Assessment Styling */
.assessment-container { max-width: 700px; margin: 4rem auto; padding: 2rem; min-height: 60vh; }
.progress-track { width: 100%; height: 2px; background: #333; margin-bottom: 2rem; }
.progress-fill { height: 100%; background: var(--accent-gold); width: 0%; transition: width 0.5s ease; }

.question-card h3 { font-size: 1.8rem; margin-bottom: 2rem; }
.option-group label {
    display: block;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.option-group label:hover { border-color: var(--accent-gold); background: rgba(212, 175, 55, 0.05); }
.option-group input[type="radio"] { margin-right: 10px; }

/* Terminal Loader for Results */
.terminal-text { font-family: 'Courier New', monospace; color: var(--accent-gold); margin-bottom: 1rem; }

/* --- FIXES FOR ASSESSMENT UI --- */

/* 1. Spacing the Slider Labels */
.slider-labels {
    display: flex;
    justify-content: space-between; /* Pushes them to far left and right */
    width: 100%;
    margin-top: 1rem;
    color: #888;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* 2. The "Continue" Button (Premium Style) */
#next-btn, .btn-primary {
    background-color: transparent;
    color: #d4af37; /* Gold text */
    border: 1px solid #d4af37; /* Gold border */
    padding: 1rem 3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 3rem;
    font-family: var(--font-sans);
    min-width: 200px;
}

#next-btn:hover, .btn-primary:hover {
    background-color: #d4af37;
    color: #1a1a1a; /* Dark text on hover */
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); /* Gold glow */
}

/* 3. Custom Gold Slider (Replacing the default Blue) */
input[type=range] {
    -webkit-appearance: none; /* Remove default styling */
    width: 100%;
    background: transparent;
    margin: 20px 0;
}

/* The Track (Line) */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    cursor: pointer;
    background: #444;
    border: none;
}

/* The Thumb (Dot) */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    margin-top: -9px; /* Centers thumb on track */
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8); /* Glow effect */
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Firefox support for slider */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 2px;
    cursor: pointer;
    background: #444;
}
input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border: none;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

/* --- FIX FOR ASSESSMENT INPUTS --- */

/* 1. Style the Text/Number Input */
.input-area .large-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #333; /* Dark grey line initially */
    color: #f5f5f5;
    font-family: 'Playfair Display', serif; /* Classy Serif font */
    font-size: 2.5rem;
    text-align: center;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* 2. Glow Effect on Focus */
.input-area .large-input:focus {
    outline: none;
    border-bottom-color: #d4af37; /* Gold line */
    box-shadow: 0 10px 20px -10px rgba(212, 175, 55, 0.1);
}

/* 3. Style the Placeholder Text */
.input-area .large-input::placeholder {
    color: #444;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.6;
}

/* 4. Remove the ugly "Up/Down" arrows on number inputs */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}