/* Cookie Consent Banner and Modal Styling */

/* Cookie Banner Styling */
.cookies-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #03657d 0%, #3487A6 100%);
    color: white;
    padding: 0px 20px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookies-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cookies-content img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.cookies-content p {
    margin: 0;
    line-height: 1.4;
    font-size: 14px;
    color: white;
}

.cookies-content a {
    color: #ffa021;
    text-decoration: underline;
    font-weight: 500;
}

.cookies-content a:hover {
    color: #e8921a;
}

.cookies-btns {
    display: flex;
    justify-content: start;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.cookies-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookies-btn i {
    font-size: 12px;
}

.cookie-btn1 {
    background: #ffa021;
    color: white;
}

.cookie-btn1:hover {
    background: #e8921a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 160, 33, 0.4);
}

/* .cookie-btn2 {
    background: transparent;
    color: white;
    border: 2px solid white;
} */

.cookie-btn2:hover {
    background: white;
    color: #03657d;
    transform: translateY(-2px);
}

/* .cookie2 {
    background: transparent;
    color: white;
    border: 2px solid white;
} */

.cookie2:hover {
    background: white;
    color: #03657d;
    transform: translateY(-2px);
}

/* Cookie Modal Styling */
.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-preferences-modal.show {
    display: flex;
}

.cookie-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 83vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #03657d;
    font-size: 24px;
    font-weight: 700;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.cookie-modal-body {
    padding: 30px;
}

.cookie-modal-body p {
    margin: 0 0 25px;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-category {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: #03657d;
    box-shadow: 0 2px 8px rgba(3, 101, 125, 0.1);
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #03657d;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #03657d;
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info strong {
    display: block;
    color: #03657d;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cookie-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Compliance Notice Styling */
.compliance-notice {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.compliance-notice h4 {
    color: #03657d;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
}

.compliance-notice p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 10px;
}

.compliance-notice ul {
    margin: 10px 0;
    padding-left: 20px;
}

.compliance-notice li {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.compliance-notice a {
    color: #03657d;
    text-decoration: underline;
}

.compliance-notice a:hover {
    color: #024a5e;
}

/* CCPA Option Styling */
.ccpa-option {
    border: 2px solid #ffa021;
    background: #fff8f0;
}

.ccpa-option:hover {
    border-color: #e8921a;
    box-shadow: 0 2px 8px rgba(255, 160, 33, 0.2);
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px 30px;
    border-top: 1px solid #e0e0e0;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookie-btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.cookie-btn-secondary:hover {
    background: #e9ecef !important;
    color: #333 !important;
}

.cookie-btn-primary {
    background: #03657d;
    color: white;
}

.cookie-btn-primary:hover {
    background: #024a5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 101, 125, 0.4);
}

.cookie-btn-success {
    background: #ffa021;
    color: white;
}

.cookie-btn-success:hover {
    background: #e8921a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 160, 33, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookies-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookies-btns {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .cookies-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-toggle {
        align-self: flex-start;
    }
}

/* Accessibility Improvements */
.cookie-toggle:focus-within .cookie-toggle-slider {
    box-shadow: 0 0 0 3px rgba(3, 101, 125, 0.3);
}

.cookie-btn:focus {
    outline: 2px solid #03657d;
    outline-offset: 2px;
}

.cookie-modal-close:focus {
    outline: 2px solid #03657d;
    outline-offset: 2px;
}

/* Cookie Preferences Link */
.cookie-pref-link-btn {
    background: #03657d;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(3, 101, 125, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cookie-pref-link-btn:hover {
    background: #024a5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 101, 125, 0.4);
}

.cookie-pref-link-btn i {
    font-size: 14px;
}

/* Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
