/* Smart Support Registration Fields - Public Styles */

/* Custom fields container */
.smart-support-registration-fields {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.smart-support-registration-fields h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Field styling */
.smart-support-field {
    margin-bottom: 15px;
}

.smart-support-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.smart-support-field input[type="text"],
.smart-support-field input[type="email"],
.smart-support-field input[type="tel"],
.smart-support-field input[type="url"],
.smart-support-field input[type="number"],
.smart-support-field input[type="date"],
.smart-support-field textarea,
.smart-support-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.3s ease;
}

.smart-support-field input[type="text"]:focus,
.smart-support-field input[type="email"]:focus,
.smart-support-field input[type="tel"]:focus,
.smart-support-field input[type="url"]:focus,
.smart-support-field input[type="number"]:focus,
.smart-support-field input[type="date"]:focus,
.smart-support-field textarea:focus,
.smart-support-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Error states */
.smart-support-field input.error,
.smart-support-field textarea.error,
.smart-support-field select.error {
    border-color: #dc3232;
    box-shadow: 0 0 0 2px rgba(220, 50, 50, 0.2);
}

/* Required field indicator */
.smart-support-field .required {
    color: #dc3232;
    font-weight: bold;
}

/* Checkbox styling */
.smart-support-field input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

.smart-support-field input[type="checkbox"] + label {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 0;
}

/* Field description */
.smart-support-field .field-description {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .smart-support-registration-fields {
        padding: 15px;
        margin: 15px 0;
    }
    
    .smart-support-field input[type="text"],
    .smart-support-field input[type="email"],
    .smart-support-field input[type="tel"],
    .smart-support-field input[type="url"],
    .smart-support-field input[type="number"],
    .smart-support-field input[type="date"],
    .smart-support-field textarea,
    .smart-support-field select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Integration with Smart Support form */
.smart-support-register-form .smart-support-registration-fields {
    margin: 20px 0;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
}

.smart-support-register-form .smart-support-registration-fields h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Ensure proper spacing with Smart Support form elements */
.smart-support-register-form .form-row + .smart-support-registration-fields,
.smart-support-register-form .smart-support-registration-fields + .form-row {
    margin-top: 20px;
}

/* Validation feedback */
.smart-support-field .validation-error {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.smart-support-field input.error + .validation-error,
.smart-support-field textarea.error + .validation-error,
.smart-support-field select.error + .validation-error {
    display: block;
}

/* Loading states */
.smart-support-field.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success states */
.smart-support-field input.valid,
.smart-support-field textarea.valid,
.smart-support-field select.valid {
    border-color: #46b450;
    box-shadow: 0 0 0 2px rgba(70, 180, 80, 0.2);
}

/* Accessibility improvements */
.smart-support-field label:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .smart-support-registration-fields {
        border: 2px solid #000;
        background: #fff;
    }
    
    .smart-support-field input,
    .smart-support-field textarea,
    .smart-support-field select {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .smart-support-field input,
    .smart-support-field textarea,
    .smart-support-field select {
        transition: none;
    }
} 