/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
#sq-quiz-wrapper * { box-sizing: border-box; margin: 0; padding: 0; }

#sq-quiz-wrapper {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    max-width: 640px;
    margin: 40px auto;
    padding: 0 16px;
}

/* ─── Progress Bar ──────────────────────────────────────────────────────────── */
#sq-progress-wrap {
    background: #e0eaf3;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    display: none;
}
#sq-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3B7CAF, #5ba3d9);
    border-radius: 999px;
    width: 0%;
    transition: width 0.5s ease;
}
#sq-progress-label {
    text-align: right;
    font-size: 13px;
    color: #3B7CAF;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
}

/* ─── Screens ───────────────────────────────────────────────────────────────── */
.sq-screen {
    display: none;
    background: #fff;
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 8px 40px rgba(59, 124, 175, 0.13);
    border: 1px solid #e8f0f7;
    text-align: center;
    animation: sqFadeIn 0.15s ease;
}
.sq-screen.active { display: block; }

@keyframes sqFadeIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes sqFadeOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-30px); }
}
.sq-screen.leaving {
    animation: sqFadeOut 0.15s ease forwards;
}

/* ─── Icon ──────────────────────────────────────────────────────────────────── */
.sq-icon {
    font-size: 52px;
    margin-bottom: 16px;
    line-height: 1;
}

/* ─── Typography ────────────────────────────────────────────────────────────── */
#sq-quiz-wrapper h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a2e3d;
    margin-bottom: 12px;
    line-height: 1.3;
}
#sq-quiz-wrapper h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a2e3d;
    margin-bottom: 24px;
    line-height: 1.4;
}
#sq-quiz-wrapper p {
    color: #5a7080;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}
#sq-quiz-wrapper strong { color: #3B7CAF; }

/* ─── Options ───────────────────────────────────────────────────────────────── */
.sq-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.sq-option {
    background: #f4f9fd;
    border: 2px solid #d0e4f2;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #1a2e3d;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}
.sq-option:hover {
    background: #3B7CAF;
    border-color: #3B7CAF;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 124, 175, 0.25);
}
.sq-option:active { transform: translateY(0); }

/* ─── Primary Button ────────────────────────────────────────────────────────── */
.sq-btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #3B7CAF, #2d6090);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    box-shadow: 0 4px 18px rgba(59, 124, 175, 0.3);
    letter-spacing: 0.3px;
}
.sq-btn-primary:hover {
    background: linear-gradient(135deg, #2d6090, #225078);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 124, 175, 0.4);
}
.sq-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ─── Secondary Button ──────────────────────────────────────────────────────── */
.sq-btn-secondary {
    background: transparent;
    color: #3B7CAF;
    border: 2px solid #3B7CAF;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}
.sq-btn-secondary:hover {
    background: #3B7CAF;
    color: #fff;
}

/* ─── Lead Form ─────────────────────────────────────────────────────────────── */
#sq-lead-form h2 { color: #3B7CAF; }

.sq-field {
    text-align: left;
    margin-bottom: 16px;
}
.sq-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3B7CAF;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sq-field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #d0e4f2;
    border-radius: 10px;
    font-size: 15px;
    color: #1a2e3d;
    background: #f4f9fd;
    transition: border-color 0.2s;
    outline: none;
}
.sq-field input:focus {
    border-color: #3B7CAF;
    background: #fff;
}
.sq-field input::placeholder { color: #a0b8cc; }

#sq-form { margin-top: 24px; text-align: left; }
#sq-submit-btn { width: 100%; text-align: center; margin-top: 4px; }

.sq-disclaimer {
    font-size: 12px;
    color: #a0b8cc;
    text-align: center;
    margin-top: 10px !important;
}
.sq-error {
    color: #e03e3e;
    font-size: 13px;
    margin-top: 8px;
    display: none;
    text-align: center;
}

/* ─── Thank You ─────────────────────────────────────────────────────────────── */
#sq-thankyou .sq-tagline {
    font-size: 17px;
    color: #3B7CAF;
    font-weight: 600;
    margin-top: 12px;
}

/* ─── Welcome Screen ────────────────────────────────────────────────────────── */
#sq-welcome { background: linear-gradient(160deg, #f0f7ff 0%, #fff 100%); }
#sq-welcome h2 { color: #3B7CAF; font-size: 28px; }
#sq-welcome p  { font-size: 16px; margin-bottom: 24px; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .sq-screen { padding: 32px 22px; }
    #sq-quiz-wrapper h2 { font-size: 22px; }
    #sq-quiz-wrapper h3 { font-size: 17px; }
    .sq-btn-primary { padding: 14px 24px; font-size: 15px; }
}
