/* ZSC Mental Wellness Assessment – v1.2 */

.zsc-mwa-wrap {
    max-width: 780px;
    margin: 0 auto;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #2c2c2c;
}

/* ── Steps ── */
.zsc-step { display: none; }
.zsc-step.active { display: block; }

/* ── Step Header ── */
.zsc-step-header { margin-bottom: 24px; }
.zsc-step-header h2 { font-size: 1.5rem; font-weight: 700; margin: 8px 0 6px; color: #1a1a2e; }
.zsc-step-badge {
    display: inline-block;
    background: #1a5f7a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
}
.zsc-badge-safety { background: #c0392b; }
.zsc-instruction { color: #555; font-size: 0.92rem; margin: 0 0 14px; }

/* ── Score Legend ── */
.zsc-score-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    background: #f0f4f7;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    margin-top: 4px;
}
.zsc-legend-item { color: #444; }

/* ── Question Block ── */
.zsc-question-block {
    background: #fff;
    border: 1px solid #e4e8ec;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}
.zsc-question-block:hover { border-color: #1a5f7a; }
.zsc-question-block--safety { border-left: 4px solid #e67e22; }
.zsc-q-num { font-weight: 700; color: #1a5f7a; margin-right: 4px; }
.zsc-question-text { font-size: 0.95rem; margin: 0 0 12px; line-height: 1.5; }

/* ── Radio Group ── */
.zsc-radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.zsc-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: #f5f7fa;
    border: 1px solid #dde1e7;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 0.85rem;
    transition: all 0.15s;
    user-select: none;
}
.zsc-radio-label:hover { background: #e8f4f8; border-color: #1a5f7a; }
.zsc-radio-label input[type="radio"] { accent-color: #1a5f7a; margin: 0; }
.zsc-radio-val { font-weight: 700; color: #1a5f7a; font-size: 0.9rem; min-width: 14px; }

/* ── Checkbox Group ── */
.zsc-checkbox-group { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.zsc-checkbox-inline { flex-direction: row; flex-wrap: wrap; }
.zsc-checkbox-label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 0.9rem; line-height: 1.4; }
.zsc-checkbox-label input[type="checkbox"] { accent-color: #1a5f7a; margin-top: 3px; flex-shrink: 0; }

/* ── Specific Time Input ── */
.zsc-specific-time-wrap { margin-top: 8px; }
.zsc-specific-time-input {
    margin-top: 8px;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.88rem;
    box-sizing: border-box;
}
.zsc-specific-time-input:focus { outline: none; border-color: #1a5f7a; box-shadow: 0 0 0 3px rgba(26,95,122,0.12); }

/* ── Disclaimer ── */
.zsc-disclaimer-box {
    background: #fff;
    border: 1px solid #e4e8ec;
    border-radius: 12px;
    padding: 32px;
}
.zsc-section-title { font-size: 1.6rem; font-weight: 800; color: #1a1a2e; margin: 0 0 4px; }
.zsc-disclaimer-heading { font-size: 1rem; font-weight: 700; color: #1a5f7a; margin: 0 0 16px; }
.zsc-disclaimer-text { font-size: 0.88rem; line-height: 1.7; color: #444; }
.zsc-disclaimer-text p { margin: 0 0 14px; }

/* ── Urgent Notice – coral/pink bg, red left strip, big icon ── */
.zsc-urgent-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fde8e8;           /* soft coral/pink */
    border-left: 5px solid #c0392b;
    padding: 18px 20px;
    border-radius: 0 10px 10px 0;
    margin: 18px 0;
}
.zsc-danger-icon {
    font-size: 2.4rem;             /* bigger danger sign */
    line-height: 1;
    flex-shrink: 0;
    color: #c0392b;
}
.zsc-urgent-content { flex: 1; font-size: 0.88rem; line-height: 1.65; color: #7b1a1a; }
.zsc-urgent-content strong { display: block; margin-bottom: 6px; font-size: 0.92rem; color: #5c0f0f; }
.zsc-urgent-content p { margin: 0; color: #8b3a3a; }

.zsc-consent-check { margin: 20px 0 24px; }

/* ── Buttons ── */
.zsc-btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.zsc-btn-primary { background: #1a5f7a; color: #fff; }
.zsc-btn-primary:hover { background: #154f66; color: #fff; }
.zsc-btn-primary:disabled { background: #94a3b8; cursor: not-allowed; }
.zsc-btn-secondary { background: #f1f5f9; color: #334155; }
.zsc-btn-secondary:hover { background: #e2e8f0; }

.zsc-nav {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e4e8ec;
}

/* ── Progress Bar – bottom, two-tone ── */
.zsc-progress-bar-wrap { margin-top: 28px; }
.zsc-progress-outer {
    background: #f0f4f7;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #e4e8ec;
}
.zsc-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.zsc-prog-done { color: #27ae60; }
.zsc-prog-left { color: #e74c3c; }
.zsc-progress-track {
    display: flex;
    height: 10px;
    border-radius: 99px;
    overflow: hidden;
    gap: 0;
}
.zsc-progress-done {
    background: #27ae60;
    border-radius: 99px 0 0 99px;
    transition: width 0.4s ease;
}
.zsc-progress-left {
    background: #f5b7b1;
    border-radius: 0 99px 99px 0;
    transition: width 0.4s ease;
}
.zsc-progress-steps {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-top: 6px;
}

/* ── Contact Form ── */
.zsc-contact-form { margin-bottom: 24px; }
.zsc-consent-group {
    background: #f0f4f7;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.zsc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.zsc-form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: #334155; margin-bottom: 5px; }
.req { color: #c0392b; }
.zsc-form-field input[type="text"],
.zsc-form-field input[type="email"],
.zsc-form-field input[type="tel"],
.zsc-form-field input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.zsc-form-field input:focus { outline: none; border-color: #1a5f7a; box-shadow: 0 0 0 3px rgba(26,95,122,0.12); }

/* ── Error ── */
.zsc-error-msg {
    background: #fdecea;
    border-left: 4px solid #c0392b;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    color: #c0392b;
    font-size: 0.88rem;
    margin-top: 12px;
}

/* ── Results ── */
.zsc-result-card { border-radius: 12px; padding: 32px; margin-bottom: 20px; text-align: center; }
.zsc-result-card h2 { font-size: 1.5rem; margin: 0 0 8px; }
.zsc-result-card p { font-size: 0.95rem; line-height: 1.7; margin: 0; }
.zsc-result-score { font-size: 2.5rem; font-weight: 800; margin: 12px 0; }
.zsc-result-level1 { background: #e8f8f1; border: 2px solid #27ae60; color: #1a6b3c; }
.zsc-result-level2 { background: #fef9e6; border: 2px solid #f39c12; color: #7d5a00; }
.zsc-result-level3 { background: #fdecea; border: 2px solid #e74c3c; color: #7b1a1a; }
.zsc-result-urgent { background: #c0392b; border: 2px solid #96281b; color: #fff; }
.zsc-result-desc { background: #fff; border: 1px solid #e4e8ec; border-radius: 10px; padding: 20px 24px; font-size: 0.92rem; line-height: 1.7; margin-bottom: 12px; }
.zsc-result-desc h3 { margin: 0 0 10px; font-size: 1rem; color: #1a1a2e; }
.zsc-urgent-result-box { background: #7b1a1a; color: #fff; border-radius: 10px; padding: 20px 24px; margin-bottom: 16px; font-size: 0.92rem; line-height: 1.7; }
.zsc-urgent-result-box h3 { color: #ffd5d5; margin: 0 0 8px; }
.zsc-result-submitted { text-align: center; color: #555; font-size: 0.88rem; margin-top: 16px; }

/* ── Spinner ── */
.zsc-spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: zsc-spin 0.7s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes zsc-spin { to { transform: rotate(360deg); } }

/* ── EXIT INTENT POPUP ── */
.zsc-exit-popup { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.zsc-exit-overlay { position: absolute; inset: 0; background: rgba(10,20,30,0.6); backdrop-filter: blur(3px); }
.zsc-exit-modal {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 92%;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    animation: zsc-popup-in 0.25s ease;
}
@keyframes zsc-popup-in { from { opacity:0; transform:scale(0.93); } to { opacity:1; transform:scale(1); } }
.zsc-exit-header {
    background: #1a5f7a;
    padding: 22px 28px;
    text-align: center;
}
.zsc-exit-logo { max-height: 52px; max-width: 200px; object-fit: contain; filter: brightness(0) invert(1); }
.zsc-exit-body { padding: 28px 28px 24px; position: relative; }
.zsc-exit-title { font-size: 1.25rem; font-weight: 800; color: #1a1a2e; margin: 0 0 10px; }
.zsc-exit-text { font-size: 0.9rem; color: #555; line-height: 1.65; margin: 0 0 24px; }
.zsc-exit-actions { display: flex; gap: 12px; flex-direction: column; }
.zsc-btn-exit-contact {
    display: block;
    text-align: center;
    background: #1a5f7a;
    color: #fff;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}
.zsc-btn-exit-contact:hover { background: #154f66; color: #fff; }
.zsc-btn-exit-stay {
    display: block;
    width: 100%;
    background: #f1f5f9;
    color: #334155;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.zsc-btn-exit-stay:hover { background: #e2e8f0; }
.zsc-exit-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.zsc-exit-close:hover { color: #334155; }

/* ── Mobile ── */
@media (max-width: 600px) {
    .zsc-disclaimer-box { padding: 20px 16px; }
    .zsc-form-row { grid-template-columns: 1fr; }
    .zsc-radio-group { flex-direction: column; }
    .zsc-radio-label { width: 100%; }
    .zsc-nav { flex-direction: column-reverse; }
    .zsc-btn { width: 100%; text-align: center; }
    .zsc-result-card { padding: 22px 16px; }
    .zsc-exit-actions { flex-direction: column; }
    .zsc-danger-icon { font-size: 1.8rem; }
}
