/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #64B5F6;
    --secondary-color: #03A9F4;
    --text-color: #1565C0;
    --text-dark: #0D47A1;
    --text-light: #1976D2;
    --bg-color: #F5F9FC;
    --white: #FFFFFF;
    --border-color: #E3F2FD;
    --success-color: #4CAF50;
    --shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
    --shadow-hover: 0 4px 12px rgba(33, 150, 243, 0.25);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border-radius: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 600;
}

/* Main Content */
main {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.intro-page {
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.intro-content h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
}

.intro-description {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.8;
}

/* Question Page */
.question-page {
    max-width: 900px;
    margin: 0 auto;
}

.question-header {
    margin-bottom: 30px;
}

.question-number {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.question-title {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.question-description {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: left;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar-wrapper {
    background: var(--border-color);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-light);
}

/* Answer Options */
.answer-options {
    margin-bottom: 40px;
}

.answer-option {
    background: #F0F8FF;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    border-color: var(--primary-color);
    background: #E3F2FD;
    transform: translateX(5px);
}

.answer-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.answer-option label {
    cursor: pointer;
    font-size: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.answer-option.selected {
    border-color: var(--primary-color);
    background: #E3F2FD;
}

/* Buttons - Different Styles for Different Pages */
.button-container-center {
    text-align: center;
    margin-top: 30px;
}

.button-container-left {
    text-align: left;
    margin-top: 30px;
}

.button-container-right {
    text-align: right;
    margin-top: 30px;
}

.button-container-space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.button-container-flex-end {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.button-container-flex-start {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
footer {
    background: var(--white);
    padding: 40px 20px 20px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
}

/* Cookies Banner */
.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(33, 150, 243, 0.2);
    padding: 20px;
    z-index: 1000;
    display: none;
}

.cookies-banner.show {
    display: block;
}

.cookies-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookies-content p {
    flex: 1;
    min-width: 300px;
    color: var(--text-color);
    font-size: 14px;
}

.cookies-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookies-buttons {
    display: flex;
    gap: 10px;
}

/* Policy Pages */
.policy-page {
    max-width: 900px;
    margin: 0 auto;
}

.policy-page h1 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
}

.policy-page h2 {
    color: var(--primary-dark);
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.policy-page h3 {
    color: var(--text-dark);
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.policy-page p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

.policy-page ul, .policy-page ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.policy-page li {
    margin-bottom: 8px;
    line-height: 1.8;
    color: var(--text-color);
}

.policy-page strong {
    color: var(--primary-dark);
}

.policy-page a {
    color: var(--primary-color);
    text-decoration: none;
}

.policy-page a:hover {
    text-decoration: underline;
}

.last-updated {
    color: var(--text-light);
    font-size: 14px;
    font-style: italic;
    margin-bottom: 30px;
}

/* Completion Page */
.completion-page {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.completion-icon {
    font-size: 80px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.completion-page h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
}

.completion-page p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    main {
        padding: 20px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .intro-content h2 {
        font-size: 24px;
    }

    .question-title {
        font-size: 20px;
    }

    .button-container-space-between,
    .button-container-flex-end,
    .button-container-flex-start {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cookies-content {
        flex-direction: column;
        text-align: center;
    }

    .cookies-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookies-buttons .btn {
        flex: 1;
    }

    .policy-page {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    .intro-content h2 {
        font-size: 20px;
    }

    .question-title {
        font-size: 18px;
    }

    .btn-large {
        padding: 12px 25px;
        font-size: 16px;
    }
}
