/* Phone Number Input Component Styles */

.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border-color, #ced4da);
    border-radius: 0.375rem;
    background-color: var(--input-bg, #fff);
    overflow: hidden;
    width: 100%;
    max-width: 30rem;
}

.phone-input-country {
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
    border: none;
    border-right: 1px solid var(--border-color, #ced4da);
    background-color: var(--input-bg, #fff);
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 0.75rem;
    padding-right: 2rem;
    min-width: 160px;
    max-width: 200px;
}

.phone-input-country:focus {
    outline: none;
    background-color: var(--input-focus-bg, #fff);
}

.phone-input-prefix {
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
    background-color: var(--input-disabled-bg, #e9ecef);
    border-right: 1px solid var(--border-color, #ced4da);
    color: var(--text-muted, #6c757d);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    user-select: none;
}

.phone-input-number {
    flex: 1 1 auto;
    border: none;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    min-width: 0;
}

.phone-input-number:focus {
    outline: none;
    box-shadow: none;
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-color, #0d6efd);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .phone-input-wrapper {
        flex-wrap: wrap;
    }
    
    .phone-input-country {
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color, #ced4da);
    }
    
    .phone-input-prefix {
        border-right: none;
        border-bottom: 1px solid var(--border-color, #ced4da);
    }
    
    .phone-input-number {
        width: 100%;
    }
}
