/**
 * Form wizard pages — layout overrides to match site design while keeping wizard UI.
 */

body.site-page--form {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 0 !important;
    padding-left: 0;
    padding-right: 0;
    background: linear-gradient(180deg, #FAFBFC 0%, #F1F5F9 100%) !important;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

body.site-page--form > footer.footer,
body.site-page--form > footer.site-footer {
    margin-top: auto;
    margin-bottom: 0 !important;
}

body.site-page--form > .container,
body.site-page--form > .form-container,
body.site-page--form > .form-wizard-shell {
    max-width: 920px;
    width: calc(100% - 2rem);
    margin: 2rem auto 2rem !important;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08) !important;
    padding: 2.5rem !important;
    position: relative;
}

body.site-page--form .go-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    padding: 0.6rem 1rem;
    text-decoration: none;
    background: var(--site-navy, #0B1220);
    color: var(--site-primary, #00D084);
    border: 2px solid var(--site-navy, #0B1220);
    border-radius: 10px;
}

body.site-page--form .go-back-btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: block;
}

body.site-page--form .go-back-btn:hover {
    background: var(--site-primary, #00D084);
    color: var(--site-navy, #0B1220);
}

body.site-page--form .header h1,
body.site-page--form .markopp-brand {
    color: var(--text-dark, #0F172A);
}

body.site-page--form .btn-primary,
body.site-page--form button[type="submit"]:not(.btn-secondary) {
    background: var(--site-primary, #00D084) !important;
    color: var(--site-navy, #0B1220) !important;
    border-color: var(--site-primary, #00D084) !important;
}

/* ---- Form fields (legacy forms) ---- */
body.site-page--form form {
    margin-top: 1.25rem;
}

body.site-page--form .form-group {
    margin-bottom: 1.1rem;
}

body.site-page--form .form-group label {
    display: block;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

body.site-page--form .required,
body.site-page--form .form-group label .required {
    color: #dc2626;
    font-weight: 800;
}

body.site-page--form .question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(0, 208, 132, 0.12);
    color: #047857;
    font-size: 0.8rem;
    font-weight: 800;
    margin-right: 0.4rem;
}

body.site-page--form input[type="text"],
body.site-page--form input[type="email"],
body.site-page--form input[type="tel"],
body.site-page--form input[type="number"],
body.site-page--form input[type="url"],
body.site-page--form select,
body.site-page--form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.site-page--form textarea {
    min-height: 110px;
    resize: vertical;
}

body.site-page--form input:focus,
body.site-page--form select:focus,
body.site-page--form textarea:focus {
    border-color: rgba(0, 208, 132, 0.65);
    box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.16);
}

body.site-page--form .section-divider {
    margin: 1.75rem 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

body.site-page--form .section-number,
body.site-page--form .section-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

body.site-page--form .section-instruction {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.9rem;
}

body.site-page--form .reset-form-btn,
body.site-page--form #fillSampleBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #0b1220;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

body.site-page--form .reset-form-btn:hover,
body.site-page--form #fillSampleBtn:hover {
    filter: brightness(1.03);
}

body.site-page--form .ai-note {
    background: #ecfdf5;
    border: 1px solid rgba(0, 208, 132, 0.25);
    border-radius: 16px;
    padding: 1.25rem 1.25rem;
    margin: 1rem 0 1.5rem;
}

body.site-page--form .ai-note-section-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    color: #0f172a;
}

body.site-page--form .ai-note-section-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

body.site-page--form .ai-note-list {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
    color: #334155;
}

body.site-page--form .ai-note-list li {
    margin: 0.25rem 0;
}

body.site-page--form .scroll-progress-bar {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 100;
}

@media (max-width: 767.98px) {
    body.site-page--form {
        padding-top: var(--navbar-height, 58px);
    }

    body.site-page--form > .container,
    body.site-page--form > .form-container,
    body.site-page--form > .form-wizard-shell {
        width: calc(100% - 1rem);
        margin: 1rem auto 2rem !important;
        padding: 1.5rem !important;
    }
}
