/* ============================================================
   EduMarkets — Enterprise enquiry form (Contact us)
   ============================================================
   One form for the whole site, opened as a light modal by
   /js/shared/enquiry_form.js on the landing page and the about page.
   Moved out of index.html on 2026-09-18 so the about page can open the
   same form in place instead of leaving for the landing page.
   Light-only by design: the form is the reference look for every
   auth page (css/auth.css).
   ============================================================ */

.enquiry-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.enquiry-overlay.active { display: flex; }

.enquiry-modal {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    color: #1a1a1a;
    text-align: left;
    padding: 36px 40px 28px;
    box-shadow: 0 32px 80px -16px rgba(0,0,0,0.35);
    animation: enquiryIn 0.25s ease-out;
}

@keyframes enquiryIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.enquiry-modal h3 {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.4px;
    margin: 0 0 8px;
}

.enquiry-modal > p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: rgba(0,0,0,0.6);
    line-height: 1.5;
    margin: 0 0 22px;
}

.enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-label {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Inter', system-ui, sans-serif;
}
.form-optional {
    color: rgba(0,0,0,0.45);
    font-weight: 400;
}
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 14px;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.5;
}
.enquiry-form input:focus-visible,
.enquiry-form select:focus-visible,
.enquiry-form textarea:focus-visible {
    outline: 2px solid rgba(0,0,0,0.5);
    outline-offset: 1px;
}
.enquiry-form textarea {
    resize: vertical;
    min-height: 96px;
    font-family: 'Inter', system-ui, sans-serif;
}
.form-status {
    font-size: 13px;
    color: rgba(0,0,0,0.6);
    min-height: 18px;
    line-height: 1.4;
    font-family: 'Inter', system-ui, sans-serif;
}
.form-status.error { color: #b91c1c; }
.form-status.success { color: #166534; }
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 4px;
}
.form-btn {
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.form-btn-secondary {
    background: #ffffff;
    border-color: rgba(0,0,0,0.2);
    color: #1a1a1a;
}
.form-btn-secondary:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.35);
}
.form-btn-primary {
    background: #0B0B0C;
    color: #ffffff;
}
.form-btn-primary:hover { background: rgba(11,11,12,0.88); }
.form-btn-primary:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 560px) {
    .enquiry-modal { padding: 28px 24px 20px; }
    .form-row-half { grid-template-columns: 1fr; }
}
