/* 
 * Cookie Consent Styles for QuineReCom
 * A professional cleaning service company in France
 */

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2C3E50;
    color: #FFFFFF;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default, will be shown via JS */
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.cookie-content p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-content a {
    color: #1E90FF;
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #0077CC;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #FFFFFF;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalOpen 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #E1E5EA;
}

.modal-header h3 {
    margin: 0;
    color: #333333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666666;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #1E90FF;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: #666666;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-option {
    border: 1px solid #E1E5EA;
    border-radius: 8px;
    padding: 1.25rem;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.option-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.cookie-option p {
    margin: 0;
    font-size: 0.9rem;
    color: #666666;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #E1E5EA;
    text-align: right;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CCCCCC;
    transition: .3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1E90FF;
}

input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}

input:focus + .slider {
    box-shadow: 0 0 1px #1E90FF;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
    }
}
