/* ==========================================================
   AVH AUTH
   MyListing Authentication — Phone Authentication
   ========================================================== */


/* ==========================================================
   Phone Step
   ========================================================== */

.avh-phone-step-intro {
    width: 100%;
    margin: 0 0 30px;
    text-align: center;
}


/* ==========================================================
   Phone Step Icon
   ========================================================== */

.avh-phone-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin: 0 auto 18px;

    border-radius: 18px;

    background: var(--avh-brand-soft);
    color: var(--avh-primary-color);

    font-size: 30px;
    line-height: 1;
}

.avh-phone-step-icon .mi {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: 1;
}


/* ==========================================================
   Phone Step Title
   ========================================================== */

.avh-phone-step-title {
    margin: 0 0 8px;

    color: var(--avh-heading-color);

    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}


/* ==========================================================
   Phone Step Description
   ========================================================== */

.avh-phone-step-description {
    max-width: 360px;
    margin: 0 auto;

    color: var(--avh-text-color);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}


/* ==========================================================
   Phone Form Group
   ========================================================== */

#avh-phone-step .form-group,
.avh-phone-form-group {
    width: 100%;
    margin: 0;
}


/* ==========================================================
   Phone Label
   ========================================================== */

.avh-phone-label {
    display: block;

    margin: 0 0 9px;

    color: var(--avh-heading-color);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}


/* ==========================================================
   Phone Input Container
   ========================================================== */

.avh-phone-input {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 50px;

    border:
        1px solid
        var(--avh-input-border-color);

    border-radius:
        var(--avh-border-radius);

    background:
        var(--avh-surface);

    overflow: hidden;

    transition:
        border-color
        var(--avh-transition-fast),
        box-shadow
        var(--avh-transition-fast),
        background-color
        var(--avh-transition-fast);
}


/* ==========================================================
   Phone Input Hover
   ========================================================== */

@media (hover: hover) {

    .avh-phone-input:hover {
        border-color: var(--avh-text-muted);
    }

}


/* ==========================================================
   Phone Input Focus
   ========================================================== */

.avh-phone-input:focus-within {
    border-color:
        var(--avh-otp-active-color);

    box-shadow:
        0 0 0 3px
        var(--avh-focus-ring);
}


/* ==========================================================
   Country Code
   ========================================================== */

.avh-country-code {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    flex: 0 0 auto;

    min-width: 82px;
    height: 50px;

    padding: 0 14px;

    border-right:
        1px solid
        var(--avh-input-border-color);

    background:
        var(--avh-surface-soft);

    color:
        var(--avh-heading-color);

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;
    user-select: none;
}

.avh-country-flag {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    font-size: 16px;
    line-height: 1;
}

.avh-country-prefix {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    line-height: 1;
}


/* ==========================================================
   Phone Number Field
   ========================================================== */

#avh-phone {
    display: block;

    flex: 1 1 auto;

    width: 100%;
    min-width: 0;
    height: 50px;

    margin: 0;
    padding: 0 15px;

    border: 0 !important;
    border-radius: 0 !important;

    outline: none !important;

    background:
        transparent !important;

    box-shadow:
        none !important;

    color:
        var(--avh-heading-color);

    font-size: 15px;
    font-weight: 400;
    line-height: normal;
}

#avh-phone:focus {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

#avh-phone::placeholder {
    color:
        var(--avh-text-muted);

    opacity: 1;
}


/* ==========================================================
   Send OTP Button

   Button colours are supplied by the AVH Auth Design
   settings through the shared styles in base.css.

   This component controls:
   - Layout
   - Size
   - Spacing
   - Shape
   - Interaction states
   ========================================================== */

#avh-send-otp {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    width: 100%;
    min-height: 50px;

    margin-top: 18px;

    border-radius:
        var(--avh-border-radius);

    cursor: pointer;

    transition:
        opacity
        var(--avh-transition-fast),
        transform
        var(--avh-transition-fast);
}

#avh-send-otp .mi {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin: 0;

    color: inherit;

    font-size: 18px;
    line-height: 1;
}


/* ==========================================================
   Send OTP Disabled State
   ========================================================== */

#avh-send-otp:disabled {
    cursor: not-allowed;
    opacity: .65;
}


/* ==========================================================
   Phone Privacy Reassurance
   ========================================================== */

.avh-phone-privacy {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    width: 100%;

    margin-top: 16px;

    color:
        var(--avh-text-muted);

    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;

    text-align: center;
}

.avh-phone-privacy .mi {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin: 0;

    color:
        var(--avh-text-muted);

    font-size: 16px;
    line-height: 1;
}