/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0a0f16 100%);
    color: white;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background 0.8s ease-in-out;
}

/* Dynamic background system with dual-layer crossfading */
.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Second background layer for smooth crossfading */
#dynamic-background-2 {
    z-index: -3; /* Behind the first layer */
}

.dynamic-background.active {
    opacity: 1;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(15, 20, 25, 0.7);
    transition: background 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Prevent background flicker during transitions */
body {
    background-attachment: fixed;
}

/* Optimize background rendering */
.dynamic-background {
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: opacity;
}

/* Blue Ambient Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(29, 78, 216, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Floating particles effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(59, 130, 246, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(37, 99, 235, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(29, 78, 216, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(59, 130, 246, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: float 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-20px) translateX(10px); }
    66% { transform: translateY(10px) translateX(-10px); }
    100% { transform: translateY(0px) translateX(0px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 30px 0;
    text-align: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.logo span:first-child {
    font-size: 32px;
    color: #3B82F6;
    font-weight: bold;
}

.logo img {
    /* max-width: 300px; */
    height: auto;
    max-height: 100px;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
    filter: brightness(1);
}

.logo img:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Ensure logo works with dark backgrounds */
.logo img {
    background: transparent;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.survey-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

/* Survey Steps */
.survey-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.survey-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Title */
.main-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #3B82F6, #2563EB, #1D4ED8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Progress Bar */
.progress-bar {
    margin-bottom: 50px;
}

.progress-text {
    font-size: 16px;
    color: #3B82F6;
    margin-bottom: 15px;
    font-weight: 500;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 400px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #2563EB);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Question Title */
.question-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    margin-bottom: 40px;
    color: #FFFFFF;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* Option Cards */
.option-card {
    background: rgba(30, 58, 138, 0.2);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.option-card:hover {
    border-color: #3B82F6;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.option-card:hover::before {
    left: 100%;
}

.option-card.selected {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.option-icon {
    font-size: 48px;
    color: #3B82F6;
    margin-bottom: 15px;
}

.option-text {
    font-size: 18px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.4;
}

.sub-text {
    font-size: 14px;
    color: #3B82F6;
    font-weight: 400;
}

/* Next Button */
.next-button {
    background: linear-gradient(45deg, #3B82F6, #2563EB);
    color: #FFFFFF;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.next-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.next-button:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

/* Results Page */
.results-container {
    margin-top: 30px;
}

.profile-card {
    background: rgba(30, 58, 138, 0.2);
    border: 2px solid #3B82F6;
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.profile-icon {
    font-size: 80px;
    color: #3B82F6;
    margin-bottom: 20px;
}

.profile-title {
    font-size: 32px;
    font-weight: 700;
    color: #3B82F6;
    margin-bottom: 20px;
}

.profile-description {
    font-size: 18px;
    line-height: 1.6;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.bonus-offer {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.bonus-offer h4 {
    font-size: 20px;
    color: #3B82F6;
    margin-bottom: 15px;
}

.bonus-amount {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.claim-button {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.claim-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.lang-buttons {
    display: flex;
    gap: 8px;
}

.lang-select {
    display: none;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3B82F6;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
}

.lang-btn.active {
    background: #3B82F6;
    color: #FFFFFF;
    border-color: #3B82F6;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    font-size: 48px;
    color: #3B82F6;
    margin-bottom: 20px;
}

.loading-text {
    color: #3B82F6;
    font-size: 18px;
    font-weight: 500;
}

/* Success Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.success-overlay .popup {
    background: linear-gradient(135deg, #1a2332, #0f1419);
    border: 2px solid #3B82F6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 450px;
    margin: 20px;
}

.success-overlay .trophy-icon {
    color: #3B82F6;
    font-size: 60px;
    margin-bottom: 20px;
}

.success-overlay .title {
    color: #3B82F6;
    font-size: 24px;
    margin-bottom: 15px;
}

.success-overlay .bonus-amount {
    color: #3B82F6;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.success-overlay .account-details {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.success-overlay .close-button {
    background: linear-gradient(45deg, #3B82F6, #2563EB);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.success-overlay .close-button:hover {
    background: linear-gradient(45deg, #2563EB, #1D4ED8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Performance Optimizations */
.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

.paused * {
    animation-play-state: paused !important;
}

/* Responsive adjustments for language switcher */
@media (max-width: 768px) {
    .language-switcher {
        top: 15px;
        right: 15px;
        gap: 6px;
    }

    .lang-buttons {
        display: none;
    }

    .lang-select {
        display: block;
        background: rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(59, 130, 246, 0.3);
        color: #3B82F6;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        appearance: none;
        outline: none;
        /* min-width: 100px; */
    }

    .lang-select:hover {
        background: rgba(0, 0, 0, 0.8);
        border-color: #3B82F6;
    }

    .lang-select:focus {
        border-color: #3B82F6;
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 20px 0;
    }

    .logo {
        font-size: 24px;
    }

    .logo img {
        /* max-width: 150px; */
        max-height: 60px;
    }

    .logo span:first-child {
        font-size: 24px;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .option-card {
        padding: 20px 12px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .option-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .option-text {
        font-size: 14px;
        text-align: center;
        line-height: 1.3;
    }

    .option-text .sub-text {
        display: none;
    }

    .next-button {
        padding: 15px 30px;
        font-size: 16px;
    }

    .profile-card {
        padding: 30px 20px;
    }

    .profile-icon {
        font-size: 60px;
    }

    .profile-title {
        font-size: 24px;
    }

    .profile-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo img {
        /* max-width: 120px; */
        max-height: 50px;
    }

    .logo span:first-child {
        font-size: 20px;
    }

    .main-title {
        font-size: 28px;
    }

    .question-title {
        font-size: 20px;
    }

    .options-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }

    .option-card {
        padding: 15px 10px;
        min-height: 100px;
    }

    .option-icon {
        font-size: 28px;
    }

    .option-text {
        font-size: 12px;
    }

    .bonus-amount {
        font-size: 20px;
    }
}

/* Animation for card selection */
@keyframes cardSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.option-card.selecting {
    animation: cardSelect 0.3s ease;
}

/* Personal Information Form */
.form-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    text-align: center;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.personal-form {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #3B82F6;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: #1a1a1a;
    color: white;
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

.required {
    color: #ff6b6b;
    font-weight: bold;
}

.form-group.error input,
.form-group.error select {
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.2);
}

.form-checkboxes {
    margin-bottom: 30px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #3B82F6;
    cursor: pointer;
}

.checkbox-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    flex: 1;
}

.submit-button {
    width: 100%;
    background: linear-gradient(45deg, #3B82F6, #2563EB);
    color: #1a1a1a;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.submit-button:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.submit-button.loading {
    pointer-events: none;
}

.submit-button.loading i {
    animation: spin 1s linear infinite;
}

/* Form responsive design */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .personal-form {
        padding: 30px 20px;
    }

    .form-container {
        padding: 0 10px;
    }

    .checkbox-group {
        align-items: center;
    }

    .checkbox-group label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .form-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .personal-form {
        padding: 25px 15px;
    }

    .form-group input,
    .form-group select {
        padding: 10px 14px;
        font-size: 14px;
    }

    .submit-button {
        padding: 16px 30px;
        font-size: 16px;
    }
}

/* Footer Styles */
.footer {
    margin-top: auto;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* background: rgba(0, 0, 0, 0.1); */
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
    margin-right: 10px;
}

.footer-logo-img:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: right;
}

.footer-copyright span {
    display: inline-block;
}

.legal-notices-btn,
.cookie-preferences-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 15px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.legal-notices-btn:hover,
.cookie-preferences-btn:hover {
    color: #3B82F6;
}

/* Footer responsive design */
@media (max-width: 768px) {
    .footer {
        padding: 20px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-logo-img {
        width: 35px;
        height: 35px;
    }

    .footer-copyright {
        text-align: center;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 15px 0;
    }

    .footer-content {
        gap: 12px;
        padding: 0 15px;
    }

    .footer-logo-img {
        width: 30px;
        height: 30px;
    }

    .footer-copyright {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* Legal Notices Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    max-height: 80vh;
    width: 90%;
    margin: 20px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(59, 130, 246, 0.1);
}

.modal-header h2 {
    margin: 0;
    color: #3B82F6;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.legal-section {
    margin-bottom: 25px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h3 {
    color: #3B82F6;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 0;
}

.legal-section p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.legal-section strong {
    color: #fff;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.modal-close-btn {
    background: linear-gradient(45deg, #3B82F6, #2563EB);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.modal-close-btn:hover {
    background: linear-gradient(45deg, #2563EB, #1D4ED8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Modal responsive design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px 25px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 25px;
        max-height: 70vh;
    }

    .legal-section h3 {
        font-size: 16px;
    }

    .legal-section p {
        font-size: 13px;
    }

    .modal-footer {
        padding: 15px 25px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 5px;
        border-radius: 15px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-body {
        padding: 20px;
    }

    .legal-section {
        margin-bottom: 20px;
    }

    .legal-section h3 {
        font-size: 15px;
    }

    .legal-section p {
        font-size: 12px;
    }

    .legal-notices-btn,
    .cookie-preferences-btn {
        margin-left: 10px;
        font-size: 12px;
    }
}

/* Consent Backdrop - Blocks survey until consent is given */
.consent-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.consent-backdrop.show {
    opacity: 1;
}

.consent-backdrop-content {
    max-width: 500px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.consent-backdrop.show .consent-backdrop-content {
    transform: scale(1);
}

.consent-backdrop-icon {
    font-size: 48px;
    color: #3B82F6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.consent-backdrop-content h2 {
    color: #1F2937;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
}

.consent-backdrop-content p {
    color: #6B7280;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.consent-backdrop-actions {
    margin-bottom: 20px;
}

.consent-backdrop-actions .btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.consent-backdrop-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.consent-backdrop-note {
    color: #9CA3AF;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

.consent-backdrop-note small {
    display: block;
    margin-top: 5px;
}

/* Prevent scrolling when backdrop is shown */
body.consent-backdrop-active {
    overflow: hidden;
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.98) 0%, rgba(26, 35, 50, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

/* Centered consent banner (when shown from consent required screen) */
.cookie-consent-banner.centered {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    width: 600px;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-consent-banner.centered.show {
    transform: translate(-50%, -50%) scale(1);
}

.cookie-consent-banner.centered {
    transform: translate(-50%, -50%) scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.cookie-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.cookie-consent-text {
    flex: 1;
    min-width: 0;
}

.cookie-consent-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.cookie-consent-text p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.cookie-consent-details {
    margin-top: 10px;
}

.cookie-details-toggle {
    background: none;
    border: none;
    color: #3B82F6;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color 0.3s ease;
}

.cookie-details-toggle:hover {
    color: #1D4ED8;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: flex-start;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.cookie-btn-refuse {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-refuse:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.cookie-btn-save {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
}

.cookie-btn-save:hover {
    background: linear-gradient(135deg, #1D4ED8, #1E40AF);
    transform: translateY(-1px);
}

/* Cookie Details Panel */
.cookie-details-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-details-panel.expanded {
    max-height: 500px;
}

.cookie-category {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.cookie-category p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3B82F6;
}

.cookie-toggle label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"]:disabled + label {
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.cookie-actions-detailed {
    padding: 20px 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .cookie-consent-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        align-self: flex-start;
    }

    .cookie-consent-text h3 {
        font-size: 18px;
    }

    .cookie-consent-text p {
        font-size: 13px;
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-category {
        padding: 15px 20px;
    }

    .cookie-actions-detailed {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-content {
        padding: 15px;
    }

    .cookie-consent-text h3 {
        font-size: 16px;
    }

    .cookie-consent-text p {
        font-size: 12px;
    }

    .cookie-category {
        padding: 12px 15px;
    }

    .cookie-category h4 {
        font-size: 14px;
    }

    .cookie-category p {
        font-size: 12px;
    }

    .cookie-actions-detailed {
        padding: 12px 15px;
    }
}
