/* ==========================================================================
   COMPONENT — Let's Connect / contact form
   Markup:  components/booking.html   (section.booking)
   Anchor:  #book  ← every contact CTA on the page points here
   Behaviour: scripts/contact-form.js
              → posts to the Google Apps Script URL set in that file
              → setup steps + the Apps Script itself: README.md and
                scripts/google-apps-script.gs
   ========================================================================== */

.booking{
  position:relative;
  padding:85px 0;
  color:#fff;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(3,46,35,.94),rgba(3,74,57,.78)),
    url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1800&q=85") center/cover;
}
.booking-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.booking h2{
  font-family:"Manrope",sans-serif;
  font-size:clamp(42px,5vw,68px);
  line-height:.98;
  letter-spacing:-.05em;
  margin:15px 0 20px;
}
.booking-copy{color:#d8e7e1;max-width:520px}
.booking .btn{
  margin-top:28px;
  background:#fff;
  color:var(--green-dark);
  border-color:#fff;
}
.booking .eyebrow{color:#c6e5d9}
.booking .eyebrow::before{background:#c6e5d9}

/* ---------- The form card ---------- */

.contact-card{
  min-height:380px;
  background:#fff;
  color:var(--ink);
  border-radius:20px;
  padding:28px;
  box-shadow:0 20px 70px rgba(0,0,0,.18);
}
.contact-card h3{
  font-family:"Manrope",sans-serif;
  font-size:20px;
  letter-spacing:-.02em;
  margin-bottom:6px;
}
.contact-card > p{
  font-size:12.5px;
  color:var(--muted);
  margin-bottom:22px;
}

.contact-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.field{display:flex;flex-direction:column;gap:7px}
.field-wide,
.form-hp,
.form-actions,
.form-note,
.form-status{grid-column:1/-1}

.field label{
  font-size:10px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--green-dark);
}
.field label span{
  color:var(--muted);
  font-weight:600;
  letter-spacing:.06em;
  text-transform:none;
}

.field input,
.field textarea{
  font:inherit;
  font-size:14px;
  color:var(--ink);
  background:#fdfefd;
  border:1px solid #dce7e1;
  border-radius:12px;
  padding:0 14px;
  min-height:46px;
  transition:.25s ease;
}
.field textarea{
  padding:12px 14px;
  min-height:104px;
  line-height:1.5;
  resize:vertical;
}
.field input::placeholder,
.field textarea::placeholder{color:#9daaa4}
.field input:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--green);
  background:#fff;
  box-shadow:0 0 0 3px rgba(8,127,99,.12);
}

/* Validation feedback */
.field.has-error input,
.field.has-error textarea{
  border-color:var(--error);
  background:#fdf7f5;
}
.field-error{
  font-size:11px;
  color:var(--error);
}

/* Spam honeypot — off-screen for people, still tempting for bots */
.form-hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

.form-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-top:6px;
}

/* The white .booking .btn styling above is for the dark background; inside the
   white card the submit button needs the normal solid-green treatment. */
.booking .contact-card .btn{
  margin-top:0;
  background:var(--green);
  color:#fff;
  border-color:var(--green);
  box-shadow:0 10px 24px rgba(8,127,99,.18);
}
.booking .contact-card .btn:hover{background:var(--green-dark)}
.booking .contact-card .btn:disabled{opacity:.65;cursor:wait;transform:none}

.form-linkedin{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:46px;
  padding:0 15px;
  border:1px solid #dce7e1;
  border-radius:12px;
  color:var(--green-dark);
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  transition:.25s ease;
}
.form-linkedin svg{
  width:16px;
  height:16px;
  fill:currentColor;
}
.form-linkedin:hover{
  border-color:var(--green);
  background:var(--green-soft);
  transform:translateY(-2px);
}

.form-note{
  font-size:11px;
  color:var(--muted);
}
.form-note a{
  color:var(--green);
  font-weight:700;
}
.form-note a:hover{text-decoration:underline}

.form-status{
  min-height:18px;
  font-size:11px;
  color:var(--muted);
}
.form-status.is-success{
  font-family:"Playfair Display",serif;
  font-style:italic;
  font-size:15px;
  color:var(--green);
}
.form-status.is-error{color:var(--error)}
.form-status a{
  color:var(--green);
  font-weight:700;
  text-decoration:underline;
}

/* ---------- Responsive ---------- */

@media(max-width:800px){
  .booking{padding:70px 0}
  .booking-grid{grid-template-columns:1fr;gap:35px}
}

@media(max-width:560px){
  .contact-card{padding:22px}
  .contact-form{grid-template-columns:1fr}
}
