body {
    position: relative;
}

.geometric-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(201, 168, 76, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(201, 168, 76, 0.08), transparent 25%);
    background-size: cover;
}

.gold-ring {
    position: absolute;
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw; height: 60vw;
    animation: spin linear infinite;
}

.page-section {
    display: none;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
}

.page-section.active {
    display: flex;
    animation: slideIn 0.5s ease-out;
}

.card {
    background: linear-gradient(135deg, rgba(26,47,107,0.85), rgba(13,27,62,0.95));
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(201,168,76,0.3);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    padding: 2rem;
    margin-bottom: 2rem;
}

.btn {
    font-family: var(--font-headings);
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    outline: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--navy);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: var(--gradient-navy);
    color: var(--gold-light);
    border: 1px solid var(--gold);
}

.btn-secondary:hover {
    background: rgba(201,168,76,0.1);
}

.btn-submit {
    background: var(--gradient-crimson);
    color: var(--white);
}

.likert-scale {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
}

.likert-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.likert-option input {
    display: none;
}

.likert-box {
    display: block;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 10px;
    font-family: var(--font-labels);
    transition: all 0.3s;
    color: var(--white);
}

.likert-option input:checked + .likert-box {
    background: var(--gradient-gold);
    color: var(--navy);
    font-weight: bold;
    box-shadow: var(--shadow-gold);
    transform: scale(1.05);
}

.question-card {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    background: rgba(13,27,62,0.95);
    color: white;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s;
    z-index: 9999;
}
.toast.show { transform: translateX(0); }
.toast-error { border-color: var(--crimson); }
.toast-success { border-color: var(--success); }

@keyframes slideIn {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes spin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--gold);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.form-control option {
    background: var(--navy);
    color: white;
}

.top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 10px 20px;
    background: rgba(13,27,62,0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}

.progress-container {
    flex: 1;
    margin: 0 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    height: 10px;
    align-self: center;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-gold);
    width: 0%;
    transition: width 0.3s;
}

.review-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.review-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.unanswered-row {
    background: rgba(139, 26, 26, 0.2);
}

@media (max-width: 1024px) {
    .page-section {
        max-width: 95%;
        padding: 1.5rem;
    }
    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .likert-scale {
        flex-direction: column;
    }
    .page-section { 
        padding: 1rem; 
        margin-top: 40px; 
    }
    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .likert-box {
        padding: 8px;
        font-size: 0.9rem;
    }
    .question-text {
        font-size: 1rem;
    }
    .top-bar {
        padding: 8px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
