/* Combined Phone Input - Country Code + Phone Number */
.phone-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 48px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

/* Dark theme variant for forms with dark backgrounds */
.phone-input-group.dark-theme {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.phone-input-group:focus-within {
    border-color: #1e73be;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

.phone-input-group.dark-theme:focus-within {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.phone-input-group select {
    border: none;
    background: #f8f9fa;
    padding: 0 4px 0 6px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
    width: 85px;
    border-right: 2px solid #e0e0e0;
    height: 100%;
    box-sizing: border-box;
    line-height: normal;
    vertical-align: middle;
}

.phone-input-group.dark-theme select {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.phone-input-group select:focus {
    background: #e8f4ff;
    outline: none;
}

.phone-input-group.dark-theme select:focus {
    background: rgba(255, 255, 255, 0.25);
}

.phone-input-group input {
    flex: 1;
    border: none;
    padding: 0 15px;
    font-size: 15px;
    outline: none;
    background: transparent;
    min-width: 0;
    color: inherit;
    height: 100%;
    box-sizing: border-box;
    line-height: normal;
    vertical-align: middle;
}

.phone-input-group.dark-theme input {
    color: #fff;
}

.phone-input-group input:focus {
    outline: none;
}

.phone-input-group input::placeholder {
    color: #999;
}

.phone-input-group.dark-theme input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Tablet */
@media (max-width: 768px) {
    .phone-input-group {
        height: 46px;
    }

    .phone-input-group select {
        width: 80px;
        font-size: 12px;
        padding: 0 3px 0 5px;
    }

    .phone-input-group input {
        font-size: 14px;
    }
}

/* Select dropdown options */
.phone-input-group select option {
    padding: 8px 12px;
    font-size: 15px;
    background: #fff;
    color: #333;
}

/* Mobile */
@media (max-width: 575px) {
    .phone-input-group {
        height: 44px;
        border-radius: 6px;
    }

    .phone-input-group select {
        width: 75px;
        font-size: 11px;
        padding: 0 2px 0 4px;
    }

    .phone-input-group input {
        font-size: 13px;
        padding: 0 8px;
    }

    .phone-input-group select option {
        font-size: 12px;
        padding: 6px 8px;
    }
}
