/* 
* Ridos Verzi Roofing - Cookie Consent Stylesheet
* Styles for the cookie consent banner and settings
*/

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(43, 87, 151, 0.95); /* Slightly transparent primary color */
    color: white;
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Open Sans', sans-serif;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

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

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

.cookie-content h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.cookie-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    max-width: 800px;
}

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

.cookie-buttons button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

#accept-necessary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

#accept-necessary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#accept-all {
    background-color: white;
    color: #2b5797;
}

#accept-all:hover {
    background-color: #f8f9fa;
}

#customize-cookies {
    background-color: transparent;
    color: white;
    text-decoration: underline;
    padding: 0.6rem 0;
}

#customize-cookies:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Cookie Settings */
.cookie-settings {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    color: #333;
}

.cookie-settings.hidden {
    display: none;
}

.cookie-option {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
}

.cookie-option:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.cookie-option input {
    margin-right: 1rem;
    transform: scale(1.2);
}

.cookie-option label {
    flex: 1;
    min-width: 150px;
    font-weight: 600;
    color: #2b5797;
    margin-bottom: 0.3rem;
}

.cookie-option p {
    width: 100%;
    padding-left: 2.5rem;
    margin-top: 0.3rem;
    color: #6c757d;
    font-size: 0.9rem;
}

#save-preferences {
    background-color: #2b5797;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#save-preferences:hover {
    background-color: #224b7e;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
    
    .cookie-option {
        flex-direction: column;
    }
    
    .cookie-option input {
        margin-bottom: 0.5rem;
    }
    
    .cookie-option p {
        padding-left: 0;
        margin-top: 0.8rem;
    }
}
