/* Shared Modal Styles */
/* This file contains all the modal styles that were previously duplicated across multiple HTML files */

/* Demo Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

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

.modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

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

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

.success-message {
    display: none;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 30px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    border-radius: 10px;
    margin: 20px 30px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.form-section {
    margin-bottom: 25px;
    padding: 0 30px;
}

.section-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.date-option {
    padding: 12px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
    font-size: 14px;
}

.date-option:hover {
    border-color: #2196F3;
    background: #f8f9fa;
}

.date-option.selected {
    border-color: #2196F3;
    background: #2196F3;
    color: white;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.time-option {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
    font-weight: 500;
}

.time-option:hover {
    border-color: #2196F3;
    background: #f8f9fa;
}

.time-option.selected {
    border-color: #2196F3;
    background: #2196F3;
    color: white;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #2196F3;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.error-message {
    display: none;
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
}

.submit-btn {
    width: calc(100% - 60px);
    margin: 20px 30px 30px;
    padding: 15px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Email Modal Styles */
.email-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-modal.active {
    opacity: 1;
}

.email-modal-content {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.email-modal.active .email-modal-content {
    transform: scale(1);
}

.email-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

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

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

.email-success-message {
    display: none;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 30px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    border-radius: 10px;
    margin: 20px 30px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content,
    .email-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 20px;
    }
    
    .modal-header,
    .email-modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-title,
    .email-modal-title {
        font-size: 20px;
    }
    
    .form-section,
    .form-group {
        padding: 0 20px;
    }
    
    .submit-btn {
        width: calc(100% - 40px);
        margin: 20px 20px 20px;
    }
    
    .date-grid,
    .time-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 8px;
    }
    
    .date-option,
    .time-option {
        padding: 10px 6px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .date-grid,
    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
