﻿/* ISD Dropdown */
.isd {
    padding: 8px 5px;
    border: none !important;
    border-right: 1px solid #ddd !important;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px 12px;
    height: 40px;
    min-width: 80px;
    background-color: transparent;
    transition: all 0.2s ease-in-out;
}

/* Phone Input */
#loginPhone,
#personPhone, #videoPhone {
    flex: 1;
    padding: 12px 50px;
    border: none !important;
    outline: none;
    font-size: 16px;
    background: transparent;
    margin-right: 10px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

/* Select2 Styling */
.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single {
    height: 40px;
    border: none !important;
    background: transparent;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: 10px;
    color: #333;
    font-size: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 6px;
}

.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #4a6cf7;
    color: white;
}

/* Disabled state */
.select2-disabled-custom .select2-selection--single {
    border-color: #999 transparent transparent transparent !important;
    cursor: default !important;
    background-color: #f5f5f5 !important;
    opacity: 0.7 !important;
}

.select2-disabled-custom .select2-selection__arrow b {
    border-color: #999 transparent transparent transparent !important;
    opacity: 0.5 !important;
}

.select2-disabled-custom .select2-selection--single .select2-selection__rendered {
    color: #666 !important;
    cursor: default !important;
}

/* ==============================
   Responsive Breakpoints
============================== */

/* Tablets (768px – 1024px) */
@media (max-width: 1024px) {
    .isd {
        font-size: 13px;
        height: 38px;
        min-width: 70px;
        background-size: 14px 10px;
    }

    #loginPhone,
    #personPhone, #videoPhone {
        font-size: 15px;
        padding: 10px 12px;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 14px;
        line-height: 38px;
        padding-left: 8px;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    .isd {
        min-width: 60px;
        height: 36px;
        font-size: 12.5px;
        border-right: 1px solid #ccc !important;
        padding: 6px 4px;
        background-size: 12px 9px;
    }

    #loginPhone,
    #personPhone, #videoPhone {
        font-size: 14px;
        padding: 9px 10px;
        margin-right: 6px;
    }

    .select2-container .select2-selection--single,
    .select2-container--default .select2-selection--single {
        height: 36px;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 36px;
        padding-left: 6px;
        font-size: 13px;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 34px;
        right: 4px;
    }
}

/* Large Screens (≥1200px) */
@media (min-width: 1200px) {
    .isd {
        font-size: 15px;
        height: 42px;
    }

    #loginPhone,
    #personPhone, #videoPhone {
        font-size: 17px;
        padding: 12px 18px;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 16px;
    }
}
