
/* Star Cleaner Form Builder Frontend - polished booking widget style */

.scfb-form-wrapper,
.elementor .scfb-form-wrapper {
    width: 100% !important;
    max-width: 760px !important;
    margin: 32px auto !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.scfb-form-wrapper *,
.scfb-form-wrapper *::before,
.scfb-form-wrapper *::after {
    box-sizing: border-box !important;
}

.scfb-tabs-nav,
.elementor .scfb-tabs-nav {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 28px 32px 16px !important;
    background: #ffffff !important;
    border-bottom: 5px solid #eef3fb !important;
    position: relative !important;
}

.scfb-tab-btn,
.elementor .scfb-tab-btn,
.scfb-tabs-nav button.scfb-tab-btn {
    flex: 1 1 0 !important;
    min-height: 46px !important;
    padding: 12px 18px !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    color: #53657d !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.scfb-tab-btn:hover,
.elementor .scfb-tab-btn:hover {
    background: #f1f5f9 !important;
    color: #2563eb !important;
}

.scfb-tab-btn.active,
.elementor .scfb-tab-btn.active,
.scfb-tabs-nav button.scfb-tab-btn.active {
    background: #eef4ff !important;
    color: #1d4ed8 !important;
    border-color: #e7efff !important;
    box-shadow: none !important;
}

.scfb-tab-btn.active::after {
    content: "" !important;
    position: absolute !important;
    left: 32px !important;
    right: auto !important;
    bottom: -5px !important;
    width: calc((100% - 76px) / 2) !important;
    height: 5px !important;
    background: #2563eb !important;
    border-radius: 999px !important;
}

.scfb-tab-btn:nth-child(2).active::after {
    left: calc(32px + ((100% - 76px) / 2) + 12px) !important;
}

.scfb-form-container,
.elementor .scfb-form-container {
    padding: 28px 32px 32px !important;
    background: #ffffff !important;
}

.scfb-tab-content,
.scfb-step-content {
    display: none !important;
}

.scfb-tab-content.active,
.scfb-step-content.active {
    display: block !important;
}

.scfb-step-title,
.elementor .scfb-step-title {
    margin: 0 0 6px !important;
    color: #0f172a !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
}

.scfb-step-subtitle,
.elementor .scfb-step-subtitle {
    margin: 0 0 24px !important;
    color: #52637a !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.scfb-fields-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 22px 16px !important;
    width: 100% !important;
}

.scfb-form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
}

.scfb-col-full { width: 100% !important; }
.scfb-col-half { width: calc(50% - 8px) !important; }
.scfb-col-third { width: calc(33.333% - 11px) !important; }

.scfb-form-label,
.elementor .scfb-form-label {
    margin: 0 !important;
    color: #52637a !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

.scfb-req {
    color: #ef4444 !important;
    font-weight: 800 !important;
}

.scfb-form-control,
.elementor .scfb-form-control,
.scfb-form-wrapper input[type="text"],
.scfb-form-wrapper input[type="email"],
.scfb-form-wrapper input[type="tel"],
.scfb-form-wrapper input[type="number"],
.scfb-form-wrapper input[type="date"],
.scfb-form-wrapper input[type="time"],
.scfb-form-wrapper textarea,
.scfb-form-wrapper select {
    width: 100% !important;
    min-height: 54px !important;
    padding: 13px 16px !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: auto !important;
}

.scfb-form-wrapper textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

.scfb-form-control:focus,
.scfb-form-wrapper input:focus,
.scfb-form-wrapper textarea:focus,
.scfb-form-wrapper select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

.scfb-form-control::placeholder,
.scfb-form-wrapper input::placeholder,
.scfb-form-wrapper textarea::placeholder {
    color: #8a9ab0 !important;
}

.scfb-radio-group,
.scfb-checkbox-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    width: 100% !important;
}

.scfb-radio-label,
.scfb-checkbox-label,
.elementor .scfb-radio-label,
.elementor .scfb-checkbox-label {
    flex: 1 1 150px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    user-select: none !important;
}

.scfb-radio-label:has(input:checked),
.scfb-checkbox-label:has(input:checked) {
    background: #1e293b !important;
    border-color: #1e293b !important;
    color: #ffffff !important;
}

.scfb-radio-label input,
.scfb-checkbox-label input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.scfb-help-text {
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.scfb-section-title {
    width: 100% !important;
    margin: 12px 0 0 !important;
    color: #0f172a !important;
    font-size: 20px !important;
    font-weight: 800 !important;
}

.scfb-divider {
    width: 100% !important;
    margin: 12px 0 !important;
    border: 0 !important;
    border-top: 1px solid #e5edf6 !important;
}

.scfb-step-navigation {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 32px -32px -32px !important;
    padding: 24px 32px 28px !important;
    border-top: 1px solid #edf2f7 !important;
    background: #ffffff !important;
}

.scfb-btn,
.elementor .scfb-btn,
.scfb-form-wrapper button.scfb-btn {
    min-width: 148px !important;
    min-height: 52px !important;
    padding: 14px 24px !important;
    border-radius: 18px !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.scfb-btn-prev,
.elementor .scfb-btn-prev {
    min-width: auto !important;
    background: transparent !important;
    color: #64748b !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.scfb-btn-next,
.scfb-btn-submit,
.elementor .scfb-btn-next,
.elementor .scfb-btn-submit {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24) !important;
}

.scfb-btn-next:hover,
.scfb-btn-submit:hover {
    transform: translateY(-1px) !important;
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
}

.scfb-form-response {
    margin-top: 24px !important;
    padding: 16px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.scfb-form-response.success {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}

.scfb-form-response.error {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.scfb-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

@media (max-width: 768px) {
    .scfb-form-wrapper {
        max-width: calc(100% - 24px) !important;
        margin: 20px auto !important;
        border-radius: 22px !important;
    }

    .scfb-tabs-nav {
        padding: 24px 24px 14px !important;
    }

    .scfb-tab-btn {
        font-size: 14px !important;
        padding: 11px 12px !important;
    }

    .scfb-tab-btn.active::after {
        left: 24px !important;
        width: calc((100% - 60px) / 2) !important;
    }

    .scfb-tab-btn:nth-child(2).active::after {
        left: calc(24px + ((100% - 60px) / 2) + 12px) !important;
    }

    .scfb-form-container {
        padding: 24px !important;
    }

    .scfb-step-title {
        font-size: 25px !important;
    }

    .scfb-col-half,
    .scfb-col-third {
        width: 100% !important;
    }

    .scfb-step-navigation {
        margin: 28px -24px -24px !important;
        padding: 22px 24px 24px !important;
    }

    .scfb-btn {
        min-width: 130px !important;
    }
}

@media (max-width: 480px) {
    .scfb-tabs-nav {
        gap: 8px !important;
    }

    .scfb-tab-btn {
        font-size: 13px !important;
    }

    .scfb-radio-label,
    .scfb-checkbox-label {
        flex: 1 1 100% !important;
    }

    .scfb-step-navigation {
        flex-direction: row !important;
    }
}
