/* Suitability Check Quiz — styles
   High-specificity selectors + !important used deliberately so theme
   button/link hover styles (color:#fff on hover is common) can never
   override this component's colors. */

html body .wsq-card {
    --wsq-teal: #0e5e52;
    --wsq-teal-d: #0a4a40;
    --wsq-gold: #d6a13c;
    --wsq-ink: #16241f;
    --wsq-ink2: #1f2f2a;
    --wsq-line: #e6e9e7;
    --wsq-soft: #f3f7f5;
    --wsq-soft2: #e9efec;

    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--wsq-line);
    background: #fff;
    box-shadow: 0 10px 30px rgba(14, 94, 82, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
    isolation: isolate;
}
html body .wsq-card *, html body .wsq-card *::before, html body .wsq-card *::after {
    box-sizing: border-box;
}

/* Full reset of theme's default button/input chrome inside this widget */
html body .wsq-card button {
    all: unset;
    box-sizing: border-box;
    font-family: inherit;
    cursor: pointer;
}

.wsq-header {
    background: linear-gradient(135deg, var(--wsq-teal-d), var(--wsq-teal));
    color: #fff !important;
    padding: 26px 32px;
}
.wsq-header h3 {
    margin: 0 0 4px;
    color: #fff !important;
    font-size: 1.6rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
}
.wsq-header p {
    margin: 0;
    font-size: 0.95rem;
    color: #cdeae3 !important;
}

.wsq-progress-track { height: 6px; background: var(--wsq-soft2); }
.wsq-progress-fill { height: 100%; background: var(--wsq-gold); transition: width 0.3s ease; }

.wsq-body { padding: 34px 32px; }

.wsq-step-label {
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wsq-teal) !important;
}
.wsq-question {
    margin: 0 0 20px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--wsq-ink) !important;
}

.wsq-options { display: grid; gap: 12px; }

/* ---------- Option cards: every state pinned, no inherited white text ---------- */
html body div.wsq-card button.wsq-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border-radius: 13px;
    border: 1.6px solid var(--wsq-line);
    background-color: #ffffff !important;
    padding: 16px 18px;
    text-align: left;
    font-weight: 700;
    color: var(--wsq-ink2) !important;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    font-size: 1rem;
}
html body div.wsq-card button.wsq-option span,
html body div.wsq-card button.wsq-option .wsq-option-text {
    color: var(--wsq-ink2) !important;
}
html body div.wsq-card button.wsq-option:hover,
html body div.wsq-card button.wsq-option:focus,
html body div.wsq-card button.wsq-option:focus-visible,
html body div.wsq-card button.wsq-option:active {
    border-color: var(--wsq-teal) !important;
    background-color: var(--wsq-soft) !important;
    color: var(--wsq-ink2) !important;
    outline: none;
}
html body div.wsq-card button.wsq-option:hover span,
html body div.wsq-card button.wsq-option:focus span {
    color: var(--wsq-ink2) !important;
}
html body div.wsq-card button.wsq-option.is-selected {
    border-color: var(--wsq-teal) !important;
    background-color: var(--wsq-soft) !important;
    color: var(--wsq-ink2) !important;
}

.wsq-radio {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--wsq-line);
    position: relative;
    background: transparent !important;
}
html body div.wsq-card button.wsq-option:hover .wsq-radio {
    border-color: var(--wsq-teal) !important;
}
html body div.wsq-card button.wsq-option.is-selected .wsq-radio {
    border-color: var(--wsq-teal) !important;
}
html body div.wsq-card button.wsq-option.is-selected .wsq-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--wsq-teal) !important;
}

/* ---------- Nav buttons ---------- */
.wsq-nav {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
html body div.wsq-card .wsq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    border-radius: 999px;
    border: 1.6px solid transparent;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    padding: 15px 28px;
    font-size: 1rem;
    transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
}
html body div.wsq-card .wsq-btn:hover { transform: translateY(-1px); }

html body div.wsq-card .wsq-btn-back {
    background-color: transparent !important;
    color: var(--wsq-teal) !important;
    border-color: var(--wsq-line) !important;
}
html body div.wsq-card .wsq-btn-back:hover,
html body div.wsq-card .wsq-btn-back:focus {
    border-color: var(--wsq-teal) !important;
    background-color: var(--wsq-soft) !important;
    color: var(--wsq-teal) !important;
}
.wsq-btn-back.is-hidden { visibility: hidden; }

html body div.wsq-card .wsq-btn-continue {
    background-color: var(--wsq-teal) !important;
    color: #fff !important;
    border-color: var(--wsq-teal) !important;
}
html body div.wsq-card .wsq-btn-continue:hover,
html body div.wsq-card .wsq-btn-continue:focus {
    background-color: var(--wsq-teal-d) !important;
    border-color: var(--wsq-teal-d) !important;
    color: #fff !important;
}
html body div.wsq-card .wsq-btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Results step ---------- */
.wsq-results-step { text-align: center; }
.wsq-check-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--wsq-soft) !important;
    color: var(--wsq-teal) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wsq-results-heading {
    margin: 0 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--wsq-ink) !important;
}
.wsq-results-desc {
    margin: 0 0 22px;
    color: #4b5b55 !important;
    line-height: 1.6;
    font-size: 0.98rem;
}
.wsq-answers-box {
    text-align: left;
    background: var(--wsq-soft) !important;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
}
.wsq-answers-title { font-weight: 800; margin-bottom: 8px; color: var(--wsq-ink) !important; }
.wsq-answer-row { color: var(--wsq-ink2) !important; font-size: 0.95rem; line-height: 1.7; }

html body div.wsq-card a.wsq-btn-book {
    background-color: var(--wsq-gold) !important;
    color: var(--wsq-ink) !important;
    border-color: var(--wsq-gold) !important;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}
html body div.wsq-card a.wsq-btn-book:hover,
html body div.wsq-card a.wsq-btn-book:focus {
    background-color: #c08f30 !important;
    border-color: #c08f30 !important;
    color: var(--wsq-ink) !important;
}
.wsq-disclaimer { margin: 18px 0 0; font-size: 0.8rem; color: #8a9a94 !important; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .wsq-header { padding: 20px 20px; }
    .wsq-header h3 { font-size: 1.3rem; }
    .wsq-body { padding: 24px 20px; }
    .wsq-question { font-size: 1.2rem; }
    html body div.wsq-card button.wsq-option { padding: 14px; font-size: 0.95rem; }
    .wsq-nav { flex-direction: column-reverse; }
    html body div.wsq-card .wsq-btn { width: 100%; }
    .wsq-btn-back.is-hidden { display: none; }
    .wsq-results-heading { font-size: 1.3rem; }
}
