/* TenderEase — brand-aligned styles */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Primary */
  --teal-dark: #0F3D40;
  --amber:     #E89B3D;

  /* Secondary */
  --teal:       #1A6B70;
  --teal-light: #4A969B;
  --amber-light:#F5C988;
  --mist:       #E8F0F0;

  /* Neutrals */
  --ink:        #1A1A1A;
  --grey-dark:  #4A4A4A;
  --grey-mid:   #888888;
  --grey-light: #D0D0D0;
  --off-white:  #FAFAFA;
  --white:      #FFFFFF;

  /* Semantic (UI state only) */
  --success: #1F6B3F;
  --danger:  #A33A2D;
  --warning: #B8862E;
  --info:    #1A6B70;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--off-white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.te-widget {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 32px 72px;
}

/* Header --------------------------------------------------------------- */
.te-header { margin-bottom: 32px; }

/* Eyebrow label motif -------------------------------------------------- */
.te-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 8px;
}

/* Amber accent bar motif (under section headlines) --------------------- */
.te-rule {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--amber);
  border: 0;
  margin: 12px 0 28px;
}

/* Step indicator ------------------------------------------------------- */
.te-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--grey-mid);
}
.te-steps li {
  flex: 1;
  padding: 14px 8px 0;
  text-align: center;
  border-top: 2px solid var(--grey-light);
}
.te-steps li.is-active {
  color: var(--teal-dark);
  font-weight: 600;
  border-top-color: var(--teal-dark);
}
.te-steps li.is-done {
  color: var(--teal);
  border-top-color: var(--teal);
}

/* Sections ------------------------------------------------------------- */
.te-section { display: none; }
.te-section.is-active { display: block; }

/* Discount code expander + visualisation ------------------------------ */
.te-discount {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: var(--mist);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.te-discount > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  outline: none;
  list-style: revert;
}
.te-discount[open] > summary { margin-bottom: 12px; }
.te-discount__inner {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.te-discount__inner input[type="text"] {
  flex: 1 1 200px;
  padding: 10px 12px;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.te-discount__msg {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--success);
  line-height: 1.5;
}
.te-discount__msg.is-error { color: var(--danger); }
.te-discount__msg:empty { display: none; }
.te-discount__optin {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 0;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.45;
  color: var(--grey-dark);
  cursor: pointer;
}
.te-discount__optin input[type="checkbox"] {
  flex: 0 0 18px;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--teal-dark);
  cursor: pointer;
}
.te-discount--form { margin-top: 20px; }

/* Required AI-disclaimer checkbox above the Pay button.
   Same visual family as .te-discount__optin but a touch more prominent
   because it's required and represents an explicit acknowledgement.
   Overrides `.te-form label`'s uppercase + letter-spacing inheritance. */
.te-ack {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0 0;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-left: 3px solid var(--teal, #1e8e8e);
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.5;
  color: var(--grey-dark);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  cursor: pointer;
}
.te-ack input[type="checkbox"] {
  flex: 0 0 16px;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--teal-dark);
  cursor: pointer;
}
.te-ack__body { display: block; text-transform: none; letter-spacing: 0; }
.te-ack__body strong {
  color: var(--teal-dark);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

/* Struck-through original price above the hero amount when discount active */
.te-price-hero__original {
  text-align: center;
  font-size: 22px;
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 4px;
}
.te-price-hero.is-discounted .te-price-hero__eyebrow { color: var(--amber); }

/* Privacy reassurance banner above the drop zone --------------------- */
.te-reassure {
  margin-bottom: 28px;
  padding: 28px 32px;
  background: var(--mist);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.te-reassure .te-eyebrow { margin: 0 0 8px; }
.te-reassure h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  color: var(--teal-dark);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.te-reassure p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--grey-dark);
}

@media (max-width: 600px) {
  .te-reassure { padding: 22px 20px; }
  .te-reassure h2 { font-size: 24px; }
  .te-reassure p { font-size: 14px; }
}

