/*
=========================================
SED SOLAR - FORMS CSS
FluentForm and other form styles
Wizutech Development Team
=========================================
*/

/* ==========================================
   WIZUTECH - FLUENTFORM WIDGET STYLES
   ========================================== */

/* FluentForm widget styling by Wizutech */
.fluentform-widget-wrapper {
    max-width: 450px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fluentform-widget-title {
    font-size: 16px!important;
    font-weight: 800;
    color: #072032;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.3;
}

.fluentform-widget-description {
    font-size: 12px;
    color: #555555;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
}

/* ==========================================
   WIZUTECH - FORM CONTROLS
   ========================================== */

/* Form controls */
.ff-el-form-control {
    width: 100%;
    padding: 15px 20px !important;      
    border: 2px solid #e0e7ff !important; 
    border-radius: 12px !important;
    font-size: 16px!important;            
    background-color: rgba(255, 255, 255, 0.9) !important;
    display: block;
    height: 46px;
    box-sizing: border-box;
    margin-bottom: 12px;
    transition: all 0.3s ease !important;
}

.ff-el-form-control:focus {
    border-color: #195c9c !important; 
    box-shadow: 0 0 0 3px rgba(25, 92, 156, 0.1) !important; 
    outline: none;
    background: white !important;
}

.ff-el-form-control::placeholder {
    color: #777;
    opacity: 0.8;
}

/* Textarea */
textarea.ff-el-form-control {
    height: auto;
    min-height: 100px;
    padding-top: 12px;
}

/* Form groups */
.ff-el-group {
    margin-bottom: 12px;
}

.ff-t-container {
    margin: 0;
}

.ff-t-cell {
    padding: 0;
}

/* Specific form width */
.fluent_form_11 {
    width: 100%;
}

/* ==========================================
   WIZUTECH - PHONE INPUT STYLES
   ========================================== */

/* Phone input (intl-tel-input) */
.iti {
    width: 100% !important;
    display: block;
}

.iti__flag-container {
    z-index: 10;
}

.iti__selected-flag {
    padding: 0 10px;
    background-color: #f5f5f5;
    border-radius: 7px 0 0 7px;
    border-right: 1px solid #e0e0e0;
    height: 44px;
}

/* Phone field placeholders and text indentation */
#ff_1_phone,
#ff_2_phone,
#ff_3_phone,
#ff_4_phone,
#ff_5_phone,
#ff_6_phone,
#ff_7_phone,
#ff_8_phone,
#ff_9_phone,
#ff_10_phone,
#ff_11_phone,
#ff_12_phone,
#ff_13_phone,
#ff_14_phone,
#ff_15_phone,
#ff_16_phone,
#ff_3_2_phone,
#ff_17_phone {
    text-indent: 30px;
}

#ff_1_phone::placeholder,
#ff_2_phone::placeholder,
#ff_3_phone::placeholder,
#ff_4_phone::placeholder,
#ff_5_phone::placeholder,
#ff_6_phone::placeholder,
#ff_7_phone::placeholder,
#ff_8_phone::placeholder,
#ff_9_phone::placeholder,
#ff_10_phone::placeholder,
#ff_11_phone::placeholder,
#ff_12_phone::placeholder,
#ff_13_phone::placeholder,
#ff_14_phone::placeholder,
#ff_15_phone::placeholder,
#ff_3_2_phone::placeholder,
#ff_16_phone::placeholder,
#ff_17_phone::placeholder {
    text-indent: 30px;
}

/* ==========================================
   WIZUTECH - SUBMIT BUTTON STYLES
   ========================================== */

