/* ── Contact modal — professional layout ── */
.contact-modal-pro .modal-body {
    padding: 20px 24px 10px;
}

.contact-modal-pro .form-group {
    margin-bottom: 16px;
}

.contact-modal-pro .form-group > label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
}

.contact-modal-pro .input-group {
    width: 100%;
}

.contact-modal-pro .input-group .form-control {
    height: 38px;
}

.contact-modal-pro .input-group-addon {
    min-width: 38px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.contact-modal-pro .help-block {
    margin: 4px 0 0;
    font-size: 11px;
    color: #94a3b8;
}

/* Contact type pills */
.contact-modal-pro .contact-type-toggle {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 66px;
    padding-bottom: 2px;
}

.contact-modal-pro .contact-type-toggle__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
}

.contact-modal-pro .contact-type-pills {
    display: flex;
    gap: 8px;
}

.contact-modal-pro .contact-type-pill {
    flex: 1;
    margin: 0;
    cursor: pointer;
}

.contact-modal-pro .contact-type-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-modal-pro .contact-type-pill span {
    display: block;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.15s ease;
}

.contact-modal-pro .contact-type-pill input:checked + span {
    background: #ede9fe;
    border-color: #8b5cf6;
    color: #5b21b6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.contact-modal-pro .contact-comm-row {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
}

.contact-modal-pro .contact-section-divider {
    margin: 8px 0 16px;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

/* ── ZATCA section ── */
.zatca-contact-section {
    margin: 4px 0 8px;
    float: none;
    clear: both;
}

.zatca-section-card {
    background: #fafbff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
}

.zatca-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border-bottom: 1px solid #dbeafe;
}

.zatca-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.zatca-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    color: #6d28d9;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(109, 40, 217, 0.12);
}

.zatca-section-title {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.zatca-section-help {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.zatca-badge {
    background: #fff;
    color: #5b21b6;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid #c4b5fd;
    flex-shrink: 0;
}

.zatca-block {
    padding: 14px 18px 4px;
}

.zatca-block + .zatca-block {
    border-top: 1px dashed #e2e8f0;
    padding-top: 12px;
}

.zatca-block-title {
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.zatca-fields-row {
    margin-left: -10px;
    margin-right: -10px;
}

.zatca-fields-row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

.zatca-form-group {
    margin-bottom: 14px;
    min-height: 72px;
}

.zatca-form-group--no-hint {
    min-height: auto;
}

.zatca-form-group > label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zatca-field-hint {
    font-size: 11px;
    color: #94a3b8;
    margin: 4px 0 0;
    min-height: 16px;
}

.zatca-contact-section.zatca-active .zatca-section-card {
    border-color: #a78bfa;
    box-shadow: 0 4px 16px rgba(91, 33, 182, 0.1);
}

.zatca-contact-section.zatca-active .zatca-required-field:invalid,
.zatca-contact-section.zatca-active .zatca-required-field.required-empty {
    border-color: #f87171;
}

/* RTL fixes */
[dir="rtl"] .contact-modal-pro .contact-type-pills,
html[lang="ar"] .contact-modal-pro .contact-type-pills {
    flex-direction: row;
}

[dir="rtl"] .zatca-section-header,
html[lang="ar"] .zatca-section-header {
    flex-direction: row;
}

@media (max-width: 767px) {
    .contact-modal-pro .modal-body {
        padding: 16px;
    }

    .zatca-section-header {
        flex-wrap: wrap;
    }

    .zatca-form-group {
        min-height: auto;
    }

    .contact-modal-pro .contact-type-toggle {
        min-height: auto;
        margin-bottom: 8px;
    }
}

@media (min-width: 992px) {
    .contact-modal-pro.modal-lg {
        width: 920px;
        max-width: 95vw;
    }
}
