:root {
    --primary-color: #0F2027;
    /* Deep Blue/Black */
    --secondary-color: #203A43;
    --accent-color: #D4AF37;
    /* Gold */
    --text-light: #f4f4f4;
    --text-dark: #333333;
    --bg-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    /* Allow scrolling */
    background-color: var(--primary-color);
    background-image: url('../rio_10.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Fixed background while scrolling */
    position: relative;
    display: flex;
    flex-direction: column;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.9), rgba(32, 58, 67, 0.8));
    z-index: 0;
}

/* Header */
.quiz-header {
    position: relative;
    z-index: 10;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center logo */
}

.logo img {
    height: 70px;
}

/* Progress Bar Wrapper to control alignment */
.progress-wrapper {
    width: 100%;
    max-width: 900px;
    /* Match quiz-step width */
    margin-bottom: 30px;
    padding: 0 20px;
}

.progress-container {
    width: 100%;
    /* Full width of wrapper */
    max-width: none;
    height: 4px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    position: relative;
    margin: 0;
}

.progress-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.3) 50%, transparent 50%);
    background-size: 15px 100%;
    /* Wider dash */
    z-index: 1;
}

.progress-end-icon {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    z-index: 1;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    transition: width 0.5s ease;
    z-index: 2;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.progress-icon {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%) rotate(15deg);
    z-index: 3;
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: left 0.5s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Main Container */
.quiz-container {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Stack progress and content */
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.quiz-step {
    display: none;
    width: 100%;
    max-width: 900px;
}

.quiz-step.active {
    display: block;
}

/* Content Box */
.content-box {
    background: var(--bg-light);
    border-radius: 0;
    padding: 50px 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.text-center {
    text-align: center;
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.subtitle {
    display: block;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #bfa14a;
    /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    display: inline-block;
    padding: 14px 30px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Question Styles */
.step-indicator {
    color: #999;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-card {
    background: #f9f9f9;
    padding: 20px 30px;
    cursor: pointer;
    border: 1px solid #eee;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    border-radius: 8px;
    width: 100%;
}

.option-card:hover {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

/* Image Option Card as Wide Rectangle */
.option-card.has-image {
    padding: 0;
    height: 120px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.option-card.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.option-card.has-image .option-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 0 30px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.option-card.has-image:hover img {
    transform: scale(1.05);
}

.option-card.has-image .option-text strong {
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    color: #fff;
}

.option-icon {
    font-size: 1.8rem;
    margin-bottom: 0;
    margin-right: 25px;
    width: 40px;
    text-align: center;
    color: var(--secondary-color);
}

.option-text strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Form Styles */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.full-width {
    width: 100%;
}

.privacy-note {
    font-size: 0.8rem;
    color: #999;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Result Styles */
.result-box {
    padding: 0;
    /* Remove padding to use grid */
    overflow: hidden;
}

.result-header {
    padding: 40px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.result-header h2 {
    margin-bottom: 0;
}

.result-content {
    display: flex;
}

.result-image {
    width: 40%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.result-details {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-features {
    list-style: none;
    margin: 20px 0 30px;
}

.result-features li {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-features i {
    color: var(--accent-color);
}

#result-price {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.result-actions {
    display: flex;
    gap: 15px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .content-box {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .result-content {
        flex-direction: column;
    }

    .result-image,
    .result-details {
        width: 100%;
    }

    .result-image {
        height: 200px;
        min-height: 200px;
    }

    .logo img {
        height: 40px;
    }

    .progress-container {
        width: 100%;
        margin: 0;
    }

    .result-actions {
        flex-direction: column;
        width: 100%;
    }

    .result-actions .btn-primary,
    .result-actions .btn-outline {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
}