/* Enquiry Modal Styles */

.enquiry-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    pointer-events: none;
}

.enquiry-modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 99998;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    transform: scale(0.95);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.enquiry-modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
    border-radius: 4px;
}

.modal-close:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.modal-body {
    padding: 24px;
}

.course-info-summary {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #4e9ae6;
}

.course-info-summary h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.course-price-summary {
    font-size: 18px;
    font-weight: 700;
    color: #4e9ae6;
    margin: 0;
}

.enquiry-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.enquiry-form .form-group {
    margin-bottom: 0;
}

.enquiry-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background: #ffffff;
    color: #1e293b;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
    outline: none;
    border-color: #4e9ae6;
    box-shadow: 0 0 0 3px rgba(78, 154, 230, 0.08);
}

.enquiry-form textarea {
    resize: vertical;
    min-height: 90px;
}

.form-consent {
    margin: 20px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.consent-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #4e9ae6;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-submit-enquiry {
    flex: 1;
    padding: 12px 20px;
    background: #4e9ae6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(78, 154, 230, 0.25);
}

.btn-submit-enquiry:hover {
    background: #3d7bc4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 154, 230, 0.35);
}

.btn-submit-enquiry:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    padding: 12px 20px;
    background: #ffffff;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    border-color: #4e9ae6;
    color: #4e9ae6;
    background: #f8fafc;
}

.enquiry-success-message {
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.enquiry-success-message i {
    color: #10b981;
    font-size: 18px;
    flex-shrink: 0;
}

.enquiry-success-message p {
    color: #065f46;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.enquiry-error-message {
    background: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.enquiry-error-message i {
    color: #ef4444;
    font-size: 16px;
    margin-right: 8px;
}

.enquiry-error-message ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    color: #991b1b;
    font-size: 13px;
}

.enquiry-error-message li {
    margin-bottom: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .enquiry-modal {
        padding: 0;
        align-items: flex-end;
        justify-content: center;
    }

    .modal-content {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
    }

    .modal-header {
        padding: 18px 20px;
        position: sticky;
        top: 0;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-body {
        padding: 20px;
    }

    .course-info-summary {
        padding: 14px;
        margin-bottom: 18px;
    }

    .course-info-summary h3 {
        font-size: 15px;
    }

    .course-price-summary {
        font-size: 16px;
    }

    .enquiry-form .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .enquiry-form label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .enquiry-form input,
    .enquiry-form select,
    .enquiry-form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .form-consent {
        padding: 12px;
        margin: 18px 0;
    }

    .consent-checkbox {
        font-size: 12px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 18px;
    }

    .btn-submit-enquiry,
    .btn-cancel {
        width: 100%;
        padding: 12px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .enquiry-modal {
        padding: 0;
    }
    
    .modal-content {
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
    
    .modal-header {
        padding: 16px;
    }

    .modal-header h2 {
        font-size: 17px;
    }

    .modal-body {
        padding: 16px;
        padding-bottom: 100px;
    }

    .enquiry-form input,
    .enquiry-form select,
    .enquiry-form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
}
