/* Custom signature font (uploaded). Used only for the brand-promise line. */
@font-face {
  font-family: "OceanTrace";
  src: url("/assets/fonts/OceanTrace.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* get-listed: a serious, business-facing landing page. Concise value prop on
   the left, the listing form (primary CTA) on the right, then a short
   "what happens next". Clean and professional - a slim brand accent strip up
   top, restrained red accents, no gradient hero or animation. Sticky footer +
   body flex column come from style.css. */

/* Slim brand accent strip - subtle identity, sits under the nav. */
.gl-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
}

/* Shared eyebrow */
.gl-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ════════════════════════════════════════════════
   LEAD - pitch (left) + form (right)
   ════════════════════════════════════════════════ */
.gl-lead {
  /* The dark ink panel from the original design - gives the page a serious,
     premium weight. The white form card sits on it and pops as the focal CTA. */
  background: var(--ink);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
/* Soft brand glow in the top-right corner (subtle, not a gradient hero). */
.gl-lead::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 66, 57, 0.22), transparent 70%);
  pointer-events: none;
}
.gl-lead-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Two rows: pitch (top-left) + signature (bottom-left); the form spans both
     rows in the right column. Row gap is tighter than the column gap. */
  grid-template-rows: 1fr auto;
  column-gap: 64px;
  row-gap: 28px;
  align-items: start;
}
.gl-pitch     { grid-column: 1; grid-row: 1; }
.gl-form-card { grid-column: 2; grid-row: 1 / span 2; }
.gl-promise   { grid-column: 1; grid-row: 2; }

/* LEFT pitch */
.gl-pitch {
  padding-top: 8px;
}
.gl-pitch .gl-eyebrow { color: var(--red-mid); }   /* brighter on the dark panel */
.gl-promise {
  align-self: end;           /* sit at the bottom of its grid row */
  padding-top: 8px;
  max-width: 380px;
  /* Slight casual tilt, like a real signature. */
  transform: rotate(-5deg);
  transform-origin: left center;
}
/* Handwritten signature script (custom uploaded font) */
.gl-promise-text {
  display: block;
  font-family: "OceanTrace", cursive;
  font-size: 34px;
  font-weight: 400;
  /* Roomy line-height - this script has tall loops/descenders that collide on
     a tight leading when it wraps to two lines. */
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
/* Hand-drawn underline swoosh, in brand red, under the last line of text. */
.gl-promise-underline {
  display: block;
  width: 260px;
  height: 13px;
  margin-top: 2px;
  color: var(--red);
}
.gl-pitch h1 {
  font-size: 38px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}
.gl-pitch-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.gl-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.gl-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 480px;
}
.gl-points li strong { color: #fff; font-weight: 600; }
.gl-points svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  padding: 3px;
  border-radius: 6px;
  background: rgba(238, 66, 57, 0.18);
  stroke: var(--red-mid); fill: none;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  box-sizing: border-box;
}
.gl-pitch-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
}
.gl-pitch-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red-mid);
  font-weight: 600;
  text-decoration: none;
}
.gl-pitch-contact a:hover { text-decoration: underline; }
.gl-pitch-contact svg {
  width: 15px; height: 15px;
  stroke: var(--red-mid); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Trust-signal stats - live counts, fill the lower panel with proof. */
.gl-stats-label {
  margin-top: 36px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.gl-stats {
  display: flex;
  gap: 14px;
  max-width: 480px;
}
.gl-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 18px 16px;
}
.gl-stat-num {
  display: block;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1;
}
.gl-stat-label {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}


/* RIGHT form card (the primary CTA - visually anchored) */
.gl-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  scroll-margin-top: 80px;   /* anchor jumps clear the sticky nav */
}

.form-header { margin-bottom: 28px; text-align: center; }
.form-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.form-header p {
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--red-text);
  background: var(--red-light);
  border: 1px solid var(--red-mid);
  padding: 4px 11px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.free-badge svg {
  width: 10px; height: 10px;
  stroke: var(--red-text); fill: none;
  stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Form fields */
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.field label .req { color: var(--red); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: #bbb; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(238, 66, 57, 0.08);
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
/* Address: a compact two-ish line box. */
.field textarea.textarea-sm { min-height: 56px; }
/* Available doctors: taller, since it's a multi-line list. */
.field textarea[name="doctors"] { min-height: 104px; }
.field-hint {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 2px;
  line-height: 1.5;
}

/* Submit */
.form-submit { margin-top: 8px; }
.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red-btn);
  color: #fff;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-submit svg {
  width: 15px; height: 15px;
  stroke: #fff; fill: none;
  stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
/* In-flight state: disabled while the POST runs, with a spinner */
.btn-submit:disabled { cursor: progress; opacity: 0.8; }
.btn-submit:disabled:hover { background: var(--red-btn); transform: none; }
.btn-spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation-duration: 2s; }
}
.form-disclaimer {
  font-size: 11px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════
   WHAT HAPPENS NEXT
   ════════════════════════════════════════════════ */
.gl-next {
  background: #fafafa;
  border-top: 1px solid var(--border);
  padding: 64px 48px;
}
.gl-next-inner {
  max-width: 1140px;
  margin: 0 auto;
}
.gl-next-inner h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.4px;
  margin-bottom: 36px;
}
.gl-next-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.gl-next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.gl-next-num {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gl-next-steps h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}
.gl-next-steps p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 920px) {
  /* Stack to one column: pitch → form → signature (signature moves below the
     form). Reset the desktop grid placement and order the items explicitly. */
  .gl-lead { padding: 56px 40px; }
  .gl-lead-inner {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 36px;
    max-width: 640px;        /* wider on tablet so the column doesn't feel cramped */
  }
  .gl-pitch     { grid-column: auto; grid-row: auto; order: 1; }
  .gl-form-card { grid-column: auto; grid-row: auto; order: 2; }
  .gl-promise   { grid-column: auto; grid-row: auto; order: 3; align-self: start; }
  .gl-pitch h1 { font-size: 34px; }
  .gl-promise { max-width: 520px; transform: rotate(-2deg); }   /* breathe + gentler tilt on tablet */
  .gl-pitch-sub { max-width: none; }    /* fill the wider column */
  .gl-points li { max-width: none; }
  .gl-stats { max-width: none; }
  .gl-pitch-contact { max-width: none; }
  .gl-next-inner { max-width: 640px; }
  .gl-next-steps { grid-template-columns: 1fr; gap: 22px; max-width: none; }
}
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .gl-lead { padding: 48px 24px; }
  .gl-next { padding: 48px 24px; }
  .gl-form-card { padding: 26px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .footer { padding: 24px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .gl-pitch h1 { font-size: 30px; }
}
