
/* Phone Input with Country Selector Inside */
.phone-input-wrapper-new {
    position: relative;
    width: 100%;
}

.country-selector {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s var(--transition-smooth);
}

.country-selector:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.flag-img {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.country-code-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.dropdown-arrow {
    flex-shrink: 0;
    opacity: 0.7;
}

.phone-input-field {
    width: 100%;
    padding: 12px 16px 12px 125px !important;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: var(--fenogram-white);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    outline: none;
    transition: background-color 0.2s var(--transition-smooth);
}

.phone-input-field:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.phone-input-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 160px;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px;
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.country-dropdown.active {
    display: block;
}

.country-dropdown::-webkit-scrollbar {
    width: 6px;
}

.country-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.country-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.country-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.country-option:hover {
    background: rgba(255, 255, 138, 0.15);
}

.flag-img-option {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.country-option span {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .country-selector {
        padding: 0 10px;
        gap: 6px;
    }
    
    .flag-img {
        width: 20px;
        height: 15px;
    }
    
    .country-code-text {
        font-size: 0.85rem;
    }
    
    .phone-input-field {
        padding-left: 110px !important;
    }
    
    .country-dropdown {
        width: 150px;
        max-height: 240px;
    }
    
    .country-option {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .flag-img-option {
        width: 20px;
        height: 15px;
    }
    
    .country-option span {
        font-size: 0.9rem;
    }
}
