/* Extracted from quiz.html — styles for the "أي فحص يناسبني؟" template. */

/* ======================================================================
   أداة "شو الفحص المناسب إلك؟" — أنماط خاصة بالأداة فقط.
   تم إعادة ضبط ألوانها وخطها لتطابق هوية الموقع (Almarai + لوحة الألوان).
   ====================================================================== */

  /* ===== Design tokens (shared palette across TechCare interactive tools) ===== */
  :root {
    --navy: #133A5E;
    --teal: #0F8B85;
    --bg-light: #E3F1FA;
    --bg-gray: #F2F2F2;
    --border-gray: #DDE7EE;
    --text: #1B2B38;
    --muted: #5C7183;
  }

  * {
    box-sizing: border-box;
  }



  /* ===== Full page shell (not an embedded widget card) ===== */


  .eqp-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px 20px;
  }

  .eqp-hero {
    text-align: center;
    margin-bottom: 26px;
  }

  .eqp-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--teal);
    text-transform: uppercase;
    margin: 0 0 8px;
  }

  .eqp-hero h1 {
    font-size: clamp(24px, 5.5vw, 32px);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
    line-height: 1.35;
  }

  .eqp-hero p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
    max-width: 480px;
    margin-inline: auto;
  }

  /* ===== Quiz widget (unchanged logic/markup from the embeddable version) ===== */
  #eeq-widget-root {
    font-family: 'Almarai', system-ui, sans-serif;
    direction: rtl;
    color: var(--text);
    max-width: 560px;
    margin: 0 auto;
  }

  #eeq-widget-root .eeq-card {
    background: #ffffff;
    border: 1px solid var(--border-gray);
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 4px 18px rgba(31, 56, 100, 0.1);
    min-height: 380px;
    display: flex;
    flex-direction: column;
  }

  #eeq-widget-root .eeq-title {
    font-size: clamp(19px, 5vw, 24px);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px;
  }

  #eeq-widget-root .eeq-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 16px;
  }

  #eeq-widget-root .eeq-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  #eeq-widget-root .eeq-progress-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
  }

  #eeq-widget-root .eeq-back-link {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--teal);
    cursor: pointer;
    padding: 8px 4px;
    min-height: 44px;
  }

  #eeq-widget-root .eeq-back-link:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
  }

  #eeq-widget-root .eeq-progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg-gray);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  #eeq-widget-root .eeq-progress-fill {
    height: 100%;
    background: var(--teal);
    border-radius: 999px;
    transition: width 0.3s ease;
  }

  #eeq-widget-root .eeq-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }

  #eeq-widget-root .eeq-question {
    font-size: clamp(16px, 4.5vw, 18px);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
    line-height: 1.5;
  }

  #eeq-widget-root .eeq-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #eeq-widget-root .eeq-option {
    min-height: 48px;
    text-align: right;
    padding: 12px 14px;
    border: 1.5px solid var(--border-gray);
    background: var(--bg-gray);
    color: var(--text);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    line-height: 1.5;
  }

  #eeq-widget-root .eeq-option:hover {
    border-color: var(--teal);
    background: var(--bg-light);
  }

  #eeq-widget-root .eeq-option.eeq-selected {
    background: var(--navy);
    border-color: var(--navy);
    color: #ffffff;
  }

  #eeq-widget-root .eeq-option:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
  }

  /* Loading state between last answer and result */
  #eeq-widget-root .eeq-loading {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px 0;
  }

  #eeq-widget-root .eeq-spinner {
    width: 38px;
    height: 38px;
    border: 4px solid var(--bg-gray);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: eeq-spin 0.8s linear infinite;
  }

  @keyframes eeq-spin {
    to { transform: rotate(360deg); }
  }

  #eeq-widget-root .eeq-loading-text {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
  }

  /* Result screen */
  #eeq-widget-root .eeq-result {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px);
    animation: eeq-fade-in 0.4s ease forwards;
  }

  @keyframes eeq-fade-in {
    to { opacity: 1; transform: translateY(0); }
  }

  #eeq-widget-root .eeq-result-eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin: 0 0 2px;
  }

  #eeq-widget-root .eeq-result-title {
    font-size: clamp(19px, 5.5vw, 23px);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 14px;
    line-height: 1.4;
  }

  #eeq-widget-root .eeq-result-block {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
  }

  #eeq-widget-root .eeq-result-block p {
    margin: 0 0 8px;
    font-size: 14.5px;
    line-height: 1.7;
  }

  #eeq-widget-root .eeq-result-block p:last-child {
    margin-bottom: 0;
  }

  #eeq-widget-root .eeq-result-block strong {
    color: var(--teal);
  }

  #eeq-widget-root .eeq-disclaimer {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 16px;
    line-height: 1.6;
  }

  #eeq-widget-root .eeq-cta-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
  }

  #eeq-widget-root .eeq-cta-btn {
    display: block;
    min-height: 46px;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
  }

  #eeq-widget-root .eeq-cta-primary {
    background: var(--navy);
    color: #ffffff;
  }

  #eeq-widget-root .eeq-cta-primary:hover {
    background: #16294d;
  }

  #eeq-widget-root .eeq-cta-primary:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
  }

  #eeq-widget-root .eeq-cta-secondary {
    background: #ffffff;
    color: var(--teal);
    border: 1.5px solid var(--teal);
  }

  #eeq-widget-root .eeq-cta-secondary:hover {
    background: var(--bg-light);
  }

  #eeq-widget-root .eeq-cta-secondary:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
  }

  #eeq-widget-root .eeq-reset-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: underline;
    cursor: pointer;
    padding: 10px 4px;
    min-height: 44px;
    align-self: center;
  }

  #eeq-widget-root .eeq-reset-btn:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
  }

  #eeq-widget-root .eeq-footer {
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
  }

  @media (max-width: 360px) {
    .eqp-page {
      padding: 28px 12px 40px;
    }
    #eeq-widget-root .eeq-card {
      padding: 16px 12px;
    }
  }

  /* ربط الأداة بغلاف الموقع */
  #eeq-widget-root { max-width: 100%; }
  .quiz-shell { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem); background: var(--bg-alt); }
