/* Phone input with country dial-code selector and auto currency */
.lumora-phone-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lumora-phone-field__row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.lumora-phone-field__country {
    flex: 0 0 auto;
    min-width: 7.5rem;
    max-width: 42%;
    padding: 0.65rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

.lumora-phone-field__number {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.lumora-phone-field .form-control {
    width: 100%;
    box-sizing: border-box;
}

.lumora-phone-field__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: #64748b;
}

.lumora-phone-field__meta strong {
    color: #334155;
    font-weight: 600;
}

.lumora-phone-field.is-invalid .lumora-phone-field__country,
.lumora-phone-field.is-invalid .lumora-phone-field__number {
    border-color: #ef4444;
}

[dir="rtl"] .lumora-phone-field__row {
    flex-direction: row-reverse;
}

@media (max-width: 480px) {
    .lumora-phone-field__row {
        flex-direction: column;
    }
    .lumora-phone-field__country {
        max-width: 100%;
        width: 100%;
    }
}
