/* intl-phone-input.css — International Phone Input Component for LimoHawk */

/* ============================================
   INTERNATIONAL PHONE INPUT WRAPPER
   ============================================ */
.intl-phone-wrapper {
    display: flex;
    gap: 0;
    align-items: stretch;
}

/* Country code dropdown (left side) */
.intl-phone-code {
    flex: 0 0 auto;
    min-width: 110px;
    max-width: 130px;
    padding: 12px 10px 12px 14px;
    background: var(--input-tint-bg);
    border: 1px solid var(--glass-border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    /* Gold chevron arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c2a262' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.intl-phone-code:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(194, 162, 98, 0.15);
    z-index: 1;
}

/* Local number input (right side) */
.intl-phone-number {
    flex: 1;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0 8px 8px 0;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.intl-phone-number::placeholder {
    color: var(--input-placeholder);
}

.intl-phone-number:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(194, 162, 98, 0.15);
}

/* Hover state — subtle gold border hint */
.intl-phone-wrapper:hover .intl-phone-code,
.intl-phone-wrapper:hover .intl-phone-number {
    border-color: rgba(194, 162, 98, 0.3);
}

/* Focus-within — both parts highlight together */
.intl-phone-wrapper:focus-within .intl-phone-code {
    border-color: var(--accent-gold);
}
.intl-phone-wrapper:focus-within .intl-phone-number {
    border-color: var(--accent-gold);
}

/* ============================================
   READ-ONLY PHONE DISPLAY
   ============================================ */
.phone-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.phone-display .phone-flag {
    font-size: 1.1rem;
}

.phone-display .phone-code {
    color: var(--text-secondary);
    font-weight: 500;
}

.phone-display .phone-local {
    color: var(--text-main);
    font-weight: 500;
}

/* ============================================
   RESPONSIVE — Mobile adjustments
   ============================================ */
@media (max-width: 600px) {
    .intl-phone-code {
        min-width: 100px;
        max-width: 110px;
        font-size: 0.85rem;
        padding: 12px 8px 12px 10px;
    }

    .intl-phone-number {
        font-size: 0.85rem;
    }
}

/* iOS zoom prevention (16px minimum) */
@media (max-width: 768px) {
    .intl-phone-code,
    .intl-phone-number {
        font-size: 16px !important;
    }
}