/* Folder-labelling tip on the drop step. Visually subordinate to
   .te-reassure (smaller, teal accent instead of amber) so it reads
   as a "before you drop" hint rather than competing with the H2. */
.te-folder-tip {
  margin: 0 0 24px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-left: 3px solid var(--teal, #1e8e8e);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.te-folder-tip__head {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.te-folder-tip p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--grey-dark);
}
.te-folder-tip strong { color: var(--teal-dark); font-weight: 600; }

@media (max-width: 600px) {
  .te-folder-tip { padding: 12px 14px; }
  .te-folder-tip p { font-size: 13px; }
}

/* Drop zone ------------------------------------------------------------ */
.te-drop {
  background: var(--mist);
  border: 1.5px dashed var(--teal-light);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  cursor: pointer;
  transition: border-color 120ms, background 120ms;
}
.te-drop:focus,
.te-drop.is-hover {
  border-color: var(--teal-dark);
  background: var(--off-white);
  outline: none;
}
.te-drop__icon {
  font-size: 44px;
  color: var(--teal);
  margin-bottom: 16px;
  line-height: 1;
}
.te-drop__lead {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 8px;
  line-height: 1.3;
}
.te-drop p {
  font-size: 16px;
  color: var(--grey-dark);
  margin: 0 0 10px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.te-drop__types {
  font-size: 14px;
  color: var(--grey-mid);
  margin: 16px auto 32px !important;
}
.te-drop__types strong { color: var(--teal-dark); font-weight: 600; }

/* Buttons -------------------------------------------------------------- */
.te-btn {
  display: inline-block;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  background: transparent;
  color: inherit;
  text-align: center;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.te-btn--primary {
  background: var(--teal-dark);
  color: var(--white);
  border-color: var(--teal-dark);
}
.te-btn--primary:hover {
  background: var(--teal);
  border-color: var(--teal);
}
.te-btn--accent {
  background: var(--amber);
  color: var(--teal-dark);
  border-color: var(--amber);
}
.te-btn--accent:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
}
.te-btn--ghost {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--grey-light);
}
.te-btn--ghost:hover { border-color: var(--teal-dark); }
.te-btn--link {
  background: none;
  border: none;
  color: var(--teal);
  padding: 6px 0;
  font-weight: 500;
  text-decoration: underline;
  display: block;
  margin-top: 4px;
}

/* Price hero ----------------------------------------------------------- */
.te-price-hero {
  background: var(--teal-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  margin-bottom: 40px;
}
.te-price-hero__eyebrow {
  color: var(--amber);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.te-price-hero__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 80px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.te-price-hero__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.te-parse-status {
  margin-top: 12px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Disabled "still parsing" state on the proceed buttons. */
.te-btn.is-busy { opacity: 0.6; cursor: progress; }

/* Role selector -------------------------------------------------------- */
.te-role {
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
}
.te-role label {
  font-size: 13px;
  color: var(--grey-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.te-role select {
  margin-left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--grey-light);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.te-role select:focus {
  outline: none;
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 2px rgba(15, 61, 64, 0.15);
}

/* Unsupported-file notice ---------------------------------------------- */
.te-skipped {
  background: var(--mist);
  border-left: 4px solid var(--amber);
  padding: 18px 24px;
  font-size: 14px;
  color: var(--grey-dark);
  margin-bottom: 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.te-skipped__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
}
.te-skipped__head strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.te-skipped__sub {
  font-size: 13px;
  color: var(--grey-mid);
}
.te-skipped details { margin-top: 10px; }
.te-skipped summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--teal);
}
.te-skipped ul {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--grey-dark);
  max-height: 200px;
  overflow: auto;
}
.te-skipped li { margin: 2px 0; }

/* Value card ---------------------------------------------------------- */
.te-value-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
}
.te-value-card h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0;
  line-height: 1.2;
}

/* Stat tiles ----------------------------------------------------------- */
.te-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0 40px;
}
.te-tile {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
}
.te-tile--accent {
  background: var(--teal-dark);
  color: var(--white);
}
.te-tile__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--teal-dark);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.te-tile--accent .te-tile__num { color: var(--white); }
.te-tile__label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 10px;
  line-height: 1.35;
}
.te-tile--accent .te-tile__label { color: rgba(255, 255, 255, 0.85); }

