/* ─── HolisticThrive Quiz Widget CSS ─── */

.htq-widget {
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    font-family: 'DM Sans', system-ui, sans-serif;
}

/* Dark style (default — used inside green hero section) */
.htq-style-dark {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Light style (standalone pages) */
.htq-style-light {
    background: #FFFFFF;
    border: 1.5px solid rgba(45, 80, 22, 0.12);
    box-shadow: 0 8px 40px rgba(45, 80, 22, 0.12);
}

/* ── Progress ── */
.htq-progress {
    display: flex;
    gap: 7px;
    margin-bottom: 6px;
}
.htq-dot {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    transition: background 0.35s;
}
.htq-style-light .htq-dot { background: #EDE6D8; }
.htq-dot.active, .htq-dot.done { background: #C4882A; }
.htq-progress-label {
    font-size: 0.72rem;
    color: rgba(247, 243, 236, 0.5);
    margin-bottom: 22px;
    text-align: right;
}
.htq-style-light .htq-progress-label { color: #7A7A6A; }

/* ── Steps ── */
.htq-step { display: none; }
.htq-step.htq-active { display: block; animation: htqFadeIn 0.35s ease; }
@keyframes htqFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Question ── */
.htq-question {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    color: #F7F3EC;
    margin-bottom: 18px;
    line-height: 1.4;
}
.htq-style-light .htq-question { color: #1A1A14; }

/* ── Options ── */
.htq-options { display: flex; flex-direction: column; gap: 10px; }

.htq-option {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(247, 243, 236, 0.84);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.88rem;
    font-family: inherit;
    transition: all 0.25s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 11px;
    position: relative;
    overflow: hidden;
}
.htq-style-light .htq-option {
    background: #F7F3EC;
    border-color: rgba(45, 80, 22, 0.14);
    color: #4A4A3A;
}
.htq-option:hover {
    background: rgba(196, 136, 42, 0.18);
    border-color: rgba(196, 136, 42, 0.45);
    color: #F7F3EC;
    transform: translateX(4px);
}
.htq-style-light .htq-option:hover {
    background: rgba(196, 136, 42, 0.1);
    border-color: rgba(196, 136, 42, 0.4);
    color: #1A1A14;
}
.htq-option.selected {
    background: rgba(196, 136, 42, 0.22);
    border-color: rgba(196, 136, 42, 0.6);
    color: #F7F3EC;
}
.htq-style-light .htq-option.selected {
    background: rgba(45, 80, 22, 0.08);
    border-color: #2D5016;
    color: #1A1A14;
}
.htq-opt-icon { font-size: 18px; flex-shrink: 0; }
.htq-opt-text { flex: 1; }
.htq-opt-check {
    font-size: 0.8rem;
    font-weight: 700;
    color: #C4882A;
    opacity: 0;
    transition: opacity 0.2s;
}
.htq-option.selected .htq-opt-check { opacity: 1; }

/* ── Email Step ── */
.htq-result-preview { text-align: center; margin-bottom: 20px; }
.htq-result-icon { font-size: 44px; margin-bottom: 10px; }
.htq-result-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: #F7F3EC;
    margin-bottom: 7px;
}
.htq-style-light .htq-result-title { color: #1A1A14; }
.htq-result-teaser {
    font-size: 0.83rem;
    color: rgba(247, 243, 236, 0.68);
    line-height: 1.6;
    margin: 0;
}
.htq-style-light .htq-result-teaser { color: #7A7A6A; }

.htq-email-form { display: flex; flex-direction: column; gap: 10px; }
.htq-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #F7F3EC;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.htq-style-light .htq-input {
    background: #F7F3EC;
    border-color: rgba(45, 80, 22, 0.2);
    color: #1A1A14;
}
.htq-input::placeholder { color: rgba(247, 243, 236, 0.42); }
.htq-style-light .htq-input::placeholder { color: #7A7A6A; }
.htq-input:focus { border-color: rgba(196, 136, 42, 0.6); }

.htq-submit-btn {
    background: linear-gradient(135deg, #C4882A, #E8B96A);
    color: #1A1A14;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
    box-shadow: 0 6px 22px rgba(196, 136, 42, 0.38);
}
.htq-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(196, 136, 42, 0.48); }
.htq-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.htq-privacy { font-size: 0.72rem; color: rgba(247, 243, 236, 0.45); text-align: center; margin: 4px 0 0; }
.htq-style-light .htq-privacy { color: #7A7A6A; }

/* ── Confirmation Step ── */
.htq-confirm-step { text-align: center; }
.htq-confirm-header { margin-bottom: 22px; }
.htq-type-icon { font-size: 48px; margin-bottom: 10px; }
.htq-type-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    color: #F7F3EC;
    margin-bottom: 8px;
}
.htq-style-light .htq-type-name { color: #1A1A14; }
.htq-type-desc {
    font-size: 0.83rem;
    color: rgba(247, 243, 236, 0.7);
    line-height: 1.65;
    max-width: 380px;
    margin: 0 auto;
}
.htq-style-light .htq-type-desc { color: #4A4A3A; }

.htq-product-rec {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 18px 0;
    text-align: left;
}
.htq-style-light .htq-product-rec { background: #F7F3EC; border-color: rgba(45,80,22,0.12); }
.htq-rec-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #C4882A; margin-bottom: 6px; }
.htq-rec-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; color: #F7F3EC; margin-bottom: 5px; }
.htq-style-light .htq-rec-name { color: #1A1A14; }
.htq-rec-desc { font-size: 0.8rem; color: rgba(247,243,236,0.65); line-height: 1.6; margin-bottom: 14px; }
.htq-style-light .htq-rec-desc { color: #7A7A6A; }
.htq-rec-cta {
    display: inline-block;
    background: linear-gradient(135deg, #C4882A, #E8B96A);
    color: #1A1A14 !important;
    padding: 11px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(196,136,42,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.htq-rec-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,136,42,0.42); }
.htq-confirm-note { font-size: 0.78rem; color: rgba(247,243,236,0.55); margin-top: 10px; }
.htq-style-light .htq-confirm-note { color: #7A7A6A; }

/* ── Error state ── */
.htq-input.htq-error { border-color: #e05c5c; }
.htq-error-msg { font-size: 0.75rem; color: #ff9494; margin-top: -4px; }
.htq-style-light .htq-error-msg { color: #cc3333; }
