/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1858c3 0%, #0f4481 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    border-top: 3px solid #f9a11b;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.consent-title {
    color: #76fdfc;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.consent-text {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.consent-text a {
    color: #f9a11b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.consent-text a:hover {
    color: #76fdfc;
    text-decoration: underline;
}

.consent-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.consent-buttons .btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.consent-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.consent-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.consent-buttons .btn-warning {
    background: #f9a11b;
    border: 2px solid #f9a11b;
    color: #1858c3;
    font-weight: 700;
}

.consent-buttons .btn-warning:hover {
    background: #e8930e;
    border-color: #e8930e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 161, 27, 0.4);
}

/* Modal Customization */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header.bg-primary {
    background: linear-gradient(135deg, #1858c3 0%, #0f4481 100%) !important;
    border-radius: 1rem 1rem 0 0;
}

.consent-item {
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.consent-item:hover {
    border-color: #1858c3;
    box-shadow: 0 5px 15px rgba(24, 88, 195, 0.1);
}

.consent-item.required-item {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.consent-item.optional-item {
    border-color: #198754;
    background: rgba(25, 135, 84, 0.05);
}

.consent-toggle .form-check-input {
    width: 3rem;
    height: 1.5rem;
    border-radius: 1rem;
}

.consent-toggle .form-check-input:checked {
    background-color: #1858c3;
    border-color: #1858c3;
}

.consent-toggle .form-check-input:disabled {
    opacity: 0.7;
    background-color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem 0;
    }
    
    .consent-buttons {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .consent-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .consent-title {
        font-size: 1.1rem;
    }
    
    .consent-text {
        font-size: 0.9rem;
    }
}

/* Hidden state */
.cookie-consent-banner.hidden {
    display: none;
}

/* Add some bottom padding to body when banner is showing to prevent content overlap */
body.banner-showing {
    padding-bottom: 120px;
}

@media (max-width: 768px) {
    body.banner-showing {
        padding-bottom: 140px;
    }
}