/* Time comparison ------------------------------------------------------ */
.te-compare {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 28px 28px;
  margin-bottom: 36px;
}
.te-compare__title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.te-compare__row {
  display: grid;
  grid-template-columns: 160px 1fr 180px;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--grey-dark);
}
.te-compare__label {
  color: var(--grey-dark);
  font-weight: 500;
}
.te-compare__amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}
.te-compare__bar {
  height: 8px;
  background: var(--white);
  border-radius: 99px;
  overflow: hidden;
  display: block;
}
.te-compare__fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  transition: width 240ms ease;
}
.te-compare__fill--manual { background: var(--grey-mid); }
.te-compare__fill--te { background: var(--teal-dark); }
.te-compare__delta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-light);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
}

/* Benefits ------------------------------------------------------------- */
.te-benefits {
  border-left: 4px solid var(--amber);
  padding: 6px 0 6px 22px;
  margin-bottom: 36px;
}
.te-benefits h4 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 14px;
}
.te-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.te-benefits li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-dark);
  padding-left: 18px;
  position: relative;
}
.te-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--teal);
}

/* Checks list --------------------------------------------------------- */
.te-checks h4 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 14px;
}
.te-checks__role {
  font-weight: 400;
  color: var(--grey-mid);
  font-size: 14px;
  margin-left: 4px;
}
.te-checks ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.te-checks li {
  font-size: 14px;
  color: var(--grey-dark);
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}
.te-checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.te-checks__more {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--grey-mid);
  font-style: italic;
}

/* Actions row ---------------------------------------------------------- */
.te-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  justify-content: flex-end;
}
.te-actions .te-btn { flex: 0 1 auto; }
.te-actions--split { justify-content: space-between; }

/* Form ----------------------------------------------------------------- */
.te-form h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--teal-dark);
  margin: 0 0 6px;
  line-height: 1.15;
}
.te-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}
.te-form__wide { grid-column: 1 / -1; }
.te-form label {
  display: block;
  font-size: 13px;
  color: var(--grey-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.te-form input,
.te-form textarea {
  width: 100%;
  padding: 13px 15px;
  margin-top: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--grey-light);
  background: var(--white);
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 400;
}
.te-form input:focus,
.te-form textarea:focus {
  outline: none;
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 2px rgba(15, 61, 64, 0.15);
}
.te-form input::placeholder,
.te-form textarea::placeholder {
  color: var(--grey-mid);
}

/* Form footer: Back button, inline estimate, Send button on one row */
.te-form__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}
.te-form__send {
  display: flex;
  align-items: center;
  gap: 18px;
}
.te-form__send-summary {
  text-align: right;
  line-height: 1.15;
}
.te-form__send-summary strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--teal-dark);
}
.te-form__send-summary span {
  display: block;
  font-size: 12px;
  color: var(--grey-mid);
  margin-top: 2px;
}

/* Coverage-note block ------------------------------------------------- */
.te-coverage-note {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--mist);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.te-coverage-note h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0 0 6px;
  line-height: 1.2;
}
.te-coverage-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-dark);
}

.te-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 16px;
}

/* Next-step bridge on estimate page ----------------------------------- */
.te-next {
  background: var(--mist);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 28px 32px;
  margin-top: 28px;
}
.te-next .te-eyebrow { margin-top: 0; }
.te-next h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--teal-dark);
  line-height: 1.2;
  margin: 0 0 10px;
}
.te-next p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--grey-dark);
  margin: 0 0 18px;
  max-width: 640px;
}

/* Form helper text under a field -------------------------------------- */
.te-form__help {
  display: block;
  font-size: 12px;
  color: var(--grey-mid);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 6px;
  line-height: 1.45;
}

