/* Page-specific styles for horticulture-awards-program.html */
  #hap-root {
    --deep: #0B3B4C;
    --deep-2: #0F4C5C;
    --teal: #2C9C93;
    --teal-dark: #1F7A73;
    --leaf: #5C8A2E;
    --leaf-dark: #4A7A22;
    --coral: #E8734A;
    --coral-dark: #B5551E;
    --sand: #F6F1E6;
    --sand-line: #E1D8C4;
    --ink: #16323A;
    --ink-soft: #4B6169;
    --paper: #FFFFFF;
    --radius: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
  }
  #hap-root *{ box-sizing: border-box; }
  #hap-root a { color: var(--teal-dark); }
  #hap-root h2, #hap-root h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; color: var(--deep); }
  #hap-root .hap-inner { max-width: 1160px; margin: 0 auto; padding-left: 36px; padding-right: 36px; }
  #hap-root section { padding: 46px 0; border-bottom: 1px solid var(--sand-line); scroll-margin-top: 164px; }
  #hap-root section:last-of-type { border-bottom: none; }

  /* ---------- Hero ---------- */
  #hap-root .hap-hero {
    position: relative; overflow: hidden;
    background-color: #0D1026;
    background-image:
      linear-gradient(100deg, rgba(13,16,38,0.82) 0%, rgba(13,16,38,0.55) 45%, rgba(13,16,38,0.15) 75%, rgba(6,7,15,0.25) 100%),
      url('/images/hero-bg.webp');
    background-size: cover, cover;
    background-position: center, center 40%;
    background-repeat: no-repeat;
    color: #EAF4F1;
    padding: 90px 0 70px;
    border-bottom: none;
  }
  #hap-root .hap-hero-texture {
    position: absolute; inset: 0; opacity: .3; pointer-events: none;
    background-image: radial-gradient(circle at 15% 25%, rgba(255,255,255,0.05) 0, transparent 40%),
                       radial-gradient(circle at 85% 15%, rgba(169,216,154,0.10) 0, transparent 45%),
                       radial-gradient(circle at 75% 80%, rgba(44,156,147,0.14) 0, transparent 45%);
  }
  #hap-root .hap-hero-fish {
    position: absolute; right: -4%; bottom: -10%; width: 34%; max-width: 380px; opacity: .09;
    color: #8FD9A1; pointer-events: none; z-index: 0;
    animation: hapFloat 9s ease-in-out infinite;
  }
  #hap-root .hap-hero-fish-2 {
    position: absolute; left: 4%; top: 10%; width: 12%; max-width: 110px; opacity: .07;
    color: #8FD9A1; pointer-events: none; z-index: 0; transform: rotate(-12deg);
    animation: hapFloatSlow 7s ease-in-out infinite;
  }
  @keyframes hapFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
  @keyframes hapFloatSlow { 0%,100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-10px) rotate(-8deg); } }
  #hap-root .hap-hero .hap-inner { position: relative; z-index: 2; }
  #hap-root .hap-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: #8FD9A1; margin: 0 0 18px; border: 1px solid rgba(159,216,206,0.35); padding: 7px 14px; border-radius: 20px;
  }
  #hap-root .hap-title {
    font-family: 'Fraunces', Georgia, serif; font-weight: 600;
    font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; margin: 0 0 16px; color: #fff;
  }
  #hap-root .hap-title .accent {
    background: linear-gradient(90deg, #8FD9A1, #C8F0D2, #8FD9A1);
    background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: hapSheen 6s ease-in-out infinite;
  }
  @keyframes hapSheen { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
  #hap-root .hap-lede {
    max-width: 680px; font-size: 16.5px; line-height: 1.7; color: #B9C1D6; margin: 0 0 30px;
  }
  #hap-root .hap-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  #hap-root .hap-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
    text-decoration: none; cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease;
  }
  #hap-root .hap-btn-primary {
    background: linear-gradient(135deg, #35AD51 0%, #248238 100%); color: #fff;
    box-shadow: 0 10px 22px -8px rgba(74,122,34,0.5);
  }
  #hap-root .hap-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -8px rgba(74,122,34,0.55); }
  #hap-root .hap-btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
  #hap-root .hap-btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
  #hap-root .hap-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 2; }
  #hap-root .hap-wave svg { width: 100%; height: 50px; display: block; }

  /* ---------- Jump nav ---------- */
  #hap-root .hap-nav {
    padding: 16px 0;
    background: var(--sand); border-bottom: 1px solid var(--sand-line);
    position: sticky; top: 92px; z-index: 5;
  }
  #hap-root .hap-nav .hap-inner { display: flex; gap: 6px; flex-wrap: wrap; }
  #hap-root .hap-nav a {
    font-size: 13px; font-weight: 600; color: var(--ink-soft);
    text-decoration: none; padding: 7px 13px; border-radius: 20px; border: 1px solid var(--sand-line); background: var(--paper);
  }
  #hap-root .hap-nav a:hover { color: var(--leaf-dark); border-color: var(--leaf); }

  /* ---------- Generic section styling ---------- */
  #hap-root .hap-kicker {
    font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 14px;
    color: var(--leaf-dark); margin: 0 0 6px;
  }
  #hap-root section h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 18px; }
  #hap-root .hap-lead { font-size: 15px; color: var(--ink-soft); margin: 0 0 20px; max-width: 760px; line-height: 1.6; }
  #hap-root ol.hap-list, #hap-root ul.hap-list { margin: 0; padding-left: 22px; }
  #hap-root ol.hap-list li, #hap-root ul.hap-list li { margin-bottom: 10px; line-height: 1.6; font-size: 14.8px; }
  #hap-root .hap-alt { background: var(--sand); }
  #hap-root .hap-subhead { margin-top: 30px; }
  #hap-root .hap-subhead h3 { font-size: 17.5px; margin: 0 0 10px; }

  /* ---------- Tables ---------- */
  #hap-root table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
  #hap-root th, #hap-root td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--sand-line); }
  #hap-root thead th {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft);
    border-bottom: 2px solid var(--sand-line);
  }
  #hap-root tbody tr:last-child td { border-bottom: none; }
  #hap-root .hap-award-badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
    background: #EAF3DE; color: var(--leaf-dark);
  }
  #hap-root .hap-award-badge.plaque { background: #FCEBDD; color: var(--coral-dark); }

  /* ---------- Class cards ---------- */
  #hap-root .hap-classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 14px; margin-top: 18px; }
  #hap-root .hap-class-card {
    background: var(--paper); border: 1px solid var(--sand-line); border-radius: 10px; padding: 18px 20px;
  }
  #hap-root .hap-class-card.bonus { background: #FCEBDD; border-color: #F5D5B9; }
  #hap-root .hap-class-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  #hap-root .hap-class-head b { font-family: 'Fraunces', Georgia, serif; font-size: 17px; color: var(--deep); }
  #hap-root .hap-class-pts {
    font-size: 12px; font-weight: 700; background: var(--sand); color: var(--leaf-dark);
    padding: 3px 10px; border-radius: 20px; white-space: nowrap;
  }
  #hap-root .hap-class-card.bonus .hap-class-pts { background: #fff; color: var(--coral-dark); }
  #hap-root .hap-class-card p { font-size: 13.3px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

  /* ---------- Requirements list ---------- */
  #hap-root .hap-req { margin: 0; padding: 0; list-style: none; counter-reset: req; }
  #hap-root .hap-req li {
    counter-increment: req; display: flex; gap: 14px; margin-bottom: 16px; font-size: 14.4px; color: var(--ink); line-height: 1.6;
  }
  #hap-root .hap-req li::before {
    content: counter(req, upper-alpha); flex: none; width: 28px; height: 28px; border-radius: 50%;
    background: var(--deep); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 700; font-family: 'Fraunces', Georgia, serif; margin-top: 1px;
  }

  /* ---------- Submit section ---------- */
  #hap-root .hap-submit-wrap { background: linear-gradient(180deg, var(--sand) 0%, #EFE8D6 100%); }
  #hap-root .hap-submit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 34px; align-items: start; }
  #hap-root .hap-submit-info h2 { margin-bottom: 12px; }
  #hap-root .hap-submit-steps { margin: 20px 0 0; padding: 0; list-style: none; }
  #hap-root .hap-submit-steps li {
    display: flex; gap: 12px; margin-bottom: 16px; font-size: 13.8px; color: var(--ink-soft); line-height: 1.5;
  }
  #hap-root .hap-step-num {
    flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--deep); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700;
    font-family: 'Fraunces', Georgia, serif;
  }
  #hap-root .hap-form-card {
    background: var(--paper); border: 1px solid var(--sand-line); border-radius: 12px; padding: 26px 26px 22px;
    box-shadow: 0 6px 24px rgba(11,59,76,0.06);
  }
  #hap-root .hap-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
  #hap-root .hap-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
  #hap-root .hap-field label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
  #hap-root .hap-field.req label::after { content: ' *'; color: var(--coral); }
  #hap-root .hap-field input, #hap-root .hap-field select, #hap-root .hap-field textarea {
    border: 1px solid var(--sand-line); border-radius: 7px; padding: 9px 11px; font-size: 13.8px;
    font-family: inherit; background: var(--sand); color: var(--ink);
  }
  #hap-root .hap-field input:focus, #hap-root .hap-field select:focus, #hap-root .hap-field textarea:focus {
    outline: 2px solid var(--leaf); outline-offset: 1px; background: #fff;
  }
  #hap-root .hap-field textarea { resize: vertical; min-height: 76px; }
  #hap-root .hap-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 16px; }
  #hap-root .hap-checks label { display: flex; align-items: center; gap: 7px; font-size: 13.3px; color: var(--ink); }
  #hap-root .hap-note {
    font-size: 12px; color: var(--ink-soft); background: var(--sand); border-radius: 7px; padding: 10px 12px;
    margin-bottom: 16px; line-height: 1.5;
  }
  #hap-root .hap-submit-btn {
    width: 100%; padding: 13px; background: var(--deep); color: #fff; border: none; border-radius: 8px;
    font-weight: 700; font-size: 14.5px; cursor: pointer; font-family: inherit;
  }
  #hap-root .hap-submit-btn:hover { background: var(--deep-2); }
  #hap-root .hap-form-status { font-size: 12.5px; margin-top: 10px; text-align: center; color: var(--leaf-dark); display:none; }

  /* ---------- CTA footer ---------- */
  #hap-root .hap-cta { text-align: center; padding: 46px 0 54px; background: var(--deep); color: #EAF4F1; }
  #hap-root .hap-cta h2 { color: #fff; margin-bottom: 10px; }
  #hap-root .hap-cta p { color: #C9DDD9; max-width: 520px; margin: 0 auto 22px; font-size: 14.5px; }

  @media (max-width: 860px) {
    #hap-root .hap-submit-grid { grid-template-columns: 1fr; }
    #hap-root .hap-form-row { grid-template-columns: 1fr; }
  }
  @media (max-width: 640px) {
    #hap-root .hap-inner { padding-left: 16px; padding-right: 16px; }
    #hap-root .hap-classes { grid-template-columns: 1fr; }
    #hap-root table { font-size: 12px; }
    #hap-root thead th { white-space: normal; }
    #hap-root .hap-hero-actions { flex-direction: column; }
    #hap-root .hap-btn { text-align: center; justify-content: center; }
  }
  /* Scrollable table wrapper */
  #hap-root .hap-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
  /* Prevent body horizontal scroll */
  #hap-root { overflow-x: hidden; }
  body { overflow-x: hidden; }
