/* ── Equalza Contact Form ─────────────────────────────────────────── */

.eq-contact-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[dir="rtl"] .eq-contact-wrap {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Header ── */

.eq-contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.eq-contact-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.eq-contact-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ── Form ── */

.eq-contact-form {
    position: relative;
}

.eq-contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.eq-contact-field {
    display: flex;
    flex-direction: column;
}

.eq-contact-full {
    margin-bottom: 20px;
}

.eq-contact-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.eq-req {
    color: #dc2626;
}

.eq-contact-field input,
.eq-contact-field select,
.eq-contact-field textarea {
    padding: 12px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.eq-contact-field input:focus,
.eq-contact-field select:focus,
.eq-contact-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.eq-contact-field input::placeholder,
.eq-contact-field textarea::placeholder {
    color: #94a3b8;
}

.eq-contact-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

[dir="rtl"] .eq-contact-field select {
    background-position: left 14px center;
    padding-right: 16px;
    padding-left: 36px;
}

.eq-contact-field textarea {
    resize: vertical;
    min-height: 140px;
}

/* ── Invalid fields ── */

.eq-contact-field.eq-invalid input,
.eq-contact-field.eq-invalid select,
.eq-contact-field.eq-invalid textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ── Privacy note ── */

.eq-contact-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 20px;
}

.eq-contact-privacy svg {
    flex-shrink: 0;
    color: #059669;
}

/* ── Submit button ── */

.eq-contact-actions {
    text-align: center;
}

.eq-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.eq-contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.eq-contact-btn:active {
    transform: translateY(0);
}

.eq-contact-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.eq-contact-btn svg {
    flex-shrink: 0;
}

/* ── Alert ── */

.eq-contact-alert {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.eq-contact-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ── Success state ── */

.eq-contact-success {
    text-align: center;
    padding: 48px 24px;
}

.eq-contact-success svg {
    margin-bottom: 16px;
}

.eq-contact-success h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    margin: 0 0 8px;
}

.eq-contact-success p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* ── Form hidden after success ── */

.eq-contact-form.eq-sent .eq-contact-row,
.eq-contact-form.eq-sent .eq-contact-full,
.eq-contact-form.eq-sent .eq-contact-privacy,
.eq-contact-form.eq-sent .eq-contact-actions,
.eq-contact-form.eq-sent .eq-contact-alert {
    display: none !important;
}

/* ── Responsive ── */

@media (max-width: 600px) {
    .eq-contact-wrap {
        padding: 24px 16px 48px;
    }

    .eq-contact-title {
        font-size: 1.6rem;
    }

    .eq-contact-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .eq-contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Footer CTA ── */

.eq-footer-contact-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
}

.eq-footer-contact-cta span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.eq-footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.eq-footer-contact-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff !important;
    text-decoration: none;
}

.eq-footer-contact-btn svg {
    flex-shrink: 0;
}

/* ── Header CTA ── */

.eq-topbar-contact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.eq-topbar-contact:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    text-decoration: none;
}

.eq-topbar-contact svg {
    flex-shrink: 0;
}

@media (max-width: 782px) {
    .eq-topbar-contact {
        display: none;
    }

    .eq-footer-contact-cta {
        flex-direction: column;
        gap: 10px;
    }
}
