.phone-input-field {
    min-width: 0;
}

.phone-input-field__label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.45rem;
}

.phone-input-field__label .required {
    color: #dc2626;
}

.phone-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.phone-country-picker {
    position: relative;
    flex: 0 0 auto;
}

.phone-country-picker__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid #2563eb;
    border-radius: 0.875rem;
    background: #eff6ff;
    color: #1e40af;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.phone-country-picker__code {
    font-size: 0.72rem;
    font-weight: 600;
    color: #3b82f6;
}

.phone-country-picker__chevron {
    font-size: 0.7rem;
    opacity: 0.7;
}

.phone-country-picker__panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.35rem);
    left: 0;
    width: min(18rem, 92vw);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.phone-country-picker__search {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.7rem 0.85rem;
    font-size: 0.875rem;
}

.phone-country-picker__search:focus {
    outline: none;
    background: #f8fafc;
}

.phone-country-picker__list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    max-height: 14rem;
    overflow-y: auto;
}

.phone-country-picker__option {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
}

.phone-country-picker__option:hover,
.phone-country-picker__option.is-selected {
    background: #eff6ff;
}

.phone-country-picker__option-label {
    color: #111827;
}

.phone-country-picker__option-dial {
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
}

.phone-country-picker__empty {
    margin: 0;
    padding: 0.85rem;
    font-size: 0.82rem;
    color: #6b7280;
}

.phone-input-row__local {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    font-size: 0.9375rem;
    border: 1px solid #2563eb;
    border-radius: 0.875rem;
    font-weight: 600;
}

.phone-input-row__local:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.phone-input-field__hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.student-add-field--phone .phone-input-field__label {
    color: #1e40af;
}

@media (max-width: 480px) {
    .phone-input-row {
        flex-direction: column;
    }

    .phone-country-picker__trigger {
        width: 100%;
        justify-content: space-between;
    }

    .phone-country-picker__panel {
        width: 100%;
    }
}
