/* Phone dial-code field — shared once site-wide */
.phone-page .phone-wrapper {
    display: flex !important;
    align-items: center !important;
    margin-top: 0 !important;
    border: 1px solid #E0E0E0 !important;
    padding: 12px !important;
    background-color: white !important;
    border-radius: 8px !important;
    position: relative;
    transition: all 0.3s ease !important;
    line-height: 1.2 !important;
}

.phone-wrapper {
    display: flex;
    align-items: center;
    margin-top: 0;
    border: 1px solid #E0E0E0 !important;
    padding: 12px !important;
    background-color: white !important;
    border-radius: 8px !important;
    position: relative;
    transition: all 0.3s ease !important;
}

.formGroup {
    margin-bottom: 0;
}

.formGroup .form-label {
    margin-bottom: 0.5rem;
    display: block;
}

.formGroup .phone-wrapper {
    margin-top: 0 !important;
    margin-bottom: 0;
}

.phone-page .phone-wrapper:hover,
.phone-wrapper:hover {
    border-color: #BDBDBD !important;
}

.phone-page .phone-wrapper:focus-within,
.phone-wrapper:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(34, 108, 245, 0.1) !important;
}

.flag-and-code {
    display: flex;
    align-items: center;
    padding-right: 12px;
    margin-right: 12px;
    cursor: pointer;
    border-right: 1px solid #E0E0E0;
    transition: all 0.3s ease;
}

.flag-and-code:hover {
    opacity: 0.8;
}

.phone-wrapper .flag-icon {
    width: 24px;
    height: 18px;
    margin-right: 6px;
}

.phone-input {
    border: none;
    outline: none;
    font-size: 16px;
    width: 100%;
    padding: 0;
    background: transparent;
    color: #333;
}

.phone-input:focus,
.phone-wrapper input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.phone-input::placeholder {
    color: #999 !important;
    opacity: 1;
}

.dropdowns-icon {
    font-size: 12px;
    margin-left: 8px;
    color: #666;
    transition: transform 0.3s ease;
}

.phone-wrapper:focus-within .dropdowns-icon {
    color: var(--primary);
}

.dropdowns {
    position: absolute;
    font-size: 15px;
    width: 100%;
    top: calc(100% + 4px);
    left: 0;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.modal .dropdowns {
    z-index: 1060 !important;
}

.dropdowns div {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #F5F5F5;
}

.dropdowns div:last-child {
    border-bottom: none;
}

.dropdowns div:hover {
    background-color: #F5F5F5;
}

.dropdowns .flag-icon {
    width: 20px;
    height: 15px;
    flex-shrink: 0;
}

.dropdowns div.hidden {
    display: none;
}

@media (max-width: 768px) {
    .phone-wrapper {
        padding: 10px 12px !important;
        font-size: 16px !important;
    }

    .phone-input {
        font-size: 16px !important;
    }

    .flag-and-code {
        padding-right: 8px;
        margin-right: 8px;
        font-size: 14px;
    }

    .phone-wrapper .flag-icon {
        width: 20px;
        height: 15px;
    }

    .dropdowns {
        max-height: 200px;
        font-size: 14px;
    }

    .dropdowns div {
        padding: 10px 12px;
    }
}
