/* ============================================================
   Haleon Consumer Care Portal — styles.css  v4 (mobile responsive)
   White background · Black text · Lime green #31EA06 accents
   Font: DM Sans
============================================================ */

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

:root {
  --hg:      #31EA06;
  --hg-d:    #22B804;
  --hg-l:    #f0fde9;
  --hg-mid:  #d4f7c0;
  --hk:      #0a0a0a;
  --cb:      #2484C6;
  --cb-d:    #223666;
  --bg-c:    #4FC6E0;
  --g0:      #ffffff;
  --g50:     #fafafa;
  --g100:    #f4f4f5;
  --g200:    #e4e4e7;
  --g300:    #d4d4d8;
  --g500:    #71717a;
  --g700:    #3f3f46;
  --g900:    #09090b;
  --warn-bg: #FEF3C7;
  --warn-fg: #854D0E;
  --warn-bd: #EAB308;
  --r:   8px;
  --rl:  12px;
  --rp:  999px;
  --sh:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh2: 0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  --f:   'DM Sans', Arial, system-ui, sans-serif;
}

body { font-family: var(--f); background: var(--g0); color: var(--g900); font-size: 14px; line-height: 1.5; min-height: 100vh; }

/* PORTAL SHELL */
.portal { max-width: 900px; margin: 0 auto; padding-bottom: 60px; }

/* HEADER */
.portal-header {
  background: var(--g0); border-bottom: 2px solid var(--hg);
  padding: 14px 32px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.ph-left { display: flex; align-items: center; gap: 14px; }
.haleon-logo { height: 30px; width: auto; display: block; }
.ph-divider  { width: 1px; height: 22px; background: var(--g200); flex-shrink: 0; }
.ph-tag { font-size: 11px; font-weight: 600; color: var(--g500); letter-spacing: .04em; text-transform: uppercase; }
.ph-badge { background: var(--hk); color: var(--hg); font-size: 10px; font-weight: 700; padding: 5px 14px; border-radius: var(--rp); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

/* HERO */
.portal-hero { background: var(--hk); position: relative; overflow: hidden; }
.portal-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--hg); }
.hero-inner { padding: 40px 32px 36px; position: relative; z-index: 1; }
.portal-hero::after { content: ''; position: absolute; top: -30px; right: -30px; width: 300px; height: 300px; border-radius: 50%; border: 60px solid rgba(49,234,6,.06); pointer-events: none; }
.hero-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hg); margin-bottom: 12px; }
.portal-hero h1 { font-size: 34px; font-weight: 800; color: #fff; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 14px; }
.portal-hero h1 em { color: var(--hg); font-style: normal; }
.portal-hero > .hero-inner > p { font-size: 13px; color: rgba(255,255,255,.5); max-width: 500px; line-height: 1.65; }
.hero-stats { display: flex; align-items: center; gap: 0; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.hs { flex: 1; }
.hs-div { width: 1px; height: 36px; background: rgba(255,255,255,.1); flex-shrink: 0; }
.hs-n { font-size: 17px; font-weight: 800; color: var(--hg); line-height: 1; }
.hs-l { font-size: 10px; color: rgba(255,255,255,.35); margin-top: 4px; letter-spacing: .03em; }

/* BRAND ROW */
.brand-row { background: var(--g50); border-bottom: 1px solid var(--g200); padding: 11px 32px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.brand-row-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--g500); margin-right: 4px; white-space: nowrap; }
.brand-pill { background: var(--g0); border: 1.5px solid var(--g200); border-radius: var(--rp); padding: 4px 14px; font-family: var(--f); font-size: 12px; font-weight: 600; color: var(--g700); cursor: pointer; transition: all .12s; -webkit-tap-highlight-color: transparent; }
.brand-pill:hover  { border-color: var(--hg); color: var(--g900); }
.brand-pill.active { background: var(--hk); border-color: var(--hk); color: var(--hg); }

/* STEPS */
.steps-row { display: flex; align-items: center; padding: 18px 32px 4px; background: var(--g0); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.steps-row::-webkit-scrollbar { display: none; }
.step-item { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--g500); white-space: nowrap; }
.step-item.active { color: var(--g900); }
.step-item.done   { color: var(--g900); }
.step-n { width: 22px; height: 22px; min-width: 22px; border-radius: 50%; border: 2px solid var(--g300); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; transition: all .2s; }
.step-item.active .step-n { border-color: var(--hk); background: var(--hk); color: var(--hg); }
.step-item.done   .step-n { border-color: var(--hk); background: var(--hk); color: var(--hg); }
.step-line { flex: 1; min-width: 16px; height: 1px; background: var(--g200); margin: 0 8px; transition: background .3s; }
.step-line.done { background: var(--hg); }

/* BODY */
.portal-body { display: grid; grid-template-columns: 1fr 280px; gap: 20px; padding: 20px 32px 0; align-items: start; }

/* CARDS */
.card { background: var(--g0); border: 1px solid var(--g200); border-radius: var(--rl); box-shadow: var(--sh); overflow: hidden; }
.card-hd { padding: 20px 24px 16px; border-bottom: 1px solid var(--g200); }
.card-hd h2 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.card-hd p  { font-size: 12px; color: var(--g500); }
.card-bd    { padding: 20px 24px; }

/* FORM */
.field     { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.field-2 .field { margin-bottom: 0; }
label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--g700); }
.req { color: var(--hg-d); }
input[type="email"], input[type="text"], select, textarea {
  font-family: var(--f); font-size: 13px; padding: 9px 12px;
  border: 1.5px solid var(--g200); border-radius: var(--r);
  background: var(--g50); color: var(--g900); outline: none;
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--hk); background: var(--g0); box-shadow: 0 0 0 3px rgba(49,234,6,.15); }
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%233f3f46' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }

