/* Phone Input Component Styles */

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.phone-country-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1rem;
    background: #2a2a3e;
    border: 2px solid #3a3a4e;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    white-space: nowrap;
}

.phone-country-btn:hover {
    background: #323246;
    border-color: #4a4a5e;
}

.phone-number-input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: #2a2a3e;
    border: 2px solid #3a3a4e;
    border-radius: 0 8px 8px 0;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.phone-number-input:focus {
    outline: none;
    border-color: #e50914;
    background: #323246;
}

.phone-number-input::placeholder {
    color: #666;
}

.phone-country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #2a2a3e;
    border: 2px solid #3a3a4e;
    border-radius: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-height: 350px;
    display: flex;
    flex-direction: column;
}

.phone-country-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.phone-country-search {
    padding: 0.875rem 1rem;
    background: #1a1a2e;
    border: none;
    border-bottom: 1px solid #3a3a4e;
    color: #ffffff;
    font-size: 0.95rem;
    border-radius: 6px 6px 0 0;
}

.phone-country-search:focus {
    outline: none;
    background: #242438;
}

.phone-country-search::placeholder {
    color: #666;
}

.phone-country-list {
    overflow-y: auto;
    flex: 1;
}

.phone-country-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #ccc;
}

.phone-country-item:hover {
    background: #323246;
    color: #fff;
}

.phone-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.phone-country-name {
    flex: 1;
    font-size: 0.95rem;
}

.phone-prefix {
    font-size: 0.9rem;
    color: #999;
    font-weight: 600;
}

/* Scrollbar styling */
.phone-country-list::-webkit-scrollbar {
    width: 8px;
}

.phone-country-list::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 8px;
}

.phone-country-list::-webkit-scrollbar-thumb {
    background: #4a4a5e;
    border-radius: 8px;
}

.phone-country-list::-webkit-scrollbar-thumb:hover {
    background: #5a5a6e;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .phone-country-btn {
        min-width: 80px;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .phone-country-dropdown {
        max-height: 300px;
    }
    
    .phone-country-item {
        padding: 0.625rem 0.875rem;
    }
    
    .phone-flag {
        font-size: 1.25rem;
    }
    
    .phone-country-name,
    .phone-prefix {
        font-size: 0.875rem;
    }
}

