/* =============================================================
   HongerWijzer Quiz — quiz-styles.css
   Loaded via wp_enqueue_style() when the shortcode is present.
   Design: yellow header card, teal page background, progress below
   ============================================================= */

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

.htq-wrap {
    --htq-bg:                 #639e98;
    --htq-bg-light:           #f3f3f3;
    --htq-surface:            #ffffff;
    --htq-header:             #e39e10;
    --htq-header-text:        #ffffff;
    --htq-accent:             #639e98;
    --htq-accent-dark:        #396865;
    --htq-accent-light:       #dbece9;
    --htq-button:             #f5a623;
    --htq-button-dark:        #e09010;
    --htq-button-text:        #3a2000;
    --htq-text:               #2b2b2b;
    --htq-muted:              #7a6f65;
    --htq-border:             #d2d7da;
    --htq-success:            #2e6b45;
    --htq-success-bg:         #e4f2ea;

    font-family: 'Ubuntu',Helvetica,Arial,Lucida,sans-serif;
    font-weight: 400;
    font-size: 16px;
    background-color: var(--htq-bg);
    color: var(--htq-text);
    padding: 7.5rem 1rem 7.5rem;
    min-height: 100vh;
}

.htq-inner {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

/* ================================================================
   CARD SHELL — yellow header + white body, used on every step
   ================================================================ */

.htq-shell {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
}

.htq-icon {
   position: absolute;
   top: 30px;
   right: 30px;
   width: 120px;
   height: auto;
   z-index: 99;
}

.htq-shell-header {
    background: var(--htq-header);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.htq-shell-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--htq-header-text);
    letter-spacing: -0.01em;
    line-height: 1;
    margin-bottom: -5px;
}

.htq-shell-body {
    background: var(--htq-surface);
    padding: 2.25rem 2.25rem 2rem;
}

/* ================================================================
   PROGRESS BAR — sits BELOW the card
   ================================================================ */

.htq-progress-wrap {
    margin-top: 1rem;
    padding: 0 0.25rem;
}

.htq-progress-track {
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 12px;
    overflow: hidden;
}

.htq-progress-fill {
    height: 100%;
    background: var(--htq-button);
    border-radius: 12px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.htq-progress-label {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
}

/* ================================================================
   INTRO SCREEN
   ================================================================ */

.htq-intro-hero-text {
    margin-bottom: 0; /* header padding handles spacing */
    padding: 2rem;
    background: var(--htq-bg-light);
}

.htq-intro-hero-text h2 {
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0.5rem;
}

.htq-intro-hero-text p.htq-intro-tagline {
    font-size: 16px;
    margin-bottom: 0.5rem;
    max-width: 400px;
}

.htq-intro-hero-text h2 em {
    font-style: italic;
}

.htq-intro-hero-text p.htq-intro-sub {
    font-size: 16px;
    margin-top: 0.5rem;
}

.htq-intro-steps-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--htq-accent);
    margin-bottom: 1rem;
}

.htq-intro-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.75rem;
}

.htq-intro-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.htq-intro-step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--htq-button);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.htq-intro-step-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--htq-text);
    padding-top: 4px;
}

.htq-intro-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--htq-muted);
    padding: 12px 16px;
    background: #f5f6f7;
    border-radius: 10px;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.htq-intro-meta svg { min-width: 18px; opacity: 0.55; }

.htq-intro-cta-wrap { text-align: center; }

.htq-intro-cta {
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
}

/* ================================================================
   STEP LABEL & QUESTION
   ================================================================ */

.htq-step-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--htq-accent);
    margin-bottom: 0.5rem;
}

.htq-question-title {
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: var(--htq-text);
}

.htq-question-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--htq-muted);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--htq-accent-light);
    padding-left: 1rem;
}

.htq-question-desc p { margin-bottom: 0.4rem; }
.htq-question-desc p:last-child { margin-bottom: 0; }

/* ================================================================
   OPTIONS
   ================================================================ */

.htq-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 1.75rem;
}

.htq-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 1.5px solid var(--htq-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 15px;
    color: var(--htq-text);
    width: 100%;
}

.htq-option:hover {
    border-color: var(--htq-accent);
    background: var(--htq-accent-light);
}

.htq-option.htq-selected {
    border-color: var(--htq-accent);
    background: var(--htq-accent-light);
}

/* Radio dot */
.htq-dot {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--htq-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.htq-option.htq-selected .htq-dot {
    border-color: var(--htq-accent);
    background: var(--htq-accent);
}

.htq-option.htq-selected .htq-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

/* Checkbox */
.htq-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 5px;
    border: 1.5px solid var(--htq-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.htq-option.htq-selected .htq-check {
    border-color: var(--htq-accent);
    background: var(--htq-accent);
}

.htq-option.htq-selected .htq-check::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
    display: block;
}

/* ================================================================
   ACTIONS ROW
   ================================================================ */

.htq-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.htq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s, transform 0.1s;
    border: none;
    text-decoration: none;
    line-height: 1;
}