/* UPLOAD */
.upload-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.upload-zone { border: 1.5px dashed var(--g300); border-radius: var(--r); padding: 20px 12px; text-align: center; cursor: pointer; transition: all .15s; background: var(--g50); -webkit-tap-highlight-color: transparent; }
.upload-zone:hover { border-color: var(--hg); background: var(--hg-l); }
.upload-zone.done  { border-color: var(--hg); border-style: solid; background: var(--hg-l); }
.uz-idle { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--g500); font-size: 12px; }
.uz-idle svg { stroke: var(--g300); }
.uz-done { display: none; flex-direction: column; align-items: center; gap: 6px; color: var(--hg-d); font-size: 12px; font-weight: 600; }
.uz-done svg { stroke: var(--hg-d); }
.upload-zone.done .uz-idle { display: none; }
.upload-zone.done .uz-done { display: flex; }

/* SUBMIT */
.btn-submit { width: 100%; background: var(--hk); color: var(--hg); font-family: var(--f); font-size: 14px; font-weight: 700; padding: 13px 20px; border: none; border-radius: var(--r); cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn-submit:hover  { background: #1a1a1a; }
.btn-submit:active { transform: scale(.98); }
.btn-submit svg    { stroke: var(--hg); flex-shrink: 0; }

/* TRUST */
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--g100); }
.trust-item { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--g500); }
.trust-item svg { stroke: var(--g500); flex-shrink: 0; }

