/* ═══════════════════════════════════════════════════════════════
   modal.css — Contact modal overlay
   ═══════════════════════════════════════════════════════════════ */

/* ─── Overlay ───────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay[hidden] {
    display: none;
}

/* ─── Modal Box ─────────────────────────────────────────────── */
.modal-box {
    background: var(--blue-deep);
    border: 1px solid var(--border-blue);
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 460px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

/* ─── Close button ──────────────────────────────────────────── */
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

/* ─── Modal Typography ──────────────────────────────────────── */
.modal-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--white);
}

.modal-intro {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ─── Form Groups ───────────────────────────────────────────── */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 7px;
}

.form-group .optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(122, 154, 184, 0.6);
}

.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border-blue);
    border-radius: 7px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 3px rgba(26, 127, 212, 0.15);
}

.form-group input::placeholder {
    color: rgba(122, 154, 184, 0.5);
}

.form-group select option {
    background: var(--blue-deep);
    color: var(--white);
}

.field-error {
    display: block;
    font-size: 0.78rem;
    color: #f66c6c;
    margin-top: 5px;
    min-height: 1em;
}

/* ─── Form Status Messages ──────────────────────────────────── */
.form-status {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
    min-height: 1.5em;
}

.form-status--error {
    color: #f66c6c;
}

/* ─── Marketing Consent ─────────────────────────────────────── */
.form-group--consent {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: rgba(240, 244, 250, 0.82);
    font-size: 0.85rem;
    line-height: 1.5;
}

.consent-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--orange);
    cursor: pointer;
}

.consent-note {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.5;
}

.consent-note a {
    color: var(--blue-light);
    text-decoration: none;
}

.consent-note a:hover {
    text-decoration: underline;
}

/* ─── Submit Button ─────────────────────────────────────────── */
.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

/* ─── Success Message ───────────────────────────────────────── */
.modal-success {
    text-align: center;
    padding: 20px 0;
}

.modal-success p {
    font-size: 1rem;
    color: var(--orange-light);
    font-family: var(--font-heading);
    font-weight: 700;
}

.modal-success[hidden] {
    display: none;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
    .modal-box {
        padding: 28px 20px;
    }
}
