/* Modals and Forms - components/modals.css */

/* Modal Backdrop */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    opacity: 0;
    transition: opacity var(--transition-normal);
    /* Flexbox for centering modal content */
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 0;
}

.modal.show {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.modal-content {
    background: var(--bg-white);
    margin: 0;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 900px;
    max-height: none;
    overflow-y: visible;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* Close Button */
.close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-lg);
    font-size: var(--font-size-xl);
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.close:hover {
    background: #f7fafc;
    color: var(--text-primary);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

/* Schedule Elements */
.schedule-day {
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.schedule-day-header {
    background: var(--primary-gradient);
    padding: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-white);
    border-bottom: 1px solid var(--border-color);
}

.schedule-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: var(--spacing-sm);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    flex-shrink: 0;
    width: 90px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.schedule-content h4 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-content p {
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Application Fee Styling for Modals */
.fee-section {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-md);
    background: #f8faff;
    border-radius: var(--radius-lg);
}

.fee-section h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
    text-align: center;
}

.fee-structure {
    margin: var(--spacing-md) 0;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.fee-item:last-child {
    border-bottom: none;
}

.fee-amount {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.fee-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.fee-includes,
.fee-additional {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: var(--spacing-sm) 0;
    line-height: 1.5;
}

.discounts {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(102, 126, 234, 0.05);
    border-radius: var(--radius-sm);
}

.discount-item {
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.discount-item:last-child {
    margin-bottom: 0;
}

/* Disabled select options styling */
.form-group select option:disabled {
    color: #999;
    opacity: 0.6;
    font-style: italic;
}

/* Additional styling for better visual feedback */
.form-group select option:disabled::before {
    content: '🔒 ';
}

/* Notification */
.success-notification,
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

.success-notification {
    border-left: 4px solid #10b981;
}

.error-notification {
    border-left: 4px solid #ef4444;
}

.success-notification.show,
.error-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notification-content svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.success-notification .notification-content svg {
    color: #10b981;
}

.error-notification .notification-content svg {
    color: #ef4444;
}

.notification-message {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.notification-text {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .success-notification,
    .error-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}