/**
 * Cookie Consent Popup Styles (Modal Version)
 */

/* Overlay (dark background) */
.cookie-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    padding: 20px;
}

.cookie-consent-banner.cookie-consent-visible {
    opacity: 1;
    visibility: visible;
}

/* Modal/Popup Container */
.cookie-consent-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent-banner.cookie-consent-visible .cookie-consent-container {
    transform: scale(1);
}

/* Close button (X) */
.cookie-consent-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-consent-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Content */
.cookie-consent-content {
    text-align: center;
}

.cookie-consent-text {
    margin-bottom: 30px;
}

.cookie-consent-text p {
    margin: 0;
    color: #333333;
    font-size: 15px;
    line-height: 1.7;
}

.cookie-consent-link {
    color: var(--primary-color, #003571);
    text-decoration: underline;
    margin-left: 5px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.cookie-consent-link:hover {
    color: var(--secondary-color, #b48a47);
}

/* Buttons */
.cookie-consent-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-consent-button {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
}

.cookie-consent-accept {
    background: linear-gradient(135deg, var(--primary-color, #003571), color-mix(in srgb, var(--primary-color, #003571) 85%, black));
    color: #ffffff;
}

.cookie-consent-accept:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color, #003571) 90%, black), var(--primary-color, #003571));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 53, 113, 0.4);
}

.cookie-consent-decline {
    background: #f0f0f0;
    color: #333333;
    border: 1px solid #ddd;
}

.cookie-consent-decline:hover {
    background: #e0e0e0;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent-container {
        padding: 30px 25px;
        max-width: 90%;
    }

    .cookie-consent-text p {
        font-size: 14px;
    }

    .cookie-consent-actions {
        flex-direction: column;
        gap: 12px;
    }

    .cookie-consent-button {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .cookie-consent-container {
        padding: 25px 20px;
        border-radius: 8px;
    }

    .cookie-consent-text {
        margin-bottom: 25px;
    }

    .cookie-consent-text p {
        font-size: 13px;
    }

    .cookie-consent-button {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* Animation on load */
@keyframes slideInPopup {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-consent-banner.cookie-consent-visible .cookie-consent-container {
    animation: slideInPopup 0.4s ease-out;
}
