/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-image: url('background.jpg'); /* Make sure background.jpg is in the folder */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    min-height: 100vh; /* Ensure body takes at least the full viewport height */
    padding: 0; /* Remove all padding from the body */
}

.container {
    max-width: 448px; /* Reduced by another 20% from 560px (560 * 0.8 = 448) */
    width: 100%;
    background: #5D6576;
    margin: 20px 10px; /* Add vertical and horizontal margin */
    color: white; /* Change default text color for readability */
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Keep this to contain the rounded corners */
}

header {
    background-color: transparent;
    color: white;
    padding: 20px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    font-size: 28px; /* Slightly larger for main title */
    font-weight: 700;
}
.subtitle {
    font-size: 18px;
    color: white; /* Subtitle color for header */
    margin-top: 5px;
}

main {
    overflow-y: auto; /* Allow content inside main to scroll if it overflows */
    padding: 20px 30px;
}

.intro-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    text-align: center; /* Default for mobile */
}

.intro-text {
    flex: 2;
}

.intro-text p {
    margin-bottom: 15px;
    font-size: 16px;
}

.intro-text strong {
    color: #f8f9fa;
    font-weight: 700;
}

.quiz-container {
    padding: 20px 0; /* Adjust padding for quiz section */
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.step.active {
    background-color: #005293; /* Active step color */
}

.progress-text {
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px;
    color: #f8f9fa;
}

.question {
    margin-bottom: 20px;
}

.question h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    font-weight: 600;
}

.options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.option {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9f9f9;
    font-size: 16px;
    color: #333; /* Ensure text inside options is dark */
    text-align: left;
    position: relative;
}

.option:hover {
    border-color: #0078d7;
    background-color: #f0f7ff;
}

.option.selected {
    border-color: #28a745; /* Green border on select */
    background: #e9f5ec; /* Light green background on select */
    font-weight: bold;
    color: #28a745; /* Text color change on select */
}

.option.selected::after {
    content: '✔';
    color: #28a745;
    font-size: 20px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.final-offer-container {
    text-align: center;
    padding: 40px 20px;
}

.final-offer-container h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: white;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.offer-btn {
    background-color: #28a745;
    color: white;
    font-size: 18px;
    text-transform: uppercase;
}

footer {
    background: #5D6576;
    background: #5D6576; /* Keep footer background consistent */
    padding: 20px 30px;
    text-align: center;
    font-size: 12px;
    color: white; /* Keep footer text white */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Keep border consistent */
    width: 100%;
    margin-top: 20px;

}

.footer-links {
    margin-bottom: 15px;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 11px;
    color: #dee2e6;
    margin-bottom: 10px;
}

.hidden {
    display: none;
}

/* Responsive adjustments */
@media (min-width: 600px) {
    .intro-section {
        text-align: left; /* Align text left on larger screens */
    }
}

@media (min-width: 768px) {
    .intro-section {
        flex-direction: row; /* Side-by-side layout for intro on larger screens */
    }
    body {
        align-items: flex-start; /* Align to the left */
    }
    .container { /* No specific margin-left needed here, body padding handles it */
        margin: 20px 10px 20px 5%; /* Apply top/bottom, right, and left margin */
    }
}