/* Submit button with Wizutech hover effects */
.ff-btn-submit {
    background: linear-gradient(135deg, #195c9c 0%, #144a7a 100%) !important; 
    border: none !important;
    padding: 18px 30px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: white !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 8px 25px rgba(25, 92, 156, 0.4) !important;
    width: 100% !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    position: relative !important;
    overflow: hidden !important;
}

.ff-btn-submit:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(25, 92, 156, 0.5) !important;
    background: linear-gradient(135deg, #144a7a 0%, #1e5a8a 100%) !important;
}

/* ==========================================
   WIZUTECH - FLUENTFORM BUTTON HOVER EFFECTS
   ========================================== */

/* FluentForm button hover effects */
.ff-btn-submit,
.ff-btn.ff-btn-submit,
button[type="submit"].ff-btn,
.ff_btn_style {
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    z-index: 5 !important;
}

.ff-btn-submit::before,
.ff-btn.ff-btn-submit::before,
button[type="submit"].ff-btn::before,
.ff_btn_style::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    transition: left 0.4s ease !important;
    z-index: -1 !important;
    border-radius: inherit !important;
    background: linear-gradient(45deg, #195c9c, #0091e2) !important;
}

.ff-btn-submit:hover::before,
.ff-btn.ff-btn-submit:hover::before,
button[type="submit"].ff-btn:hover::before,
.ff_btn_style:hover::before {
    left: 0 !important;
}

.ff-btn-submit:hover,
.ff-btn.ff-btn-submit:hover,
button[type="submit"].ff-btn:hover,
.ff_btn_style:hover {
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(25, 92, 156, 0.5) !important;
}

/* Disabled button overrides */
.ff-btn-submit:disabled,
.ff-btn-submit[disabled],
.ff-btn-submit.disabled,
button[type="submit"]:disabled,
input[type="submit"]:disabled,
.fluentform button:disabled,
.fluentform input[type="submit"]:disabled {
    background: linear-gradient(135deg, #195c9c 0%, #144a7a 100%) !important;
    color: white !important;
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    overflow: hidden !important;
}

.ff-btn-submit:disabled::before,
.ff-btn-submit[disabled]::before,
.ff-btn-submit.disabled::before,
button[type="submit"]:disabled::before,
input[type="submit"]:disabled::before,
.fluentform button:disabled::before,
.fluentform input[type="submit"]:disabled::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    transition: left 0.4s ease !important;
    z-index: -1 !important;
    border-radius: inherit !important;
    background: linear-gradient(45deg, #195c9c, #0091e2) !important;
}

.ff-btn-submit:disabled:hover::before,
.ff-btn-submit[disabled]:hover::before,
.ff-btn-submit.disabled:hover::before,
button[type="submit"]:disabled:hover::before,
input[type="submit"]:disabled:hover::before,
.fluentform button:disabled:hover::before,
.fluentform input[type="submit"]:disabled:hover::before {
    left: 0 !important;
}

.ff-btn-submit:disabled:hover,
.ff-btn-submit[disabled]:hover,
.ff-btn-submit.disabled:hover,
button[type="submit"]:disabled:hover,
input[type="submit"]:disabled:hover,
.fluentform button:disabled:hover,
.fluentform input[type="submit"]:disabled:hover {
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(25, 92, 156, 0.5) !important;
    background: none !important;
    opacity: 1 !important;
}

/* FluentForm specific wrapper styles */
.ff_submit_btn_wrapper .ff-btn-submit {
    position: relative !important;
    overflow: hidden !important;
    z-index: 5 !important;
}

.ff_submit_btn_wrapper .ff-btn-submit::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    transition: left 0.4s ease !important;
    z-index: -1 !important;
    border-radius: inherit !important;
    background: linear-gradient(45deg, #195c9c, #0091e2) !important;
}

.ff_submit_btn_wrapper .ff-btn-submit:hover::before {
    left: 0 !important;
}

.ff_submit_btn_wrapper .ff-btn-submit:hover {
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(25, 92, 156, 0.5) !important;
}

/* ==========================================
   WIZUTECH - FORM SUCCESS & LABELS
   ========================================== */

/* Form success message */
.fluentform .ff-message-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: none !important;
}

/* Form labels */
.fluentform .ff-el-input--label label {
    color: #374151 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
}

/* Dropdown styling */
.fluentform select.ff-el-form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23195c9c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

/* Hide modal button */
.ff_modal_btn {
    display: none !important;
}

/* ==========================================
   WIZUTECH - FORM ANIMATIONS
   ========================================== */

/* Enhanced hover glow effect */
.ff-btn-submit:hover,
.ff-btn.ff-btn-submit:hover,
button[type="submit"].ff-btn:hover,
.ff_btn_style:hover {
    animation: formButtonGlow 1.5s ease-in-out infinite alternate !important;
    background: none !important;
}

@keyframes formButtonGlow {
    0% {
        box-shadow: 0 8px 25px rgba(25, 92, 156, 0.4) !important;
    }
    100% {
        box-shadow: 0 12px 35px rgba(25, 92, 156, 0.6) !important;
    }
}

/* Active state */
.ff-btn-submit:active,
.ff-btn.ff-btn-submit:active,
button[type="submit"].ff-btn:active,
.ff_btn_style:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(25, 92, 156, 0.4) !important;
}

/* Focus state for accessibility */
.ff-btn-submit:focus,
.ff-btn.ff-btn-submit:focus,
button[type="submit"].ff-btn:focus,
.ff_btn_style:focus {
    outline: 3px solid rgba(25, 92, 156, 0.3) !important;
    outline-offset: 2px !important;
}

/* Loading state */
.ff-btn-submit.ff-working::before,
.ff-btn-submit[disabled].ff-working::before {
    animation: loadingSlide 2s linear infinite !important;
}

@keyframes loadingSlide {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

/* ==========================================
   WIZUTECH - RESPONSIVE FORMS
   ========================================== */

/* Mobile responsive form */
@media (max-width: 480px) {
    .fluentform-widget-wrapper {
        padding: 25px 20px;
    }
    
    .ff-btn-submit {
        padding: 16px 24px !important;
        font-size: 16px !important;
    }
}