*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        :root {
            --blue: #2a6cc7;
            --blue-dark: #1e52a0;
            --blue-light: #e8f0fb;
            --green: #059669;
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-400: #9ca3af;
            --gray-500: #6b7280;
            --gray-700: #374151;
            --gray-900: #111827;
            --radius: 10px;
            --radius-sm: 6px;
            --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
            --shadow-lg: 0 4px 24px rgba(0,0,0,.1);
        }

        body {
            font-family: 'DM Sans', sans-serif;
            font-size: 16px;
            color: var(--gray-900);
            background: #f0f4f8;
            min-height: 100vh;
        }
        
        .step-btn:hover {
            cursor: pointer;
        }
        
        
        
        /* ── HEADER ── */
        .header {
            background: #fff;
            border-bottom: 1px solid var(--gray-200);
            padding: 0 24px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .header-left { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
        .header-brand h1 { font-size: 15px; font-weight: 700; color: var(--blue); }
        .header-brand p { font-size: 12px; color: var(--gray-500); }
        .trust-badges { display: flex; align-items: center; gap: 14px; }
        .trust-badge { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gray-500); }
        .trust-badge strong { color: var(--gray-700); }
        .trust-sep { width: 1px; height: 20px; background: var(--gray-200); }
        .star-icon { width: 14px; height: 14px; fill: #f59e0b; }
        @media (max-width: 700px) { .trust-badges { display: none; } }

        /* ── LAYOUT ── */
        /* ── LAYOUT ── */
.main { 
    display: flex; 
    flex-direction: row;
    gap: 0; 
    width: 100%; 
    padding: 0; 
    align-items: stretch;
}

        /* ── CARD ── */
.form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 32px;
    display: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.left-panel {
    width: 50%;
    min-width: 0;
    flex-shrink: 0;
    padding: 28px 24px 80px;
    overflow-y: auto;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
}

.right-panel {
    width: 50%;
    min-width: 0;
    flex-shrink: 0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    border-left: 1px solid var(--gray-200);
    background: #fff;

    display: flex;
    align-items: center;     /* vertical center */
    justify-content: center; /* horizontal center */
    padding: 16px;
}

/* iframe becomes a centered "page" */
.right-panel iframe {
    width: 100%;
    max-width: 800px;   /* 👈 key: controls preview size */
    height: 95%;
    border: none;
    box-shadow: 0 4px 24px rgba(0,0,0,.1); /* optional nice look */
    border-radius: 8px; /* optional */
}
        .form-card.active { display: block; animation: fadeUp .25s ease both; }
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(10px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .form-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--gray-100);
        }
        .form-title { font-size: 18px; font-weight: 700; }
        .step-badge {
            background: var(--blue-light);
            color: var(--blue);
            font-size: 14px;
            font-weight: 600;
            padding: 3px 10px;
            border-radius: 99px;
        }

        /* ── STEP NAV ── */
        .steps-row {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }
        .step-btn {
            font-family: inherit;
            font-size: 14px;
            font-weight: 500;
            padding: 5px 10px;
            border: 1px solid var(--gray-200);
            border-radius: 99px;
            background: #fff;
            color: var(--gray-400);
            cursor: default;
            white-space: nowrap;
        }
        .step-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
        .step-btn.completed { background: var(--blue-light); border-color: var(--blue-light); color: var(--blue); }

        .progress-track {
            height: 4px;
            background: var(--gray-100);
            border-radius: 99px;
            margin-bottom: 24px;
            overflow: hidden;
        }
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--blue), #5b9cf6);
            border-radius: 99px;
            transition: width .35s cubic-bezier(.4,0,.2,1);
        }

        /* ── FIELDS ── */
        .section-title {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .06em;
            color: var(--gray-500);
            margin: 20px 0 12px;
        }
        .section-title:first-child { margin-top: 0; }

        .field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
        .field:last-child { margin-bottom: 0; }
        .field-label-row { display: flex; align-items: baseline; gap: 6px;}
        .field label { font-size: 14px; font-weight: 600; color: var(--gray-700); }
        .sub-label { font-size: 12.5px; color: var(--gray-400); font-weight: 400; }

        input[type="text"],
        input[type="email"],
        input[type="number"],
        input[type="date"],
        select,
        textarea {
            font-family: inherit;
            font-size: 14px;
            color: var(--gray-900);
            background: var(--gray-50);
            border: 1.5px solid var(--gray-200);
            border-radius: var(--radius-sm);
            padding: 9px 12px;
            width: 100%;
            outline: none;
            transition: border-color .15s, box-shadow .15s;
        }
        input:focus, select:focus, textarea:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(42,108,199,.12);
            background: #fff;
        }
        textarea { resize: vertical; min-height: 80px; }
        select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

        .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
        .col-span-2 { grid-column: span 2; }
        @media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } .col-span-2 { grid-column: span 1; } }

        /* ── CARD SELECTORS ── */
        .card-sel {
            border: 2px solid var(--gray-200);
            border-radius: var(--radius);
            padding: 16px;
            cursor: pointer;
            transition: border-color .15s, box-shadow .15s;
            font-size: 13px;
            color: var(--gray-500);
        }
        .card-sel:hover { border-color: #93bbf0; }
        .card-sel.selected { border-color: var(--blue); background: var(--blue-light); }
        .card-sel-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
        .card-sel-icon { background: var(--blue-light); color: var(--blue); border-radius: 8px; padding: 8px; display: flex; }
        .card-sel.selected .card-sel-icon { background: var(--blue); color: #fff; }
        .card-sel-check { width: 20px; height: 20px; border-radius: 50%; background: transparent; border: 2px solid var(--gray-300, #d1d5db); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .card-sel.selected .card-sel-check { background: var(--blue); border-color: var(--blue); }
        .card-sel-title { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 3px; }

        /* ── SEGMENTED ── */
        .seg-row { display: flex; background: var(--gray-100); border-radius: var(--radius-sm); padding: 3px; gap: 3px; }
        .seg-btn { flex: 1; font-family: inherit; font-size: 13px; font-weight: 500; padding: 7px 14px; border: none; border-radius: 5px; background: transparent; color: var(--gray-500); cursor: pointer; transition: background .15s, color .15s; }
        .seg-btn.selected { background: #fff; color: var(--blue); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.1); }

        /* ── CHECKBOX / RADIO ── */
        .check-group { display: flex; flex-direction: column; gap: 8px; }
        .check-row { display: flex; align-items: center; gap: 8px; cursor: pointer; }
        .check-row input[type="checkbox"],
        .check-row input[type="radio"] { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; }
        .check-row span { font-size: 13px; color: var(--gray-700); }
        .radio-row { display: flex; gap: 16px; flex-wrap: wrap; }

        /* ── MORALE BOX ── */
        .morale-box {
            background: var(--blue-light);
            border: 1px solid #c3d9f5;
            border-radius: var(--radius);
            padding: 16px;
            margin-top: 16px;
        }
        .morale-box h4 { font-size: 13px; font-weight: 700; color: var(--blue-dark); margin-bottom: 12px; }
        .morale-box .field { margin-bottom: 12px; }

        /* ── INFO BOX ── */
        .info-box {
            background: #fffbeb;
            border: 1px solid #fcd34d;
            border-radius: var(--radius-sm);
            padding: 10px 14px;
            font-size: 12.5px;
            color: #92400e;
            margin-bottom: 14px;
        }
        .info-box strong { font-weight: 700; }

        /* ── RECALL BOX ── */
        .recall-box {
            background: var(--gray-50);
            border: 1px solid var(--gray-200);
            border-radius: var(--radius-sm);
            padding: 12px 14px;
            font-size: 12px;
            color: var(--gray-500);
            margin-top: 12px;
            line-height: 1.6;
        }
        .recall-box strong { color: var(--gray-700); }

        /* ── FOOTER ── */
        .form-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid var(--gray-100);
        }
        .btn {
            font-family: inherit;
            font-size: 14px;
            font-weight: 600;
            padding: 10px 22px;
            border-radius: var(--radius-sm);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: background .15s, opacity .15s;
        }
        .btn-primary { background: var(--blue); color: #fff; }
        .btn-primary:hover { background: var(--blue-dark); }
        .btn-ghost { background: transparent; color: var(--gray-500); border: 1.5px solid var(--gray-200); }
        .btn-ghost:hover { background: var(--gray-50); }
        .btn-hidden { visibility: hidden; }
        .btn-success { background: #059669; color: #fff; font-size: 15px; padding: 13px 28px; }
        .btn-success:hover { background: #047857; }

        /* ── TRUST STRIP ── */
        .trust-strip {
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid var(--gray-100);
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .trust-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--gray-500); }
        .trust-item strong { color: var(--gray-700); }

        /* ── HIDDEN ── */
        .hidden { display: none !important; }

        /* ── DIVIDER ── */
        .divider { border: none; border-top: 1px solid var(--gray-100); margin: 16px 0; }

        /* ── INLINE NOTE ── */
        .inline-note { font-size: 11.5px; color: var(--gray-400); margin-top: 4px; }
        
        @media (max-width: 900px) {
    .right-panel {
        display: none;
    }

    .left-panel {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }

    .main {
        display: block;
    }
}