/* Frontend Styles for Course Booking System */

/* Booking Button */
.course-booking-button-container {
    margin: 30px 0;
    text-align: center;
}

.course-booking-trigger {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.course-booking-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Modal */
.course-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.course-booking-modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.course-booking-modal .modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000000;
}

.course-booking-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    z-index: 10;
    background: none;
    border: none;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.course-booking-modal .modal-close:hover {
    color: #333;
}

.course-booking-modal .modal-body {
    padding: 50px 30px 30px;
}

.course-booking-modal .loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 16px;
}

/* Progress Bar */
.booking-progress {
    margin-bottom: 30px;
}

.booking-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

.booking-progress .progress-bar {
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
}

.booking-progress .progress-fill {
    height: 100%;
    background: #667eea;
    border-radius: 2px;
    transition: width 0.3s;
}

/* Course Selection */
.course-selection-list {
    margin-top: 20px;
}

.course-option {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.course-option:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.course-option h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.course-option p {
    color: #666;
    margin: 10px 0;
}

.course-schedule {
    margin: 15px 0;
}

.course-schedule strong {
    color: #667eea;
}

.course-schedule ul {
    margin: 10px 0;
    padding-left: 20px;
    color: #666;
}

.course-schedule li {
    margin: 5px 0;
}

.course-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.course-info p {
    margin: 8px 0;
    font-size: 14px;
}

.course-info small {
    color: #999;
}

.select-course-btn {
    background: #667eea;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.select-course-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

/* Form Styles */
.course-booking-form {
    margin-top: 20px;
}

.course-booking-form h2 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 24px;
}

.course-booking-form h3 {
    color: #667eea;
    margin: 30px 0 20px 0;
    font-size: 18px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.final-price-display {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.final-price-display strong {
    font-size: 18px;
    color: #333;
}

#final-price {
    color: #667eea;
    font-size: 20px;
}

/* Buttons */
.btn-back {
    background: #ccc;
    color: #333;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #bbb;
}

.course-booking-form button[type="submit"] {
    background: #667eea;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.course-booking-form button[type="submit"]:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.course-booking-form button[type="submit"]:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

/* Summary */
#booking-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

#booking-summary h3 {
    margin-top: 0;
    color: #667eea;
}

#booking-summary ul {
    margin: 10px 0;
    padding-left: 20px;
}

#booking-summary li {
    margin: 5px 0;
    color: #666;
}

#summary-details p {
    margin: 10px 0;
    color: #333;
}

#summary-details strong {
    color: #667eea;
}

/* Terms */
.form-group input[type="checkbox"]#terms-accept {
    width: 20px;
    height: 20px;
}

/* Success Message */
#booking-result .notice {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

#booking-result .notice h2 {
    margin-top: 0;
}

#booking-result .button {
    display: inline-block;
    margin-top: 15px;
    background: #667eea;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

#booking-result .button:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .course-booking-modal .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .course-booking-modal .modal-body {
        padding: 50px 20px 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .booking-progress > div:first-child {
        font-size: 11px;
    }
    
    .course-option {
        padding: 15px;
    }
    
    .course-option h3 {
        font-size: 18px;
    }
}
