@font-face{
  font-family:'Hartsinger';
  src:url('../fonts/Hartsinger.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:#ffffff;
  color:#111111;
}

main{
  min-height:100vh;
  padding:32px 0 48px;           /* 🔹 no horizontal padding on desktop */
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ==============================
   BACK LINK
=============================== */
.back-link-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.back-link-button{
  width:36px;
  height:36px;
  border-radius:50%;
  background:#f3f3f3;
  border:1px solid #d0d0d0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition:background 0.15s ease;
}

.back-link-button:hover{
  background:#e5e5e5;
  border:1px solid #e5e5e5;
}

.back-link-button svg{
  width:20px;
  height:20px;
  stroke:#111111;
  stroke-width:2.4;
  stroke-linecap:round;
  fill:none;
}

.back-link-text{
  font-size:16px;
  font-weight:400;
  color:#111111;
  text-decoration:none;
}

.back-link-text:hover{
  text-decoration:underline;
}

/* ==============================
   WRAPPER
=============================== */
.hero-book-chat{
  width:min(1200px, 100% - 120px);  /* 🔹 60px gutter each side on desktop */
  margin:0 auto;
  background:#f3f3f3;
  border-radius:20px;
  padding:40px;
  gap:80px;
  display:flex;
  align-items:flex-start;
}

.hero-book-chat-left,
.hero-book-chat-right{
  flex:1 1 0;
  min-width:0;
}

/* ==============================
   LEFT (form side)
=============================== */
.hero-book-chat-title{
  font-size:clamp(28px,6.2vw,36px);
  line-height:1.05;
  font-weight:900;
  letter-spacing:-0.03em;
  margin:0 0 30px;
  color:#111111;
}

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

.book-chat-field{
  display:flex;
  flex-direction:column;
}

.book-chat-field-wide{
  grid-column:1 / -1;
}

.book-chat-label{
  font-size:16px;
  font-weight:400;
  color:#3a3a3a;
  margin-bottom:6px;
}

.book-chat-input{
  width:100%;
  height:45px;
  border-radius:14px;
  background:#ffffff;
  border:0;
  padding:0 16px;
  font-size:16px;
  outline:none;
}

.book-chat-textarea{
  width:100%;
  border-radius:14px;
  background:#ffffff;
  border:0;
  padding:10px 16px;
  font-size:16px;
  line-height:1.4;
  outline:none;
  resize:vertical;
  min-height:90px;
  font-family:inherit;
  box-sizing:border-box;
}

.book-chat-select-wrap{
  position:relative;
  width:100%;
}

.book-chat-select{
  width:100%;
  height:45px;
  border-radius:14px;
  background:#ffffff;
  border:0;
  padding:0 32px 0 16px;
  font-size:16px;
  outline:none;
  appearance:none;
}

.book-chat-select-wrap::after{
  content:"";
  position:absolute;
  top:50%;
  right:16px;
  transform:translateY(-50%);
  width:0;
  height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid #111111;
  pointer-events:none;
}

.book-chat-submit-wrapper{
  grid-column:1 / -1;
  margin-top:10px;
}

.book-chat-submit{
  width:100%;
  height:45px;
  border-radius:14px;
  border:0;
  background:#4C6FFF;
  color:#ffffff;
  font-size:16px;
  font-weight:500;
  cursor:pointer;
}

.book-chat-submit:disabled{
  opacity:0.6;
  cursor:not-allowed;
}

.book-chat-privacy{
  margin-top:10px;
  margin-bottom:0;
  font-size:14px;
  color:#343a40;
  white-space:nowrap;
}

/* Privacy Policy link always black */
.book-chat-privacy a{
  color:#000000;
  text-decoration:underline;
}

/* 🔴 INVALID STATE */
.book-chat-input.invalid,
.book-chat-select.invalid{
  background:#ffe9e9;
}

/* ===========================================
   🔥 GLOBAL VALIDATION MESSAGE
=========================================== */
.book-chat-error-message{
  grid-column:1 / -1;
  font-size:16px;
  line-height:1.3;
  color:#d64545;
  margin:0 0 6px;
  display:none;
}

.book-chat-error-message.visible{
  display:block;
}

/* ===========================================
   ✨ NEW — DISABLED FIELDS (KEEP WHITE)
=========================================== */
.book-chat-input:disabled,
.book-chat-select:disabled,
.book-chat-textarea:disabled{
  background:#ffffff;
  color:#b5b5b5;
  opacity:1;
  cursor:not-allowed;
}

.book-chat-select-wrap:has(.book-chat-select:disabled)::after{
  border-top-color:#b5b5b5;
}

/* ==============================
   RIGHT (preview side)
=============================== */
.hero-book-chat-eyebrow{
  font-family:'Hartsinger';
  font-size:22px;
  letter-spacing:0.5px;
  text-transform:uppercase;
  color:#4C6FFF;
  margin:0 0 8px;
}

.hero-book-chat-heading-right{
  font-size:clamp(28px,6.2vw,36px);
  font-weight:900;
  margin:0 0 10px;
  color:#111111;
}

.hero-book-chat-copy-right{
  margin:0 0 22px;
  font-size:16px;
  line-height:1.5;
  color:#343a40;
  max-width:440px;
}

.hero-book-chat-image-crop{
  margin-top:8px;
  margin-right:-40px;
  overflow:hidden;
}

.hero-book-chat-image-wrap{
  border:6px solid #000;
  border-radius:16px;
  overflow:hidden;
  background:#ffffff;
  width:150%;
}

.hero-book-chat-image{
  width:100%;
  display:block;
}

/* ==============================
   THANK-YOU STATE
=============================== */
.hero-book-chat-thanks{
  align-items:center;
  justify-content:center;
}

.hero-book-chat-thanks-inner{
  max-width:100%;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}

.thanks-intro{
  max-width:520px;
  margin:0 auto 50px;
  text-align:center;
}

.thanks-intro .hero-book-chat-title{
  margin-bottom:12px;
}

.thanks-intro .hero-book-chat-copy-right{
  max-width:620px;
  margin-left:auto;
  margin-right:auto;
  margin-bottom:20px;
}

/* ⭐ UPDATED: thank-you button now same size as home buttons */
.book-chat-submit-wrapper-thanks{
  margin:20px auto 0;
  width:auto;
  max-width:none;
  display:flex;
  justify-content:center;
}

.book-chat-submit-wrapper-thanks .book-chat-submit{
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 16px;
  width:auto;
  border-radius:10px;
  background:#4C6FFF;
  color:#fff;
  font-size:16px;
  font-weight:400;
  border:0;
  cursor:pointer;
}

.book-chat-submit-wrapper-thanks .book-chat-submit svg{
  width:20px;
  height:20px;
  stroke:currentColor;
  stroke-width:2.5;
}

/* ==============================
   MODULES SECTION
=============================== */
.thanks-modules{
  margin-top:24px;
}

.thanks-heading{
  margin:0 0 12px;
  font-size:clamp(28px,6.2vw,36px);
  line-height:1.05;
  font-weight:900;
  letter-spacing:-0.03em;
  text-align:center;
  color:#111111;
}

.thanks-subtitle{
  margin:0 0 32px;
  font-size:16px;
  line-height:1.5;
  color:#343a40;
  text-align:center;
}

.thanks-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:40px;
  margin-top:8px;
  max-width:1120px;
  margin-left:auto;
  margin-right:auto;
}

.thanks-card{
  display:block;
  text-decoration:none;
  color:inherit;
}

.thanks-card-image-wrap{
  border-radius:12px;
  border:4px solid #000;
  overflow:hidden;
  background:#ffffff;
  margin-bottom:40px;
}

.thanks-card-image{
  width:100%;
  height:auto;
  display:block;
}

.thanks-card-eyebrow{
  font-family:'Hartsinger';
  font-size:18px;
  letter-spacing:0.6px;
  text-transform:uppercase;
  color:#4C6FFF;
  margin:0 0 8px;
}

.thanks-card-title{
  margin:0;
  font-size:28px;
  line-height:1.15;
  font-weight:900;
}

/* ==============================
   MOBILE
=============================== */
@media (max-width:960px){

  /* 🔹 add 25px page gutter on mobile */
  main{
    padding:32px 25px 48px;
  }

  .hero-book-chat{
    width:100%;              /* 🔹 full-width inside 25px gutter */
    margin:0;
    flex-direction:column;
    align-items:stretch;
    gap:30px;
    padding:30px;            /* inner padding of the grey card */
  }

  .hero-book-chat-left,
  .hero-book-chat-right{
    width:100%;
  }

  .book-chat-form{
    grid-template-columns:1fr;
  }

  .hero-book-chat-image-crop{
    margin-top:24px;
    margin-right:0;
    margin-left:0;
    margin-bottom:0;
  }

  .hero-book-chat-image-wrap{
    width:100%;
    border-radius:16px;
  }

  .thanks-grid{
    grid-template-columns:1fr;
    gap:20px;
    max-width:none;
  }

  .thanks-intro{
    text-align:left;
    margin-left:0;
    margin-right:0;
  }

  .thanks-intro .hero-book-chat-copy-right{
    margin-left:0;
    margin-right:0;
  }

  .thanks-heading,
  .thanks-subtitle{
    text-align:left;
  }

  .thanks-card-title{
    font-size:18px;
    font-weight:900;
    letter-spacing:-0.01em;
    line-height:1.2;
  }

  .thanks-card-image-wrap{
    margin-bottom:20px;
  }

  .thanks-grid .thanks-card:nth-child(-n+2) .thanks-card-title{
    margin-bottom:10px;
  }

  .thanks-card-eyebrow{
    font-size:20px;
  }

  .thanks-card-title br{
    display:none;
  }
}

/* ==============================
   SMALL PHONES – fix overflow
=============================== */
@media (max-width:480px){
  .book-chat-privacy{
    white-space:normal;
    line-height:1.4;
    font-size:13px;
  }
}