.phone-input-group {
    display: flex;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 51, 0.14);
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-input-group:focus-within {
    border-color: #d1924f;
    box-shadow: 0 0 0 3px rgba(241, 185, 127, 0.18);
}

.phone-input-group.phone-input-invalid {
    border-color: #b42318;
}

.phone-country-picker {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-right: 1px solid rgba(31, 41, 51, 0.14);
    color: #495057;
    font-size: 14px;
    cursor: pointer;
}

.phone-country-flag {
    display: block;
    width: 20px;
    height: 15px;
    object-fit: cover;
}

.phone-country-emoji {
    display: none;
    line-height: 1;
}

.phone-country-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.phone-input-group input[type="tel"] {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.phone-input-group input[type="tel"]:focus {
    outline: none;
    box-shadow: none;
}

.phone-country-hint,
.phone-country-error {
    display: block;
    margin-top: 5px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.phone-country-hint {
    color: #687482;
}

.phone-country-error:empty {
    display: none;
}

.phone-country-error {
    color: #b42318;
}
