/**
 * GDPR Compliance Styles
 * Styles for cookie consent banner, privacy controls, and data protection UI
 */

/* GDPR Banner */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gdpr-banner.show {
    transform: translateY(0);
}

.gdpr-banner.hide {
    transform: translateY(100%);
}

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

.gdpr-banner-text {
    flex: 1;
    min-width: 300px;
}

.gdpr-banner-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.gdpr-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.gdpr-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.gdpr-banner-actions .btn {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.gdpr-banner-actions .btn-primary {
    background: var(--primary-color, #c7934a);
    color: white;
}

.gdpr-banner-actions .btn-primary:hover {
    background: var(--primary-dark, #b8844a);
}

.gdpr-banner-actions .btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gdpr-banner-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.gdpr-banner-actions .btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gdpr-banner-actions .btn-outline:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
}

/* GDPR Backdrop */
.gdpr-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    pointer-events: none;
}

body.gdpr-banner-active {
    padding-bottom: 120px;
}

/* GDPR Modal */
.gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.gdpr-modal.show {
    opacity: 1;
    visibility: visible;
}

.gdpr-modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gdpr-modal.show .gdpr-modal-content {
    transform: scale(1);
}

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

.gdpr-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-dark, #333);
}

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

.gdpr-close:hover {
    background: #f5f5f5;
    color: #333;
}

.gdpr-modal-body {
    padding: 20px 25px;
}

.gdpr-modal-body p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.gdpr-cookie-group {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.gdpr-cookie-group:hover {
    border-color: #ddd;
}

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

.gdpr-cookie-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--text-dark, #333);
}

.gdpr-cookie-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Toggle Switch */
.gdpr-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

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

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

.gdpr-switch input:checked + .gdpr-slider {
    background-color: var(--primary-color, #c7934a);
}

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

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

.gdpr-modal-footer {
    padding: 15px 25px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.gdpr-modal-footer .btn {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Privacy Controls */
.privacy-controls {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.privacy-controls h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: var(--text-dark, #333);
}

.privacy-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.privacy-actions a {
    font-size: 0.85rem;
    color: var(--primary-color, #c7934a);
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid var(--primary-color, #c7934a);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.privacy-actions a:hover {
    background: var(--primary-color, #c7934a);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gdpr-banner-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .gdpr-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .gdpr-modal {
        padding: 10px;
    }
    
    .gdpr-modal-content {
        max-height: 90vh;
    }
    
    .gdpr-modal-header,
    .gdpr-modal-body,
    .gdpr-modal-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .gdpr-cookie-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .gdpr-switch {
        align-self: flex-start;
    }
    
    body.gdpr-banner-active {
        padding-bottom: 160px;
    }
}

@media (max-width: 480px) {
    .gdpr-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .gdpr-banner-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .gdpr-modal-footer {
        flex-direction: column;
    }
    
    .gdpr-modal-footer .btn {
        width: 100%;
    }
}

/* Accessibility */
.gdpr-banner:focus-within,
.gdpr-modal:focus-within {
    outline: 2px solid var(--primary-color, #c7934a);
    outline-offset: 2px;
}

.gdpr-switch input:focus + .gdpr-slider {
    box-shadow: 0 0 0 2px rgba(199, 147, 74, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gdpr-banner {
        background: black;
        border-top: 2px solid white;
    }
    
    .gdpr-modal-content {
        border: 2px solid black;
    }
    
    .gdpr-cookie-group {
        border: 2px solid #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .gdpr-banner,
    .gdpr-modal,
    .gdpr-modal-content,
    .gdpr-slider,
    .gdpr-slider:before {
        transition: none;
    }
}

/* ========== PRIVACY CONTACT FORM ========== */
.privacy-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark, #333);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color, #c7934a);
    box-shadow: 0 0 0 3px rgba(199, 147, 74, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.5;
    gap: 10px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.form-actions .btn {
    min-width: 150px;
}

/* GDPR Rights Grid */
.gdpr-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gdpr-right-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gdpr-right-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gdpr-right-card i {
    font-size: 2.5rem;
    color: var(--primary-color, #c7934a);
    margin-bottom: 15px;
}

.gdpr-right-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--text-dark, #333);
}

.gdpr-right-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Response Timeline */
.response-timeline {
    margin: 30px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color, #c7934a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-content h4 {
    margin: 0 0 5px 0;
    color: var(--text-dark, #333);
}

.timeline-content p {
    margin: 0;
    color: #666;
}

/* Contact Alternatives */
.contact-alternatives {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-method {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.contact-method i {
    font-size: 2rem;
    color: var(--primary-color, #c7934a);
    margin-bottom: 15px;
}

.contact-method h4 {
    margin: 0 0 10px 0;
    color: var(--text-dark, #333);
}

.contact-method p {
    margin: 0 0 5px 0;
    color: #555;
}

.contact-method small {
    color: #666;
    font-size: 0.85rem;
}

.contact-method a {
    color: var(--primary-color, #c7934a);
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gdpr-rights-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-alternatives {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}