/* ═════════════════════════════════════════════════════════════
   business_type_picker.css
   Standalone cascading dropdown picker for Business Type.
   Designed to match the Afaq SWD/reg-input visual language.
   ═════════════════════════════════════════════════════════════ */

.btp-wrap { display: flex; flex-direction: column; gap: 14px; width: 100%; }

.btp-field { display: flex; flex-direction: column; gap: 6px; }

.btp-field.is-hidden {
    display: none;
}

.btp-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btp-label i { color: #d4af37; font-size: 0.8125rem; }

.btp-required-star {
    color: #ef4444;
    font-weight: 800;
    margin-inline-start: 2px;
}

.btp-select-shell {
    position: relative;
}

.btp-select {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

[dir="rtl"] .btp-select { padding: 0 16px 0 44px; }

.btp-select:hover { border-color: #cbd5e1; }
.btp-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.btp-select:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.btp-select-shell::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.75rem;
}

[dir="rtl"] .btp-select-shell::after { right: auto; left: 16px; }

.btp-field.is-error .btp-select {
    border-color: #ef4444;
    background: #fff5f5;
}

.btp-error {
    font-size: 0.8125rem;
    color: #b91c1c;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 6px;
}

.btp-field.is-error .btp-error { display: flex; }

/* Animated reveal */
.btp-field { animation: btpFadeIn 0.22s ease-out; }
@keyframes btpFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .btp-select { height: 46px; font-size: 0.875rem; padding-inline-end: 40px; }
    .btp-label { font-size: 0.8125rem; }
}
/* ═══════════════════════════════════════════════════════════════
   Info alert (shown when a "supplementary contact required"
   option such as "Other" is selected). Schema-driven via
   info_message_ar / info_message_en on the chosen option.
   ═══════════════════════════════════════════════════════════════ */
.btp-info-alert {
    display: none;
    margin-top: 8px;
    padding: 12px 14px;
    background-color: #e0f2fe;
    color: #0c4a6e;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.55;
}

.btp-info-alert.is-visible {
    display: block;
    animation: btpFadeIn 0.22s ease-out;
}
/* ═══════════════════════════════════════════════════════════════
   Inline request form (replaces info alert when user picks
   an "Other" option that requires support team contact)
   ═══════════════════════════════════════════════════════════════ */
.btp-info-alert {
    padding: 14px;
}

.btp-req-head {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0c4a6e;
}

.btp-req-form { display: flex; flex-direction: column; gap: 10px; }

.btp-req-ctx {
    font-size: 0.8125rem;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
}

.btp-req-ctx span { font-weight: 700; color: #0f172a; }

.btp-req-row { display: flex; flex-direction: column; gap: 6px; }
.btp-req-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btp-req-row label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btp-req-form input,
.btp-req-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    color: #0f172a;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.btp-req-form input:focus,
.btp-req-form textarea:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.btp-req-form textarea { resize: vertical; min-height: 60px; }

.btp-req-send {
    margin-top: 4px;
    padding: 11px 18px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s, box-shadow 0.18s;
}

.btp-req-send:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.28);
}

.btp-req-send:disabled { opacity: 0.7; cursor: not-allowed; }

.btp-req-msg {
    font-size: 0.8125rem;
    font-weight: 600;
    min-height: 0;
}

.btp-req-msg.is-error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 8px 12px;
    border-radius: 8px;
}

.btp-req-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btp-req-success i { font-size: 1.25rem; color: #059669; }

@media (max-width: 600px) {
    .btp-req-row-2 { grid-template-columns: 1fr; }
}
/* ═══════════════════════════════════════════════════════════════
   Read-only context input inside the request form
   ═══════════════════════════════════════════════════════════════ */
.btp-req-ctx-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    direction: rtl;
    text-align: start;
    cursor: not-allowed;
}

/* Lock state — applied to non-picker controls when Other is selected */
.btp-disabled-by-other {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.55;
}