/* ==========================================================================
   The Dog Teach Funnel Stylesheet
   Cleaned and consolidated from:
   - index.php
   - prospect.php
   - thankyou.php

   Notes:
   - Shared tokens and utilities live first.
   - Shared components follow.
   - Page-specific sections are grouped at the end.
   - Keep new additions inside the closest matching section for scalability.
   ========================================================================== */

/* ==========================================================================
   1. Design Tokens / Theme
   ========================================================================== */
:root {
  --bg: #f7f4ee;
  --bg-alt: #efe6d8;
  --surface: #ffffff;
  --surface-soft: #fcfaf7;
  --surface-warm: #fffdf9;
  --surface-warm-alt: #faf5eb;
  --text: #222222;
  --muted: #6f6a61;
  --line: #ddd5c9;
  --primary: #315c3a;
  --primary-dark: #24472b;
  --accent: #b8893c;
  --accent-soft: #efe2c7;
  --accent-light: #dcc18e;
  --accent-gradient-end: #d2a75e;
  --error: #9f2d2d;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   2. Base / Reset
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

h1 {
  margin: 0 0 12px;
  line-height: 1.08;
}

p {
  margin-top: 0;
}

/* ==========================================================================
   3. Shared Layout
   ========================================================================== */
.site-wrap,
.page-wrap {
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-wrap {
  max-width: 1120px;
}

.page-wrap {
  max-width: 980px;
  padding-top: 32px;
  padding-bottom: 60px;
}

/* ==========================================================================
   4. Shared Surface / Card Styles
   ========================================================================== */
.hero-card,
.form-shell,
.card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(184, 137, 60, 0.18);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel-card,
.point,
.schedule-card,
.affirmation-card,
.links-panel,
.message {
  border: 1px solid var(--line);
  background: var(--surface);
}

.panel-card,
.schedule-card,
.affirmation-card,
.message {
  border-radius: var(--radius-lg);
}

.links-panel {
  border-radius: var(--radius-xl);
}

.point {
  border-radius: var(--radius-md);
}

/* ==========================================================================
   5. Shared Typography / Reusable Elements
   ========================================================================== */
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-light);
}

.top-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 700;
}

.lead,
.helper,
.schedule-note,
.form-header p,
.affirmation-card p,
.links-panel p,
.fine-print {
  color: var(--muted);
}

.form-header p,
.hero p {
  max-width: 60ch;
}

/* ==========================================================================
   6. Shared Buttons / Interactive Elements
   ========================================================================== */
.btn,
.social-link,
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.social-link:hover,
.btn-submit:hover {
  transform: translateY(-1px);
}

.btn,
.social-link {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
}

.btn-submit {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary,
.btn-submit {
  background: linear-gradient(135deg, var(--accent), var(--accent-gradient-end));
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.social-link {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--line);
}

.social-link:hover {
  border-color: rgba(184, 137, 60, 0.45);
}

.btn-submit.is-loading,
.btn-submit:disabled {
  cursor: wait;
  opacity: 0.8;
  transform: none;
}

/* ==========================================================================
   7. Shared Forms
   ========================================================================== */
form {
  padding: 28px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  font-size: 0.96rem;
}

.helper {
  margin-top: -4px;
  font-size: 0.88rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 137, 60, 0.12);
}

.form-alert {
  margin: 28px 28px 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(159, 45, 45, 0.2);
  background: rgba(159, 45, 45, 0.08);
  color: var(--error);
  font-weight: 700;
}

/* ==========================================================================
   8. index.php
   Landing Page
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.hero-card {
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.hero-copy,
.hero-panel {
  padding: 48px;
}

.hero-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.lead {
  margin-bottom: 28px;
  font-size: 1.08rem;
  max-width: 58ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.point {
  padding: 16px;
  font-size: 0.95rem;
}

.hero-panel {
  background: linear-gradient(160deg, rgba(49, 92, 58, 0.95), rgba(36, 71, 43, 0.96));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-card {
  margin-bottom: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.panel-card h2,
.panel-card h3 {
  margin-top: 0;
}

.steps {
  margin: 0;
  padding-left: 20px;
}

.steps li + li {
  margin-top: 10px;
}

/* ==========================================================================
   9. prospect.php
   Form Page
   ========================================================================== */
.form-header {
  padding: 36px 28px;
  background: linear-gradient(160deg, rgba(49, 92, 58, 0.96), rgba(36, 71, 43, 0.96));
  color: #fff;
}

.form-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.form-header p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
}

.section-block + .section-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-block h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.schedule-shell {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.schedule-note {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.schedule-card {
  padding: 14px;
}

.schedule-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--primary-dark);
}

.schedule-options {
  display: grid;
  gap: 10px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.check-option input {
  width: auto;
  min-height: auto;
  margin: 0;
  padding: 0;
  transform: scale(1.05);
}

.schedule-error {
  display: none;
  margin-top: 12px;
  color: var(--error);
  font-weight: 700;
  font-size: 0.92rem;
}

.schedule-error.show {
  display: block;
}

.submit-row {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   10. thankyou.php
   Confirmation Page
   ========================================================================== */
body.thankyou-page {
  min-height: 100vh;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-page .card {
  width: 100%;
  max-width: 860px;
  background: rgba(255, 255, 255, 0.97);
}

.thankyou-page .hero {
  min-height: auto;
  padding: 42px 30px 26px;
  background: linear-gradient(155deg, rgba(49, 92, 58, 0.98), rgba(36, 71, 43, 0.96));
  color: #fff;
  text-align: center;
}

.thankyou-page h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.thankyou-page .hero p {
  margin: 0 auto;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.03rem;
}

.thankyou-page .body {
  padding: 30px;
}

.message {
  margin-bottom: 24px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface-warm) 0%, var(--surface-warm-alt) 100%);
}

.message strong {
  color: var(--primary-dark);
}

.affirmation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.affirmation-card {
  padding: 18px;
}

.affirmation-card h2,
.links-panel h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--primary-dark);
}

.links-panel {
  padding: 22px;
  background: var(--surface);
}

.links-panel h2 {
  font-size: 1.15rem;
}

.links-panel p {
  margin-bottom: 18px;
}

.actions,
.social-grid {
  display: grid;
  gap: 14px;
}

.actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.fine-print {
  margin-top: 18px;
  font-size: 0.92rem;
  text-align: center;
}

/* ==========================================================================
   11. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 920px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel {
    padding: 32px 24px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.thankyou-page {
    padding: 18px;
  }

  .thankyou-page .hero,
  .thankyou-page .body {
    padding: 24px 18px;
  }

  .affirmation,
  .actions,
  .social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  form,
  .form-header {
    padding: 24px 18px;
  }

  .form-alert {
    margin-left: 18px;
    margin-right: 18px;
  }
}
