/* ============================================================
   COURSE FEEDBACK PORTAL — STYLESHEET
   Structure:
   1. CSS Variables / Design Tokens
   2. Base / Reset
   3. Accessibility helpers
   4. Header
   5. Hero Section
   6. Welcome Card (glassmorphism)
   7. Progress Bar
   8. Panel Cards (Student Info / Instructions / Suggestions)
   9. Section headings
   10. Question Cards + Rating Pills
   11. Choice options (radio replacement)
   12. Sticky Submit Footer
   13. Footer
   14. Back to top
   15. Success Modal
   16. Animations
   17. Responsive
   ============================================================ */

/* ---------------------------------------------------------
   1. CSS VARIABLES / DESIGN TOKENS
--------------------------------------------------------- */
:root {
    --primary: #0F4C81;
    --secondary: #2A6FD6;
    --accent: #4E8EF7;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
  
    --bg: #F4F7FB;
    --card-bg: #FFFFFF;
    --text: #333333;
    --text-light: #6C757D;
    --border: #E5E7EB;
  
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--secondary), var(--accent));
  
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 999px;
  
    --shadow-soft: 0 8px 24px rgba(15, 76, 129, 0.08);
    --shadow-md: 0 12px 32px rgba(15, 76, 129, 0.12);
    --shadow-lg: 0 20px 48px rgba(15, 76, 129, 0.18);
  
    --header-height: 80px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  /* ---------------------------------------------------------
     2. BASE / RESET
  --------------------------------------------------------- */
  * { box-sizing: border-box; }
  
  html { scroll-behavior: smooth; }
  
  body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #F8FBFF, #EEF5FF);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
  }

  #main-content { flex: 1 0 auto; }
  
  h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 700; margin: 0; }
  p { margin: 0; }
  
  a { text-decoration: none; }
  
  button { font-family: 'Poppins', sans-serif; }
  
  /* ---------------------------------------------------------
     3. ACCESSIBILITY HELPERS
  --------------------------------------------------------- */
  .skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 8px 0;
    z-index: 2000;
  }
  .skip-link:focus {
    left: 0;
  }
  
  :focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
  }
  
  .required-dot {
    color: var(--danger);
    font-weight: 700;
  }
  
  /* ---------------------------------------------------------
     4. HEADER
  --------------------------------------------------------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    box-shadow: 0 6px 24px rgba(15, 76, 129, 0.25);
  }
  
  .site-header .container-fluid { width: 100%; }
  
  .header-inner { height: var(--header-height); }
  
  .header-logo {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
  }
  
  .header-company {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
  }
  
  .header-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.3px;
  }
  
  .header-meta {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    padding: 6px 8px;
    backdrop-filter: blur(6px);
  }
  
  .meta-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 10px;
    white-space: nowrap;
  }
  .meta-chip i { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }
  
  .header-meta-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 4px 16px;
  }
  .header-meta-mobile .meta-chip {
    background: rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
  }
  
  .header-icon-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .logout-btn {
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-pill);
    padding: 9px 18px;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
  .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  }
  
  /* ---------------------------------------------------------
     5. HERO SECTION
  --------------------------------------------------------- */
  .hero-section {
    position: relative;
    padding: 64px 0 96px;
    overflow: hidden;
  }
  
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
  }
  
  .hero-title {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.12;
    margin-bottom: 20px;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
    max-width: 480px;
  }
  
  .hero-note {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 460px;
    line-height: 1.6;
  }
  
  .btn-hero-primary {
    background: var(--gradient-accent);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 13px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(78, 142, 247, 0.35);
    transition: var(--transition-base);
    animation: gradientShift 6s ease infinite;
  }
  .btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(78, 142, 247, 0.45);
    color: #fff;
  }
  
  .btn-hero-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 11px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
  }
  .btn-hero-secondary:hover {
    border-color: var(--accent);
    background: #fff;
    color: var(--secondary);
  }
  
  .hero-illustration {
    max-width: 480px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 20px 40px rgba(15, 76, 129, 0.15));
    animation: floatY 5s ease-in-out infinite;
  }
  
  /* ---------------------------------------------------------
     6. WELCOME CARD (Glassmorphism)
  --------------------------------------------------------- */
  .content-shift { margin-top: -56px; position: relative; z-index: 2; }
  
  .welcome-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
  }
  
  .welcome-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
  }
  
  .wave-icon { color: var(--warning); display: inline-block; animation: wave 2.2s ease-in-out infinite; transform-origin: 70% 70%; }
  
  .welcome-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .stat-pill {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    transition: var(--transition-fast);
  }
  .stat-pill:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
  .stat-pill i { font-size: 1.3rem; color: var(--secondary); }
  .stat-value { font-weight: 700; font-size: 1.05rem; color: var(--primary); line-height: 1.1; }
  .stat-label { font-size: 0.72rem; color: var(--text-light); }
  
  /* ---------------------------------------------------------
     7. PROGRESS BAR
  --------------------------------------------------------- */
  .progress-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
  }
  
  .progress-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .progress-percent {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
  }
  
  .custom-progress {
    height: 10px;
    border-radius: var(--radius-pill);
    background: #EDF2FA;
    overflow: hidden;
  }
  
  .custom-progress .progress-bar {
    background: var(--gradient-accent);
    border-radius: var(--radius-pill);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  /* ---------------------------------------------------------
     8. PANEL CARDS
  --------------------------------------------------------- */
  .panel-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
  }
  .panel-card:hover { box-shadow: var(--shadow-md); }
  
  .panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
  }
  
  .panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
  }
  .panel-icon-warning { background: linear-gradient(135deg, #FFC107, #FF9F1C); }
  .panel-icon-accent { background: linear-gradient(135deg, var(--accent), var(--secondary)); }
  
  .panel-title { font-size: 1.15rem; color: var(--primary); }
  .panel-subtitle { font-size: 0.85rem; color: var(--text-light); margin-top: 2px; }
  
  .panel-body { padding: 26px 28px 30px; }
  
  .modern-input {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    font-size: 0.92rem;
    color: var(--text);
    background: #FBFDFF;
    transition: var(--transition-fast);
  }
  .modern-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(78, 142, 247, 0.15);
    background: #fff;
  }
  .modern-input[readonly] {
    background: #F4F7FB;
    color: var(--text-light);
    cursor: default;
  }
  
  .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
  }
  
  .instructions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
  }
  .instructions-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.93rem;
    color: var(--text);
  }
  .instructions-list li i {
    color: var(--success);
    font-size: 1.05rem;
    margin-top: 2px;
    flex-shrink: 0;
  }
  
  .char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
  }
  
  /* ---------------------------------------------------------
     9. SECTION HEADINGS
  --------------------------------------------------------- */
  .section-heading {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 40px 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .section-heading i { color: var(--accent); }
  
  .section-caption {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 18px;
  }
  
  .module-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
  }
  
  .mini-comment {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-soft);
  }
  
  /* ---------------------------------------------------------
     10. QUESTION CARDS + RATING PILLS
  --------------------------------------------------------- */
  .question-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 18px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1.5px solid transparent;
  }
  .question-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
  .question-card.compact { padding: 20px 22px; }
  
  .question-card.is-invalid {
    border-color: var(--danger);
    animation: shake 0.4s ease;
  }
  
  .question-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
  }
  
  .question-number {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(15, 76, 129, 0.3);
  }
  
  .question-text {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
    margin-bottom: 2px;
  }
  
  .question-hint {
    font-size: 0.82rem;
    color: var(--text-light);
  }
  
  .rating-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .rating-pill {
    flex: 1 1 auto;
    min-width: 110px;
    background: #F4F7FB;
    border: 1.5px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  }
  .rating-pill:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }
  .rating-pill:active { transform: translateY(0) scale(0.97); }
  
  /* Semantic color coding when selected — signature detail */
  .rating-pill.selected {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(15, 76, 129, 0.25);
    animation: pillPop 0.28s ease;
  }
  .rating-pill[data-value="5"].selected { background: linear-gradient(135deg, #1E9E52, var(--success)); }
  .rating-pill[data-value="4"].selected { background: linear-gradient(135deg, #2A6FD6, #3FA6E0); }
  .rating-pill[data-value="3"].selected { background: var(--gradient-accent); }
  .rating-pill[data-value="2"].selected { background: linear-gradient(135deg, #FFB300, var(--warning)); color: #4A3800; }
  .rating-pill[data-value="1"].selected { background: linear-gradient(135deg, #E4534B, var(--danger)); }

  .likert-scale { width: 100%; }

  .likert-options {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .likert-pill {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
  }

  .likert-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
  }

  .likert-pill:has(input:checked) {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(15, 76, 129, 0.25);
    animation: pillPop 0.28s ease;
  }

  .likert-pill[data-value="5"]:has(input:checked) { background: linear-gradient(135deg, #1E9E52, var(--success)); }
  .likert-pill[data-value="4"]:has(input:checked) { background: linear-gradient(135deg, #2A6FD6, #3FA6E0); }
  .likert-pill[data-value="3"]:has(input:checked) { background: var(--gradient-accent); }
  .likert-pill[data-value="2"]:has(input:checked) { background: linear-gradient(135deg, #FFB300, var(--warning)); color: #4A3800; }
  .likert-pill[data-value="1"]:has(input:checked) { background: linear-gradient(135deg, #E4534B, var(--danger)); color: #fff; }

  .likert-labels {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 8px;
    margin-top: 10px;
    padding: 0 4px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    line-height: 1.35;
  }
  
  /* ---------------------------------------------------------
     11. CHOICE OPTIONS (custom radio replacement)
  --------------------------------------------------------- */
  .choice-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .choice-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #F9FBFE;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition-fast);
  }
  .choice-option:hover { border-color: var(--accent); background: #F2F7FF; }
  
  .choice-option input { position: absolute; opacity: 0; width: 0; height: 0; }
  
  .choice-radio {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    margin-top: 1px;
    position: relative;
    transition: var(--transition-fast);
  }
  .choice-option input:checked ~ .choice-radio {
    border-color: var(--secondary);
  }
  .choice-option input:checked ~ .choice-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--gradient-accent);
    animation: pillPop 0.25s ease;
  }
  .choice-option:has(input:checked) {
    border-color: var(--secondary);
    background: #EEF5FF;
    box-shadow: 0 4px 14px rgba(42, 111, 214, 0.12);
  }
  
  /* ---------------------------------------------------------
     12. STICKY SUBMIT FOOTER
  --------------------------------------------------------- */
  .sticky-submit-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 16px 0;
    z-index: 1020;
    box-shadow: 0 -8px 24px rgba(15, 76, 129, 0.08);
  }
  
  .sticky-progress-text {
    font-size: 0.82rem;
    color: var(--text-light);
  }
  .sticky-progress-text i { color: var(--success); }
  
  .btn-save-draft {
    background: #fff;
    color: var(--text-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 12px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
  }
  .btn-save-draft:hover { border-color: var(--secondary); color: var(--secondary); }
  
  .btn-submit-feedback {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(78, 142, 247, 0.35);
    transition: var(--transition-base);
    min-width: 190px;
    justify-content: center;
  }
  .btn-submit-feedback:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(78, 142, 247, 0.45);
  }
  .btn-submit-feedback:disabled { opacity: 0.85; cursor: progress; }

  .btn-skip-feedback {
    background: #fff;
    color: var(--text-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 12px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    white-space: nowrap;
  }
  .btn-skip-feedback:hover:not(:disabled) {
    border-color: var(--text-light);
    color: var(--text);
  }
  .btn-skip-feedback:disabled { opacity: 0.6; cursor: not-allowed; }
  
  /* ---------------------------------------------------------
     13. FOOTER
  --------------------------------------------------------- */
  .site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    margin-bottom: 74px; /* clears sticky submit bar */
  }
  .footer-copy { font-size: 0.85rem; color: var(--text-light); }
  .footer-links a {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition-fast);
  }
  .footer-links a:hover { color: var(--secondary); }
  .footer-dot { color: var(--border); margin: 0 8px; }
  
  /* ---------------------------------------------------------
     14. BACK TO TOP
  --------------------------------------------------------- */
  .back-to-top {
    position: fixed;
    right: 24px;
    bottom: 96px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition-base);
    z-index: 1015;
  }
  .back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
  .back-to-top:hover { transform: translateY(-4px); }
  
  /* ---------------------------------------------------------
     15. SUCCESS MODAL
  --------------------------------------------------------- */
  .success-modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
  
  .success-icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E9E52, var(--success));
    color: #fff;
    font-size: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 12px 28px rgba(40, 167, 69, 0.35);
    animation: pillPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .success-title { color: var(--primary); font-size: 1.5rem; margin-bottom: 10px; }
  .success-text { color: var(--text-light); font-size: 0.95rem; max-width: 380px; margin: 0 auto; }
  
  .btn-download-receipt {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 11px 22px;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-download-receipt:hover { color: #fff; transform: translateY(-2px); }
  
  .btn-close-modal {
    background: #fff;
    border: 1.5px solid var(--border);
    color: var(--text-light);
    border-radius: var(--radius-pill);
    padding: 11px 22px;
    font-weight: 600;
    font-size: 0.88rem;
  }
  
  /* ---------------------------------------------------------
     VALIDATION ALERT
  --------------------------------------------------------- */
  .validation-alert {
    background: #FFF4F4;
    border: 1.5px solid var(--danger);
    color: #A32734;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.35s ease;
  }

  .access-gate {
    padding: 48px 0 72px;
  }

  .access-gate-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #f5c2c7;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 32px 28px;
    text-align: center;
    color: #842029;
  }

  .access-gate-card i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
  }

  .access-gate-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .access-gate-card p {
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .access-gate-example code {
    background: #f8f9fa;
    color: #333;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    word-break: break-all;
  }
  
  /* ---------------------------------------------------------
     16. ANIMATIONS
  --------------------------------------------------------- */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .fade-up {
    animation: fadeInUp 0.6s ease both;
  }
  .fade-up.delay-1 { animation-delay: 0.12s; }
  
  @keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
  }
  
  @keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-8deg); }
    45% { transform: rotate(14deg); }
    60% { transform: rotate(0deg); }
  }
  
  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  @keyframes pillPop {
    0% { transform: scale(0.85); }
    60% { transform: scale(1.06); }
    100% { transform: scale(1); }
  }
  
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
  }
  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
  }
  
  /* ---------------------------------------------------------
     17. RESPONSIVE
  --------------------------------------------------------- */
  @media (max-width: 991.98px) {
    .hero-section { padding: 40px 0 72px; text-align: center; }
    .hero-subtitle, .hero-note { margin-left: auto; margin-right: auto; }
    .hero-illustration { max-width: 340px; margin-top: 24px; }
    .content-shift { margin-top: -48px; }
  }
  
  @media (max-width: 767.98px) {
    :root { --header-height: 70px; }
    .header-company { font-size: 0.92rem; }
    .header-subtitle { font-size: 0.7rem; }
    .welcome-card { padding: 24px 18px; text-align: center; }
    .panel-header { padding: 20px; flex-direction: row; }
    .panel-body { padding: 20px; }
    .rating-pill { min-width: 90px; font-size: 0.78rem; padding: 9px 10px; }
    .likert-options .rating-pill { min-width: 0; }
    .likert-labels { font-size: 0.65rem; }
    .sticky-submit-bar { padding: 12px 0; }
    .btn-submit-feedback, .btn-save-draft, .btn-skip-feedback { flex: 1; }
    .site-footer { text-align: center; }
  }
  
  @media (max-width: 575.98px) {
    .hero-title { font-size: 2rem; }
    .rating-group { gap: 8px; }
    .rating-pill { min-width: 44%; }
    .likert-options { flex-wrap: nowrap; }
    .likert-options .rating-pill { min-width: 0; flex: 1 1 0; }
    .likert-labels { font-size: 0.6rem; gap: 4px; }
    .question-card { padding: 18px; }
  }