/* COUPON */
.coupon-hd { background: var(--hk); color: #fff; padding: 22px 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border-top: 4px solid var(--hg); }
.coupon-eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--hg); margin-bottom: 8px; }
.coupon-hd h2   { font-size: 18px; font-weight: 800; line-height: 1.2; margin-bottom: 5px; }
.coupon-sub     { font-size: 12px; color: rgba(255,255,255,.45); }
.chip-valid { background: var(--hg); color: var(--hk); font-size: 10px; font-weight: 800; padding: 5px 12px; border-radius: var(--rp); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 5px; }
.chip-valid svg { stroke: var(--hk); }
.coupon-bd { padding: 22px 24px; }
.partner-box { background: var(--g50); border: 1.5px dashed var(--g300); border-radius: var(--r); padding: 20px; text-align: center; margin-bottom: 18px; }
.pb-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--g500); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tbd-chip { background: var(--warn-bg); color: var(--warn-fg); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--rp); text-transform: uppercase; letter-spacing: .05em; }
.pb-icon  { color: var(--cb); display: flex; justify-content: center; margin-bottom: 8px; }
.pb-icon svg { stroke: var(--cb); }
.pb-title { font-size: 13px; font-weight: 700; color: var(--g900); margin-bottom: 6px; }
.pb-body  { font-size: 11px; color: var(--g500); line-height: 1.65; max-width: 380px; margin: 0 auto 14px; }
.delivery-opts { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.d-opt { background: var(--g0); border: 1px solid var(--g200); border-radius: 6px; padding: 9px 8px; }
.d-opt.preferred { border-color: var(--hg); background: var(--hg-l); }
.d-opt-l { font-size: 11px; font-weight: 700; color: var(--g900); margin-bottom: 3px; }
.d-opt.preferred .d-opt-l { color: var(--hg-d); }
.d-opt-d { font-size: 10px; color: var(--g500); line-height: 1.4; }
.coupon-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--g200); }
.cm-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--g500); margin-bottom: 3px; }
.cm-val   { font-size: 13px; font-weight: 700; color: var(--g900); }
.mono     { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.retailer-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--g500); margin-bottom: 8px; }
.retailer-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.r-pill { background: var(--g100); border: 1px solid var(--g200); border-radius: var(--rp); padding: 3px 10px; font-size: 11px; font-weight: 500; color: var(--g700); }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-card { padding: 18px; }
.s-head { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--g500); margin-bottom: 14px; }
.how-step { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.how-step:last-child { margin-bottom: 0; }
.how-n { width: 24px; height: 24px; min-width: 24px; border-radius: 50%; background: var(--hk); color: var(--hg); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.how-t strong { display: block; font-size: 12px; font-weight: 700; margin-bottom: 2px; color: var(--g900); }
.how-t span   { font-size: 11px; color: var(--g500); line-height: 1.4; }
.brand-badge-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.brand-badge { background: var(--g50); border: 1.5px solid var(--g200); border-radius: var(--rp); padding: 3px 10px; font-size: 11px; font-weight: 600; color: var(--g700); transition: all .12s; }
.brand-badge.active { background: var(--hk); border-color: var(--hk); color: var(--hg); }
.retailer-list { display: flex; flex-direction: column; }
.rl-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--g100); font-size: 12px; color: var(--g700); }
.rl-row:last-child { border-bottom: none; }
.rl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hg); flex-shrink: 0; border: 1px solid var(--hg-d); }

/* SNIPP CREDIT */
.snipp-credit { background: var(--g0); border: 1px solid var(--g200); border-radius: var(--rl); padding: 16px 18px; box-shadow: var(--sh); }
.sc-powered   { font-size: 10px; color: var(--g500); letter-spacing: .04em; margin-bottom: 8px; }
.sc-logo      { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.sc-logo-img  { height: 28px; width: auto; display: block; }
.sc-stats     { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--g200); }
.sc-n         { font-size: 15px; font-weight: 800; color: var(--cb); font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 2px; }
.sc-l         { font-size: 9px; color: var(--g500); line-height: 1.3; }
.sc-tag       { font-size: 10px; color: var(--g500); font-style: italic; line-height: 1.5; }

/* FOOTER */
.portal-footer { background: var(--g0); border-top: 1px solid var(--g200); padding: 20px 32px; margin-top: 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-logo  { height: 22px; width: auto; display: block; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 11px; color: var(--g500); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--g900); }
.footer-copy  { font-size: 10px; color: var(--g500); }

/* OVERLAY */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; align-items: center; justify-content: center; padding: 16px; }
.overlay.show { display: flex; }
.overlay-card { background: var(--g0); border-radius: var(--rl); padding: 32px 36px; width: 440px; max-width: 100%; text-align: center; box-shadow: 0 24px 48px rgba(0,0,0,.18); border-top: 4px solid var(--hg); max-height: 90vh; overflow-y: auto; }
.ov-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.ov-logo  { height: 20px; width: auto; }
.ov-sep   { font-size: 12px; color: var(--g300); }
.ov-snipp-img { height: 20px; width: auto; display: block; }
.overlay-card h3  { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.overlay-card > p { font-size: 12px; color: var(--g500); margin-bottom: 20px; }
.prog-track { background: var(--g200); border-radius: var(--rp); height: 4px; margin-bottom: 5px; }
.prog-fill  { height: 4px; background: var(--hg); border-radius: var(--rp); width: 0; transition: width .6s ease; }
.prog-pct   { font-size: 10px; color: var(--g500); text-align: right; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.pipe-steps { text-align: left; }
.pipe-step  { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--g100); }
.pipe-step:last-child { border-bottom: none; }
.ps-ico { width: 26px; height: 26px; min-width: 26px; border-radius: 50%; background: var(--g100); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--g500); flex-shrink: 0; transition: all .25s; }
.ps-ico.done { background: var(--hk); color: var(--hg); }
.ps-ico.spin { background: var(--warn-bg); color: var(--warn-fg); border: 2px solid var(--warn-bd); }
.ps-txt { flex: 1; }
.ps-txt strong { display: block; font-size: 11px; font-weight: 700; }
.ps-txt span   { font-size: 10px; color: var(--g500); }
.ps-st { font-size: 10px; min-width: 76px; text-align: right; color: var(--g500); }
.ps-st.done { color: var(--hg-d); font-weight: 700; }
.ps-st.spin { color: var(--warn-fg); }