/* White-label branding expander -------------------------------------- */
.te-form__advanced {
  margin: 22px 0 0;
  padding: 14px 18px;
  background: var(--mist);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.te-form__advanced > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  outline: none;
  list-style: revert; /* keep the disclosure marker */
}
.te-form__advanced[open] > summary { margin-bottom: 14px; }
.te-form__advanced-help {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--grey-dark);
  line-height: 1.5;
}
.te-form__brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.te-form__brand-grid .te-form__wide { grid-column: 1 / -1; }
.te-form__brand-grid input[type="color"] {
  display: block;
  width: 100%;
  height: 44px;
  padding: 4px;
  margin-top: 6px;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--white);
}
.te-form__brand-grid input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px dashed var(--grey-light);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
}
.te-form__brand-grid small {
  display: block;
  font-size: 12px;
  color: var(--grey-mid);
  margin-top: 6px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

/* Upload-on-pay note on the enquiry form ----------------------------- */
.te-form__upload-note {
  margin: 0 0 22px;
  padding: 14px 18px;
  background: var(--mist);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--grey-dark);
}
.te-form__upload-note strong { color: var(--teal-dark); }

/* Upload opt-in block — single status+toggle row --------------------- */
.te-upload-optin {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--mist);
  border-left: 4px solid var(--grey-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: border-color 160ms ease;
}
.te-upload-optin.is-queued {
  border-left-color: var(--success);
}
.te-upload-optin__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.te-upload-optin__copy { flex: 1 1 260px; min-width: 0; }
.te-upload-optin__copy .te-eyebrow { margin: 0 0 6px; }
.te-upload-optin__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--grey-dark);
}
.te-upload-optin__dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grey-mid);
  transition: background 160ms ease;
}
.te-upload-optin.is-queued .te-upload-optin__dot { background: var(--success); }
.te-upload-optin.is-queued .te-upload-optin__status { color: var(--teal-dark); font-weight: 500; }
.te-upload-optin__inner .te-btn { white-space: nowrap; }

/* Confirmation modal -------------------------------------------------- */
.te-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15, 61, 64, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: te-fade-in 160ms ease-out;
}
.te-modal[hidden] { display: none; }
.te-modal__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}
.te-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--grey-mid);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
}
.te-modal__close:hover { color: var(--teal-dark); background: var(--mist); }
.te-modal__card .te-eyebrow { margin-top: 0; }
.te-modal__card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--teal-dark);
  margin: 0 0 14px;
  line-height: 1.2;
}
.te-modal__card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-dark);
  margin: 0 0 12px;
}
.te-modal__note {
  font-size: 13px !important;
  color: var(--grey-mid) !important;
  font-style: italic;
}
body.te-modal-open { overflow: hidden; }

/* Full-screen upload overlay ------------------------------------------- */
.te-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 61, 64, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: te-fade-in 160ms ease-out;
}
/* Higher specificity than the .te-overlay class rule above, so the HTML
   `hidden` attribute actually hides the overlay by default. */
