/* Explain: Styles for the WhatsApp country selection dropdown and related elements. */
/* ---------- نافذة اختيار رقم واتساب (الإمارات / السعودية) ---------- */
.wa-picker {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wa-picker.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wa-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 18, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.wa-picker-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.6rem 1.4rem 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #141b2e, #0c1120);
    border: 1px solid rgba(212, 175, 55, 0.34);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.wa-picker.is-open .wa-picker-panel { transform: none; }

.wa-picker-close {
    position: absolute;
    top: 0.85rem;
    inset-inline-end: 0.85rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.wa-picker-close:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.08);
}

.wa-picker-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-inline-end: 2.4rem;
}

.wa-picker-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #3ddc84, #1da851);
    color: #052011;
    font-size: 1.5rem;
    box-shadow: 0 12px 26px -14px rgba(37, 211, 102, 0.75);
}

.wa-picker-head-text { min-width: 0; }

.wa-picker-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--text-color);
}

.wa-picker-sub {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.wa-picker-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.wa-choice {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.9rem 1rem;
    min-height: 64px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-color);
    font-family: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.wa-choice:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.08);
    transform: translateY(-1px);
}

.wa-choice:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.4);
}

.wa-choice-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 1rem;
}

.wa-choice-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1 1 auto;
}

.wa-choice-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.wa-choice-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-soft);
    font-variant-numeric: tabular-nums;
}

.wa-choice-go {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.wa-choice:hover .wa-choice-go {
    color: #25d366;
    transform: translateX(-3px);
}

@media (max-width: 480px) {
    .wa-picker-panel { padding: 1.4rem 1rem 1.2rem; }
    .wa-picker-head { padding-inline-end: 2rem; }
    .wa-picker-icon { width: 42px; height: 42px; font-size: 1.3rem; }
    .wa-choice { padding: 0.8rem 0.85rem; }
}