.htq-btn-primary {
    background: var(--htq-button);
    color: var(--htq-button-text);
}

.htq-btn-primary:hover:not(:disabled) { background: var(--htq-button-dark); }
.htq-btn-primary:active:not(:disabled) { transform: scale(0.98); }
.htq-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.htq-btn-ghost {
    background: transparent;
    color: var(--htq-muted);
    border: 1.5px solid var(--htq-border);
}

.htq-btn-ghost:hover { background: #f0f0f0; color: var(--htq-text); }

/* ================================================================
   VALIDATION MESSAGE
   ================================================================ */

.htq-validation {
    font-size: 13px;
    color: #c0392b;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* ================================================================
   EMAIL STEP
   ================================================================ */

.htq-email-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--htq-muted);
    margin-bottom: 8px;
}

.htq-email-input {
    width: 100%;
    padding: 13px 16px !important;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid var(--htq-border);
    border-radius: 10px;
    background: #f8f9fa;
    color: var(--htq-text);
    outline: none;
    transition: border-color 0.15s;
    margin-bottom: 0.5rem;
}

.htq-email-input:focus { border-color: var(--htq-accent); }
.htq-email-input.htq-invalid { border-color: #c0392b; }

.htq-email-privacy {
    font-size: 12px;
    color: var(--htq-muted);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.htq-email-privacy svg { min-width: 14px; margin-top: 2px; }

/* ================================================================
   EARLY EXIT
   ================================================================ */

.htq-exit-body {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.htq-exit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--htq-success-bg);
    color: var(--htq-success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 26px;
    font-weight: 700;
}

.htq-exit-badge {
    display: inline-block;
    background: var(--htq-success-bg);
    color: var(--htq-success);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.htq-exit-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--htq-text);
}

.htq-exit-body p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--htq-muted);
    max-width: 380px;
    margin: 0 auto 2rem;
}

/* ================================================================
   RESULT SCREEN
   ================================================================ */

/* Result uses a different header color — still teal not yellow */
.htq-result-intro {
    font-size: 16px;
    /* color: var(--htq-muted); */
    margin-bottom: 1.25rem;
}

.htq-result-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5rem;
    /* padding-bottom: 1.25rem; */
    /* border-bottom: 1px solid var(--htq-border); */
}

.htq-result-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    object-fit: cover;
    flex-shrink: 0;
}

.htq-result-dominant-name {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--htq-text);
    margin-bottom: 3px;
}

.htq-result-dominant-label {
    font-size: 16px;
    color: var(--htq-muted);
}

.htq-result-dominant-desc {
    font-size: 16px;
    line-height: 1.7;
    /* color: var(--htq-muted); */
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem !important;
    border-bottom: 1px solid var(--htq-border);
}

/* All types list */
.htq-result-all-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--htq-accent);
    margin-bottom: 1rem;
}

.htq-type-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    /* border-bottom: 1px solid #f0f0f0; */
}

.htq-type-row:last-of-type { border-bottom: none; }

.htq-type-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.htq-type-meta {
    flex: 1;
    min-width: 0;
}

.htq-type-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.htq-type-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--htq-text);
}

.htq-type-score-label {
    font-size: 12px;
    color: var(--htq-muted);
}

.htq-score-track {
    height: 7px;
    background: #eef0f1;
    border-radius: 4px;
    overflow: hidden;
}

.htq-score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.htq-result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--htq-border);
}

/* ================================================================
   FADE ANIMATION
   ================================================================ */

.htq-fade {
    animation: htqFadeIn 0.22s ease;
}

@keyframes htqFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   ALPINE CLOAK
   ================================================================ */

[x-cloak] { display: none !important; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 820px) {
     .htq-icon {top: 15px; right: 15px; width: 56px;}
}

@media (max-width: 520px) {
    .htq-wrap { padding: 1.25rem 0.75rem 4rem; }

    .htq-shell-body { padding: 1.5rem 1.25rem 1.25rem; }
    .htq-shell-header,
    .htq-shell-header--intro { padding-left: 1.25rem; padding-right: 1.25rem; }

    .htq-question-title { font-size: 1.25rem; }

    .htq-actions { flex-direction: column-reverse; }
    .htq-btn     { width: 100%; justify-content: center; }

    .htq-result-actions { flex-direction: column; }
    .htq-result-actions .htq-btn { width: 100%; }
    
}