.te-overlay[hidden] { display: none; }
@keyframes te-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.te-overlay__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.te-overlay__card .te-eyebrow { margin-top: 0; }
.te-overlay__card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--teal-dark);
  margin: 0 0 10px;
  line-height: 1.15;
}
.te-overlay__card > p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-dark);
  margin: 0 0 22px;
}
.te-overlay__note {
  margin: 6px 0 14px !important;
  font-size: 13px;
  color: var(--grey-mid);
  font-variant-numeric: tabular-nums;
}
.te-overlay__reassure {
  margin: 0 0 18px !important;
  padding: 10px 12px;
  background: var(--off-white, #fafafa);
  border-left: 3px solid var(--teal, #1e8e8e);
  font-size: 13px;
  line-height: 1.45;
  color: var(--grey-dark);
  text-align: left;
  border-radius: 4px;
}
.te-overlay details { margin-top: 6px; }
.te-overlay summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
}
body.te-overlay-open { overflow: hidden; }

/* Partial-failure block ----------------------------------------------- */
.te-upload-failure {
  margin-top: 24px;
  background: #FAE9E5;
  border-left: 4px solid var(--danger);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 26px 30px;
}
.te-upload-failure .te-eyebrow { margin-top: 0; }
.te-upload-failure h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--danger);
  margin: 0 0 10px;
}
.te-upload-failure p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-dark);
  margin: 0 0 14px;
}
.te-upload-failure details { margin: 10px 0 16px; }
.te-upload-failure summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--danger);
  font-weight: 500;
}
.te-upload-failure ul {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 12px;
  color: var(--grey-dark);
  max-height: 160px;
  overflow: auto;
}
.te-overall {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 8px;
}
.te-overall__bar {
  flex: 1;
  height: 10px;
  background: var(--mist);
  border-radius: 99px;
  overflow: hidden;
}
.te-overall__bar > div {
  height: 100%;
  width: 0%;
  background: var(--teal-dark);
  transition: width 120ms linear;
}
.te-overall__pct {
  min-width: 52px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--grey-dark);
  font-size: 13px;
  font-weight: 600;
}
.te-upload-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
}
.te-upload-list li {
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--grey-light);
  color: var(--grey-dark);
}
.te-upload-list li:last-child { border-bottom: none; }
.te-upload-list .te-upload-status {
  font-size: 12px;
  color: var(--grey-mid);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.te-upload-status.is-done { color: var(--success); }
.te-upload-status.is-fail { color: var(--danger); }

/* Standalone landing pages (post-payment, cancelled) ----------------- */
.te-landing {
  padding-top: 96px;
  padding-bottom: 96px;
  min-height: calc(100vh - 192px);
}
.te-landing__meta {
  font-size: 13px;
  color: var(--grey-mid);
}
.te-landing__meta code {
  background: var(--white);
  border: 1px solid var(--grey-light);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  color: var(--teal-dark);
}
.te-eyebrow--success { color: var(--success); }
.te-eyebrow--neutral { color: var(--grey-mid); }
.te-done--neutral {
  border-left-color: var(--grey-mid);
}

/* Confirmation -------------------------------------------------------- */
.te-done {
  background: var(--mist);
  border-left: 4px solid var(--amber);
  padding: 36px 40px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.te-done h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--teal-dark);
  margin: 0 0 6px;
  line-height: 1.15;
}
.te-done p {
  margin: 14px 0;
  font-size: 15px;
  color: var(--grey-dark);
  line-height: 1.55;
}
.te-done p {
  margin: 0;
  font-size: 13px;
  color: var(--grey-dark);
}
.te-done code {
.te-done code {
  background: var(--white);
  border: 1px solid var(--grey-light);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 14px;
  color: var(--teal-dark);
}

/* Narrow ---------------------------------------------------------------- */
@media (max-width: 600px) {
  html, body { font-size: 15px; }
  .te-widget { padding: 24px 16px 48px; }
  .te-form__grid { grid-template-columns: 1fr; }
  .te-form__brand-grid { grid-template-columns: 1fr; }
  .te-actions { flex-direction: column-reverse; }
  .te-actions .te-btn { width: 100%; }
  .te-form__footer { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .te-form__send { flex-direction: column-reverse; gap: 10px; }
  .te-form__send-summary { text-align: center; }
  .te-form__send .te-btn { width: 100%; }
  .te-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .te-tile__num { font-size: 26px; }
  .te-compare__row { grid-template-columns: 110px 1fr 120px; gap: 10px; font-size: 13px; }
  .te-value-card { padding: 28px 22px; }
  .te-drop { padding: 52px 24px; }
  .te-drop__lead { font-size: 16px; }
  .te-price-hero { padding: 36px 24px; }
  .te-price-hero__value { font-size: 56px; }
  .te-form h2 { font-size: 28px; }
  .te-header__title { font-size: 30px; }
  .te-header__sub { font-size: 15px; }
}
