/* Phone Input Validation Styles for IT (Italy) */

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #C19D68;
    box-shadow: 0 0 0 3px rgba(193, 157, 104, 0.1);
}

.phone-input-wrapper.error {
    border-color: #dc3545;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #fff;
    border-right: none;
    white-space: nowrap;
}

.phone-flag {
    width: 24px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.phone-code {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.phone-input-wrapper input[type="text"] {
    flex: 1;
    border: none !important;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    background: transparent;
    min-width: 0;
}

.phone-input-wrapper input[type="text"]::placeholder {
    color: #999;
    opacity: 1;
}

.phone-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    padding-left: 2px;
    font-weight: 500;
}

.phone-error:empty {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .phone-prefix {
        padding: 0 8px;
        gap: 6px;
    }
    
    .phone-flag {
        width: 20px;
    }
    
    .phone-code {
        font-size: 14px;
    }
    
    .phone-input-wrapper input[type="text"] {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Integration with existing form styles */
.form-info__input-box .phone-input-wrapper {
    width: 100%;
    margin-top: 8px;
}

.form-info__input-box label {
    display: block;
    margin-bottom: 0;
}
