/* Country Dropdown Styles */
.country-dropdown-container {
    position: relative;
    width: 100%;
}

.country-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.country-search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: var(--border-radius-small, 4px);
    font-family: var(--font-family, inherit);
    font-size: var(--font-size-default, 16px);
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    color: var(--primary-text-color, #333);
}

.country-search-input:focus {
    outline: none;
    border-color: var(--input-border-focus-color, #e60000);
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.15);
}

.country-search-input.selected {
    border-color: #28a745;
    background-color: #f8fff9;
}

.country-dropdown-arrow {
    position: absolute;
    right: 15px;
    pointer-events: none;
    color: #666;
    transition: transform 0.2s ease;
    font-size: 12px;
}

.country-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.country-option {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.country-option:hover,
.country-option.highlighted {
    background-color: #f8f9fa;
}

.country-option:last-child {
    border-bottom: none;
}

.country-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.country-code {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .country-dropdown-list {
        max-height: 150px;
    }
    
    .country-option {
        padding: 8px 12px;
    }
    
    .country-name {
        font-size: 13px;
    }
    
    .country-dropdown-container .country-dropdown-list {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .country-option {
        padding: 8px 10px;
    }
    
    .country-name {
        font-size: 12px;
    }
    
    .country-code {
        font-size: 11px;
        padding: 1px 4px;
    }
}
