/**
 * GDPR Frontend Styles
 * Styles for GDPR consent forms and components
 */

/* GDPR Section in Booking Form */
.gdpr-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.gdpr-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

/* Checkbox Groups */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-label:hover .checkmark {
    border-color: #007cba;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #007cba;
    border-color: #007cba;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    flex: 1;
    color: #495057;
}

.checkbox-text a {
    color: #007cba;
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: #005a87;
}

.required-indicator {
    color: #dc3545;
    font-weight: bold;
    margin-left: 4px;
}

/* Privacy Notice */
.privacy-notice {
    margin-top: 1rem;
    padding: 1rem;
    background: #e7f3ff;
    border-left: 4px solid #007cba;
    border-radius: 4px;
}

.privacy-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
}

/* Error States */
.form-group.has-error .checkmark {
    border-color: #dc3545;
}

.form-group.has-error .checkbox-text {
    color: #dc3545;
}

.field-error {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* GDPR Info Modal */
.gdpr-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gdpr-info-modal .modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gdpr-info-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.gdpr-info-modal .modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #495057;
}

.gdpr-info-modal .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gdpr-info-modal .modal-close:hover {
    color: #495057;
}

.gdpr-info-modal .modal-body {
    padding: 1.5rem;
}

.gdpr-info-modal .modal-body h4 {
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
    color: #495057;
}

.gdpr-info-modal .modal-body h4:first-child {
    margin-top: 0;
}

.gdpr-info-modal .modal-body ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}

.gdpr-info-modal .modal-body li {
    margin-bottom: 0.25rem;
    color: #6c757d;
}

.gdpr-info-modal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.gdpr-info-modal .btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.gdpr-info-modal .btn-primary {
    background: #007cba;
    color: white;
}

.gdpr-info-modal .btn-primary:hover {
    background: #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gdpr-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
    
    .checkmark:after {
        left: 5px;
        top: 1px;
        width: 5px;
        height: 10px;
    }
    
    .gdpr-info-modal .modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .gdpr-info-modal .modal-header,
    .gdpr-info-modal .modal-body,
    .gdpr-info-modal .modal-footer {
        padding: 1rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .checkmark {
        border-width: 3px;
    }
    
    .checkbox-label input:checked ~ .checkmark {
        background-color: #000;
        border-color: #000;
    }
    
    .privacy-notice {
        border-left-width: 6px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .checkmark,
    .gdpr-info-modal {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .gdpr-info-modal {
        display: none !important;
    }
    
    .gdpr-section {
        background: white !important;
        border: 1px solid #000 !important;
    }
}