/* FluentForm Professional Modern Styling - Specific to Form 4 */

/* Main Form Container */
.fluent_form_4 .fluentform-widget-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: visible;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Form Header */
.fluent_form_4 .fluentform-widget-heading {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.fluent_form_4 .fluentform-widget-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fluent_form_4 .fluentform-widget-description {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 400;
}

/* Form Body */
.fluent_form_4 .fluentform {
    padding: 0;
}
.fluentform .ff-step-body {
    padding:0 !important;
}
.fluent_form_4 .frm-fluent-form {
    background: transparent;
}

/* Step Navigation */
.fluent_form_4 .ff-step-header {
    background: #f8fafc;
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.fluent_form_4 .ff-step-titles {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.fluent_form_4 .ff-step-titles li {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 15px 20px;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #64748b !important;
    transition: all 0.3s ease;
    max-width: 200px;
}

.fluent_form_4 .ff-step-titles li.active,
.fluent_form_4 .ff-step-titles li.ff_active {
    color: #10b981 !important;
}

.fluent_form_4 .ff-step-titles li::before {
    content: attr(data-step-number);
    display: block;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #e2e8f0 !important;
    color: #64748b !important;
    line-height: 40px !important;
    margin: 5px auto 10px !important;
    font-weight: 700;
    transition: all 0.3s ease;
}

.fluent_form_4 .ff-step-titles li.active::before,
.fluent_form_4 .ff-step-titles li.ff_active::before {
    background: #10b981 !important;
    color: white;
    transform: scale(1.1);
}

.fluentform .ff-step-titles li:first-child:after {
        top: 20px !important;
        z-index:2;
}

.fluent_form_4 .fluentform .ff-step-titles li:last-child:after {
    content: '';
    position: absolute;
    top: 20px !important;
    right: -50% !important;
    width: 100% !important;
    height: 2px !important;
    background: #e2e8f0 !important;
}
.fluentform .ff-step-titles li:after {
    background: #e2e8f0;
    top: 20px !important;
    
}
.iti--allow-dropdown input, .iti--allow-dropdown input[type=tel], .iti--allow-dropdown input[type=text], .iti--separate-dial-code input, .iti--separate-dial-code input[type=tel], .iti--separate-dial-code input[type=text] {

    padding-left: 72px !important;

}
/* Form Steps */
.fluent_form_4 .ff-step-body {
    padding: 40px;
}

.fluent_form_4 .fluentform-step {
    min-height: 400px;
}

/* Form Groups */
.fluent_form_4 .ff-el-group {
    margin-bottom: 30px;
}

/* Labels */
.fluent_form_4 .ff-el-input--label label {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
    line-height: 1.4;
}

.fluent_form_4 .ff-el-is-required.asterisk-right label::after {
    content: ' *';
    color: #ef4444;
    font-weight: 700;
}

/* Input Fields */
.fluent_form_4 .ff-el-form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
}

.fluent_form_4 .ff-el-form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.fluent_form_4 .ff-el-form-control::placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* Radio Buttons */
.fluent_form_4 .ff-el-form-check {
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.fluent_form_4 .ff-el-form-check-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    font-weight: 500;
    color: #475569;
}

.fluent_form_4 .ff-el-form-check-label:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.fluent_form_4 .ff-el-form-check.ff_item_selected .ff-el-form-check-label {
    border-color: #10b981;
    background: #ecfdf5;
    color: #10b981;
    font-weight: 600;
}

.fluent_form_4 .ff-el-form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: #10b981;
}

/* Select Dropdown */
.fluent_form_4 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='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Phone Input */
.fluent_form_4 .iti {
    width: 100%;
}

.fluent_form_4 .iti__flag-container {
    border-radius: 8px 0 0 8px;
}

.fluent_form_4 .iti__selected-flag {
    padding: 14px 12px;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #f8fafc;
}

.fluent_form_4 .iti input {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

/* Column Layout */
.fluent_form_4 .ff-t-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.fluent_form_4 .ff-t-cell {
    flex: 1;
    min-width: 250px;
}

/* Navigation Buttons */
.fluent_form_4 .ff_step_nav_last {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

.fluent_form_4 .ff-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.025em;
}

.fluent_form_4 .ff-btn-next {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.fluent_form_4 .ff-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.fluent_form_4 .ff-btn-prev {
    background: #f1f5f9;
    color: #475569;
    margin-right: 15px;
}

.fluent_form_4 .ff-btn-prev:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* Submit Button */
.fluent_form_4 .ff-btn-submit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.fluent_form_4 .ff-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Error States */
.fluent_form_4 .ff-el-form-control.ff-el-is-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.fluent_form_4 .ff-el-is-error .ff-el-form-check-label {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Success States */
.fluent_form_4 .ff-el-form-control.ff-el-is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading States */
.fluent_form_4 .ff-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fluent_form_4 .fluentform-widget-wrapper {
        margin: 20px;
        border-radius: 12px;
    }
    
    .fluent_form_4 .fluentform-widget-heading {
        padding: 30px 20px;
    }
    
    .fluent_form_4 .fluentform-widget-title {
        font-size: 24px;
    }
    
    .fluent_form_4 .ff-step-header {
        padding: 20px;
    }
    
    .fluent_form_4 .ff-step-titles li {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    .fluent_form_4 .ff-step-titles li::before {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
    }
    
    .fluent_form_4 .ff-step-body {
        padding: 30px 20px;
    }
    
    .fluent_form_4 .ff-t-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .fluent_form_4 .ff-t-cell {
        min-width: auto;
    }
    
    .fluent_form_4 .ff-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .fluent_form_4 .ff-btn-prev {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .fluent_form_4 .fluentform-widget-wrapper {
        margin: 10px;
        border-radius: 8px;
    }
    
    .fluent_form_4 .ff-step-titles {
        flex-direction: column;
        gap: 10px;
    }
    
    .fluent_form_4 .ff-step-titles li:not(:last-child)::after {
        display: none;
    }
}

/* Animation for step transitions */
.fluent_form_4 .ff-step-body {
    transition: transform 0.3s ease-in-out;
}

/* Focus indicators for accessibility */
.fluent_form_4 .ff-el-form-check-input:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.fluent_form_4 .ff-btn:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Custom scrollbar for long forms */
.fluent_form_4 .fluentform-widget-wrapper::-webkit-scrollbar {
    width: 6px;
}

.fluent_form_4 .fluentform-widget-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.fluent_form_4 .fluentform-widget-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.fluent_form_4 .fluentform-widget-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}