/* phone input */

.mph-field {
    margin-bottom: 1.25rem;
}

.mph-label {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #344767;
}

.mph-hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.mph-shell {
    position: relative;
}

.mph-input {
    width: 100%;
    height: 38px;
    border-radius: var(--ui-radius-sm, 6px);
    border: 1px solid #d7dee7;
    background: #fff;
    color: #344767;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    box-shadow: none;
    transition: all 0.2s ease;
}

.mph-input:hover {
    border-color: var(--bs-secondary);
}

.mph-input:focus {
    border-color: var(--bs-primary);
    outline: none;
    box-shadow: var(--ui-focus, 0 0 0 3px rgba(var(--app-primary-rgb), 0.16));
}

.mph-shell.has-error .mph-input {
    border-color: #dc3545;
}

.iti {
    width: 100%;
}

.iti__tel-input {
    width: 100% !important;
}

.iti--separate-dial-code .mph-input {
    padding-left: 6.25rem !important;
}

.iti__selected-country {
    /* height: 38px; */
    /* padding: 0 0.55rem; */
    border-radius: var(--ui-radius-sm, 6px);
    background: #fff;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    /* gap: 0.35rem; */
}

.iti__selected-country:hover {
    background: #f8f9fa;
}

.iti__selected-dial-code {
    font-size: 0.9rem;
    font-weight: 600;
    color: #344767;
    margin-left: 0.2rem;
}

.iti__arrow {
    margin-left: 0.25rem;
}

.iti__country-list {
    border: 1px solid #e6edf5;
    border-radius: var(--ui-radius-sm, 6px);
    box-shadow: var(--ui-shadow, 0 1px 2px rgba(15, 23, 42, 0.04));
    overflow-x: hidden;
    padding: 0.35rem 0;
}

.iti__country.iti__highlight {
    background-color: color-mix(in srgb, var(--bs-primary) 8%, white);
}

[data-bs-theme="dark"] .mph-label {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .mph-hint {
    color: #98a2b3;
}

[data-bs-theme="dark"] .mph-input {
    background: #1f2637;
    border-color: #344054;
    color: #f8f9fa;
    box-shadow: none;
}

[data-bs-theme="dark"] .iti__selected-country {
    background: #151b2b;
    border-color: #344054;
}

[data-bs-theme="dark"] .iti__selected-dial-code {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .iti__country-list {
    background: #1f2637;
    border-color: #344054;
    color: #f8f9fa;
}

/* Dense console normalization */
.mph-field {
    margin-bottom: 1rem;
}

.mph-label {
    color: var(--ui-text, #111827);
    font-size: 0.82rem;
    font-weight: 700;
}

.mph-hint {
    color: var(--ui-muted, #6b7280);
}

.mph-input {
    height: 38px;
    border-color: var(--ui-border, #e5e7eb);
    border-radius: var(--ui-radius-sm, 6px);
    background: var(--ui-surface, #fff);
    color: var(--ui-text, #111827);
    font-size: 0.84rem;
    box-shadow: none;
}

.iti__selected-country,
.iti__country-list {
    border-color: var(--ui-border, #e5e7eb);
    border-radius: var(--ui-radius-sm, 6px);
    box-shadow: none;
}

