/* Salsync Custom — Finance form popup styling
 * Scoped to the Elementor popup so it only affects the "Apply for Finance" modal,
 * never other inline forms. Brand accent: #ff0b0b (Motordeal red).
 */

.elementor-popup-modal .vehica-contact-form {
    background: #ffffff;
    color: #1f2937;
}

/* Step headings */
.elementor-popup-modal .vehica-contact-form h3 {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 14px;
}

.elementor-popup-modal .vehica-contact-form h4 {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    margin: 18px 0 10px;
}

/* Labels — high contrast, clear */
.elementor-popup-modal .vehica-contact-form form.wpcf7-form label {
    display: block;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* Inputs, selects, textareas — clear borders + padding */
.elementor-popup-modal .vehica-contact-form form.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio):not(.wpcf7-acceptance) {
    width: 100%;
    max-width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.elementor-popup-modal .vehica-contact-form form.wpcf7-form .wpcf7-form-control:focus {
    border-color: #ff0b0b;
    box-shadow: 0 0 0 3px rgba(255, 11, 11, 0.15);
    outline: none;
}

/* uacf7 multi-step navigation buttons */
.elementor-popup-modal .vehica-contact-form .uacf7-next,
.elementor-popup-modal .vehica-contact-form .uacf7-prev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.elementor-popup-modal .vehica-contact-form .uacf7-next {
    background: #ff0b0b;
    color: #ffffff;
}

.elementor-popup-modal .vehica-contact-form .uacf7-next:hover {
    background: #e00a0a;
}

.elementor-popup-modal .vehica-contact-form .uacf7-prev {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}

.elementor-popup-modal .vehica-contact-form .uacf7-prev:hover {
    background: #f9fafb;
}

/* Submit button — full-width primary CTA */
.elementor-popup-modal .vehica-contact-form .wpcf7-submit {
    width: 100%;
    min-height: 48px;
    background: #ff0b0b;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}

.elementor-popup-modal .vehica-contact-form .wpcf7-submit:hover {
    background: #e00a0a;
}

/* Step wrapper breathing room + hide inactive steps cleanly */
.elementor-popup-modal .vehica-contact-form .uacf7-step {
    padding-bottom: 4px;
}

/* ---- Step pagination (numbered titles) ---- */
.elementor-popup-modal .salsync-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.elementor-popup-modal .salsync-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    /* button reset + clickable affordance */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.elementor-popup-modal .salsync-step-item:hover .salsync-step-label {
    color: #374151;
}

.elementor-popup-modal .salsync-step-item:hover .salsync-step-num {
    background: #e5e7eb;
}

.elementor-popup-modal .salsync-step-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: background .15s ease, color .15s ease;
}

.elementor-popup-modal .salsync-step-label {
    font-size: 13px;
    line-height: 1.2;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elementor-popup-modal .salsync-step-item.active .salsync-step-num {
    background: #ff0b0b;
    color: #ffffff;
}

.elementor-popup-modal .salsync-step-item.active .salsync-step-label {
    color: #111827;
    font-weight: 700;
}

.elementor-popup-modal .salsync-step-item.done .salsync-step-num {
    background: #dcfce7;
    color: #16a34a;
}

.elementor-popup-modal .salsync-step-item.done .salsync-step-label {
    color: #374151;
}

/* ---- Draft save/restore bar ---- */
.elementor-popup-modal .salsync-draft-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.elementor-popup-modal .salsync-draft-save {
    min-height: 40px;
    padding: 0 18px;
    background: #111827;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.elementor-popup-modal .salsync-draft-save:hover {
    background: #1f2937;
}

.elementor-popup-modal .salsync-draft-status {
    flex: 1 1 auto;
    font-size: 13px;
    color: #16a34a;
    font-weight: 600;
    opacity: 0;
    transition: opacity .2s ease;
}

.elementor-popup-modal .salsync-draft-status.show {
    opacity: 1;
}

.elementor-popup-modal .salsync-draft-clear {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
    text-decoration: underline;
}

.elementor-popup-modal .salsync-draft-clear:hover {
    color: #6b7280;
}

/* ---- Repeatable field_group rows (expenses / income) ---- */
.elementor-popup-modal .vehica-contact-form .wpcf7-field-group {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    background: #ffffff;
}

.elementor-popup-modal .vehica-contact-form .wpcf7-field-group-add,
.elementor-popup-modal .vehica-contact-form .wpcf7-field-group-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    border: 1px solid transparent;
    transition: background .15s ease;
}

.elementor-popup-modal .vehica-contact-form .wpcf7-field-group-add {
    background: #ff0b0b;
    color: #ffffff;
}

.elementor-popup-modal .vehica-contact-form .wpcf7-field-group-add:hover {
    background: #e00a0a;
}

.elementor-popup-modal .vehica-contact-form .wpcf7-field-group-remove {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
    margin-right: 6px;
}

.elementor-popup-modal .vehica-contact-form .wpcf7-field-group-remove:hover {
    background: #f9fafb;
}

/* Responsive: tighter padding on small screens */
@media (max-width: 767px) {
    .elementor-popup-modal .vehica-contact-form form.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit) {
        font-size: 16px; /* prevent iOS zoom */
    }
}
