/* ===============================================
   ABATUR HOTEL BOOKING - EVENT CHECKBOXES V2
   Frontend User Interface Styles
   =============================================== */

/* Checkbox Container */
.ahb-v2-checkbox-container {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ahb-v2-checkbox-container h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

/* Individual Checkbox */
.ahb-v2-checkbox-item {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ahb-v2-checkbox-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.ahb-v2-checkbox-item.required {
    border-left: 4px solid #dc3545;
}

.ahb-v2-checkbox-item.selected {
    border-color: #28a745;
    background: #f8fff9;
}

/* Checkbox Input */
.ahb-v2-checkbox-input {
    margin: 0 12px 0 0;
    transform: scale(1.3);
    accent-color: #667eea;
    cursor: pointer;
}

/* Checkbox Content */
.ahb-v2-checkbox-content {
    flex: 1;
    min-width: 0;
}

.ahb-v2-checkbox-text {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
    line-height: 1.4;
    cursor: pointer;
}

.ahb-v2-checkbox-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

/* Required Indicator */
.ahb-v2-required-indicator {
    color: #dc3545;
    font-weight: bold;
    margin-left: 4px;
}

/* Error States */
.ahb-v2-checkbox-item.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.ahb-v2-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Validation Messages */
.ahb-v2-validation-summary {
    background: #f8d7da;
    border: 1px solid #dc3545;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    color: #721c24;
}

.ahb-v2-validation-summary h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.ahb-v2-validation-list {
    margin: 0;
    padding-left: 20px;
}

.ahb-v2-validation-list li {
    margin: 5px 0;
}

/* Success Messages */
.ahb-v2-success-message {
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    color: #155724;
    font-weight: 500;
}

/* Loading States */
.ahb-v2-loading-overlay {
    position: relative;
}

.ahb-v2-loading-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ahb-v2-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: ahb-v2-spin 1s linear infinite;
}

@keyframes ahb-v2-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ahb-v2-checkbox-container {
        margin: 15px 0;
        padding: 15px;
    }

    .ahb-v2-checkbox-item {
        padding: 12px;
        margin: 10px 0;
    }

    .ahb-v2-checkbox-input {
        transform: scale(1.2);
    }

    .ahb-v2-checkbox-text {
        font-size: 15px;
    }

    .ahb-v2-checkbox-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ahb-v2-checkbox-container {
        margin: 10px 0;
        padding: 12px;
    }

    .ahb-v2-checkbox-item {
        padding: 10px;
        margin: 8px 0;
    }

    .ahb-v2-checkbox-text {
        font-size: 14px;
    }

    .ahb-v2-checkbox-description {
        font-size: 12px;
    }
}

/* Accessibility */
.ahb-v2-checkbox-item:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.ahb-v2-checkbox-input:focus {
    outline: none;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .ahb-v2-checkbox-item {
        border-width: 3px;
    }

    .ahb-v2-checkbox-text {
        font-weight: 600;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .ahb-v2-checkbox-item,
    .ahb-v2-loading-spinner {
        transition: none;
        animation: none;
    }
}

/* Print Styles */
@media print {
    .ahb-v2-checkbox-container {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    .ahb-v2-checkbox-item {
        break-inside: avoid;
        border: 1px solid #666;
    }

    .ahb-v2-checkbox-item.selected::after {
        content: ' ✓';
        font-weight: bold;
    }
}
