@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

:root {
    --gold: #D4AF37;
    --gold-light: #f1d38e;
    --bg: #0d0e12;
    --card-bg: #16181d;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border: rgba(255, 255, 255, 0.05);
    
    /* Status Colors for results */
    --red: #ff4d4d;
    --orange: #ffa64d;
    --yellow: #ffff4d;
    --green: #4dff88;
}

/* Global Reset */
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { 
    box-sizing: inherit; 
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.03) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.02) 0px, transparent 50%);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Typography Overrides */
h1 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    background: none;
    -webkit-text-fill-color: initial;
}

h1.gold-title {
    color: var(--gold);
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #fff;
}

/* Premium Card System */
.statement, .test-card, .result-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Standard Premium Buttons */
button, .btn, .back-button, .btn-premium {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 18px 45px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
    user-select: none;
    -webkit-user-select: none;
}

/* Form Elements */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.option, .option-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.option span, .option-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.option.selected, .option-item.active {
    background: var(--gold);
    border-color: var(--gold);
}

.option.selected span, .option-item.active span {
    color: #000;
    font-weight: 700;
}

/* Hover effects only for devices with a mouse */
@media (hover: hover) {
    .test-card:hover {
        transform: translateY(-15px);
        border-color: rgba(212, 175, 55, 0.4);
        box-shadow: 0 40px 80px rgba(0,0,0,0.8);
        background: rgba(22, 24, 29, 0.8);
    }

    button:hover, .btn:hover, .back-button:hover, .btn-premium:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
        background: var(--gold-light);
    }

    .option:hover, .option-item:hover {
        background: rgba(212, 175, 55, 0.05);
        border-color: var(--gold);
    }

    .footer-links a:hover {
        color: var(--gold);
    }
}

/* Responsive Grid */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Footer Styling */
footer {
    padding: 60px 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright {
    line-height: 1.6;
    max-width: 100%;
}

/* Progress bar for all tests */
.progress-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width 0.4s ease;
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .container { padding: 40px 16px; }
    .test-card { padding: 30px 20px; }
}