/* UTILS */
.hidden { display: none !important; }


/* ════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════ */

/* TABLET (≤ 720px) */
@media (max-width: 720px) {
  .portal-header { padding: 12px 20px; }
  .hero-inner { padding: 32px 20px 28px; }
  .brand-row  { padding: 10px 20px; }
  .steps-row  { padding: 14px 20px 4px; }
  .portal-footer { padding: 18px 20px; }

  .portal-body {
    grid-template-columns: 1fr;
    padding: 16px 20px 0;
  }

  .portal-hero h1 { font-size: 26px; }

  /* Sidebar: 2-column grid below the form */
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .snipp-credit { grid-column: 1 / -1; }
}

/* MOBILE (≤ 480px) */
@media (max-width: 480px) {
  /* Header */
  .portal-header { padding: 11px 14px; }
  .ph-tag     { display: none; }
  .ph-divider { display: none; }
  .haleon-logo { height: 24px; }
  .ph-badge   { font-size: 9px; padding: 4px 10px; }

  /* Hero */
  .hero-inner { padding: 22px 16px 18px; }
  .portal-hero h1 { font-size: 21px; }
  .portal-hero > .hero-inner > p { font-size: 12px; }
  .hero-stats { margin-top: 16px; padding-top: 14px; }
  .hs-n { font-size: 13px; }
  .hs-l { font-size: 8px; }

  /* Brand row — horizontal scroll, no wrap */
  .brand-row {
    padding: 8px 14px; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 5px;
  }
  .brand-row::-webkit-scrollbar { display: none; }
  .brand-row-label { display: none; }
  .brand-pill { flex-shrink: 0; padding: 5px 11px; font-size: 11px; }

  /* Steps */
  .steps-row { padding: 10px 14px 4px; }
  .step-item span { display: none; }

  /* Body */
  .portal-body { padding: 12px 14px 0; gap: 14px; }

  /* Cards */
  .card-hd { padding: 14px 16px 12px; }
  .card-hd h2 { font-size: 14px; }
  .card-bd { padding: 14px 16px; }

  /* Form — collapse all two-column grids */
  .field-2    { grid-template-columns: 1fr; gap: 0; }
  .field-2 .field { margin-bottom: 14px; }
  .upload-pair { grid-template-columns: 1fr; gap: 12px; }

  /* Prevent iOS font zoom on inputs */
  input[type="email"],
  input[type="text"],
  select,
  textarea { font-size: 16px; }

  /* Delivery options */
  .delivery-opts { grid-template-columns: 1fr; }

  /* Coupon */
  .coupon-hd { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .coupon-hd h2 { font-size: 15px; }
  .coupon-bd { padding: 14px 16px; }
  .coupon-meta { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Sidebar — single column on mobile */
  .sidebar { grid-template-columns: 1fr; }
  .sidebar-card { padding: 14px 16px; }
  .snipp-credit { grid-column: auto; padding: 13px 15px; }

  /* Footer */
  .portal-footer { flex-direction: column; align-items: flex-start; padding: 16px 14px; gap: 10px; margin-top: 28px; }
  .footer-links { gap: 12px; }

  /* Overlay — sheet from bottom on mobile */
  .overlay { padding: 0; align-items: flex-end; }
  .overlay-card {
    padding: 22px 18px 28px; border-radius: 18px 18px 0 0;
    max-height: 88vh; width: 100%; border-top-width: 3px;
  }
  .overlay-card h3 { font-size: 15px; }
  .ps-st { min-width: 56px; font-size: 9px; }
}

/* VERY SMALL (≤ 360px) */
@media (max-width: 360px) {
  .portal-hero h1 { font-size: 18px; }
  .hero-stats { flex-wrap: wrap; gap: 8px; }
  .hs { flex: 0 0 calc(50% - 4px); }
  .hs-div { display: none; }
  .coupon-meta { grid-template-columns: 1fr; }
  .sc-n { font-size: 13px; }
}
