/* Country Selector Styles */
.phone-input-group {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.country-selector-wrapper {
    position: relative;
    width: 120px;
    flex-shrink: 0;
}

.country-selector-btn {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #FFFFFF;
    border: 1px solid #dee6d6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 15px;
}

.country-selector-btn:hover {
    border-color: #8AB4FF;
}

.country-selector-btn:focus {
    border-color: #8AB4FF;
    outline: none;
}

.country-selector-display {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.country-flag {
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
    padding-bottom: 5px;
}

.country-code {
    color: #0B2F4E;
    font-weight: 400;
}

.country-chevron {
    color: #607187;
    font-size: 12px;
    transition: transform 0.2s;
}

.country-selector-btn.open .country-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 320px;
    max-height: 300px;
    background: white;
    border: 1px solid #dee6d6;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.country-dropdown.show {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search */
.country-search-wrapper {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.country-search {
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    border: 1px solid #dee6d6;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.country-search:focus {
    border-color: #8AB4FF;
}

.country-search::placeholder {
    color: #aeb89a;
}

/* Country List */
.country-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}

.country-option:hover {
    background: #F3F7FC;
}

.country-option.selected {
    background: #e8f1ff;
}

.country-option-flag {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.country-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.country-option-name {
    font-size: 14px;
    color: #0B2F4E;
    font-weight: 400;
}

.country-option-code {
    font-size: 13px;
    color: #607187;
}

.no-countries {
    padding: 20px;
    text-align: center;
    color: #607187;
    font-size: 14px;
}

/* Phone Number Input */
.phone-number-input {
    flex: 1;
}

.phone-number-input .input-box {
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 420px) {
    .phone-input-group {
        gap: 6px;
    }

    .country-selector-wrapper {
        width: 100px;
    }

    .country-dropdown {
        width: 300px;
    }
}
