/* User Info Collector Form Styles */

/* Reset Elementor interference */
.elementor-widget-shortcode .elementor-shortcode {
    all: initial !important;
    display: block !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Elementor compatibility - increase specificity */
.elementor-shortcode .uic-form-wrapper,
.uic-form-wrapper {
    max-width: 400px !important;
    margin: 40px auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.elementor-shortcode .uic-form,
.uic-form {
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-shortcode .uic-form-field,
.uic-form-field {
    margin-bottom: 16px !important;
}

.uic-label {
    display: none;
}

.uic-required {
    color: #d00;
}

.uic-optional {
    font-weight: normal;
    color: #666;
    font-size: 0.9em;
}

.elementor-shortcode .uic-input,
.elementor-shortcode .uic-textarea,
.uic-input,
.uic-textarea {
    width: 100% !important;
    padding: 18px 20px;
    border: 1px solid #000 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    background: #fff !important;
    height: auto !important;
    line-height: normal !important;
}

.uic-input::placeholder,
.uic-textarea::placeholder,
.uic-phone-input::placeholder {
    color: #6b7280;
    opacity: 1;
}

select.uic-input {
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
}

/* intl-tel-input library styles override */
.elementor-shortcode .iti,
.uic-form .iti,
.iti {
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

.elementor-shortcode .iti__input,
.uic-form .iti__input,
.iti__input {
    width: 100% !important;
    padding: 18px 20px;
    padding-left: 80px !important;
    border: 1px solid #000 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    background: #fff !important;
    height: auto !important;
    line-height: normal !important;
}

.elementor-shortcode .iti__input:focus,
.uic-form .iti__input:focus,
.iti__input:focus {
    outline: none !important;
    border-color: #000 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
}

.iti__country-list {
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #000 !important;
    z-index: 99999 !important;
}

.iti__flag-container {
    padding-right: 8px !important;
}

.elementor-shortcode .iti__selected-country,
.uic-form .iti__selected-country,
.iti__selected-country {
    padding: 0 8px 0 12px !important;
    background: transparent !important;
    border: none !important;
}

.elementor-shortcode .iti__selected-dial-code,
.uic-form .iti__selected-dial-code,
.iti__selected-dial-code {
    display: none !important;
}

.uic-input:focus,
.uic-textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.uic-input-error,
.iti__input.uic-input-error {
    border-color: #d00;
}

.uic-field-error {
    display: block;
    margin-top: 5px;
    color: #d00;
    font-size: 13px;
}

.uic-textarea {
    resize: vertical;
    min-height: 100px;
}

.elementor-shortcode .uic-submit-button,
.uic-submit-button {
    width: auto !important;
    padding: 16px 32px !important;
    background: linear-gradient(135deg, #d946ef 0%, #9333ea 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 24px auto 0 !important;
    box-shadow: 0 4px 14px rgba(217, 70, 239, 0.4) !important;
    height: auto !important;
    line-height: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.elementor-shortcode .uic-submit-button:hover,
.uic-submit-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(217, 70, 239, 0.5) !important;
    background: linear-gradient(135deg, #d946ef 0%, #9333ea 100%) !important;
}

.elementor-shortcode .uic-submit-button::after,
.uic-submit-button::after {
    content: '→' !important;
    font-size: 18px !important;
    font-weight: 400 !important;
}

.uic-success-message {
    padding: 18px 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    color: #155724;
    margin: 20px 0;
}

.uic-success-message p {
    margin: 0;
    font-weight: 600;
}

.uic-error-message {
    padding: 18px 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    color: #721c24;
    margin-bottom: 20px;
}

.uic-error-message p {
    margin: 0 0 10px 0;
}

.uic-error-message ul {
    margin: 0;
    padding-left: 20px;
}

.uic-error-message li {
    margin: 5px 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .uic-form-wrapper {
        padding: 0 15px;
        max-width: 100%;
    }

    .uic-submit-button {
        width: 100%;
    }
}
