/* public/assets/css/booking-form.css */

/* Modal Styles */
.modal {
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #334155;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* Member Card Styles */
.member-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.member-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.member-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.member-card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #334155;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
}

.member-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.member-info {
    flex: 1;
}

.member-affidavit {
    text-align: right;
    color: #6b7280;
}

.members-list {
    min-height: 100px;
}

/* Button Styles */
.btn--small {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn--danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn--danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Form Section Styles */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #334155;
}

.registration-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #f9fafb;
    transition: all 0.2s ease-in-out;
    appearance: none;
    outline: none;
}

/* Error field styling */
.field-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.field-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Error message styling */
.error-message {
    color: #dc3545 !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
    display: none;
    min-height: 1.2em !important;
}

.error-message:not(:empty) {
    display: block !important;
    visibility: visible !important;
}

.error-message[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
}

/* Checkbox group error styling */
.checkbox-group.field-error {
    border: 1px solid #dc3545;
    padding: 10px;
    border-radius: 4px;
    background-color: #fff5f5;
    margin-top: 5px;
}

/* Required field indicators */
.form-label.required::after {
    content: " *";
    color: #dc3545;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.member-card-header h4 {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 1.1rem;
    color: #334155;
}

/* Photo Preview */
#photo-preview {
    text-align: center;
}

#preview-image {
    border: 2px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .member-details {
        flex-direction: column;
    }
    
    .member-affidavit {
        text-align: left;
        margin-top: 0.5rem;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .member-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .registration-container {
        padding: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Style for disabled fields */
.form-control:disabled {
    background-color: #f8f9fa;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alert styles */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}