/**
 * International Phone Field Styles for TYPO3 Contact Forms
 */

.international-phone-field {
    /* Enhanced styling for international phone fields */
    transition: border-color 0.2s ease-in-out;
}

.international-phone-field:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
}

.international-phone-field.valid {
    border-color: #28a745;
}

.international-phone-field.invalid {
    border-color: #dc3545;
}

/* Placeholder styling */
.international-phone-field::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Auto-fill styling */
.international-phone-field:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff3cd inset !important;
    background-color: #fff3cd !important;
}

/* Form group styling for better visual integration */
.form-group .international-phone-field {
    width: 100%;
}

/* Success state */
.has-success .international-phone-field {
    border-color: #28a745;
}

/* Error state */
.has-error .international-phone-field {
    border-color: #dc3545;
}

/* Loading state (for validation) */
.international-phone-field.validating {
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" stroke="%23007cba" stroke-width="2" fill="none" stroke-dasharray="31.416" stroke-dashoffset="31.416"><animate attributeName="stroke-dasharray" dur="2s" values="0 31.416;15.708 15.708;0 31.416" repeatCount="indefinite"/><animate attributeName="stroke-dashoffset" dur="2s" values="0;-15.708;-31.416" repeatCount="indefinite"/></circle></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px 16px;
    padding-right: 32px;
}


