/* ==========================================================================
   Migration Vision — v2 components
   Booking forms, modal, FAQ, blog index, stats band, polish.
   Loaded after style.css.
   ========================================================================== */

/* ---------- forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-bottom: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy-ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(9, 90, 233, 0.16);
}
.invalid { border-color: #d9534f !important; }
.err-inline { color: #d9534f; font-size: 12px; font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.err-inline:empty { display: none; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 18px;
  line-height: 1.5;
}
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--green); flex: none; }
.form-submit { width: 100%; justify-content: center; font-size: 15.5px; padding: 14px 26px; }
.form-submit:disabled { opacity: 0.65; cursor: progress; }
.form-note { font-size: 12.5px; color: var(--text-soft); text-align: center; margin: 12px 0 0; line-height: 1.55; }
.form-error { color: #d9534f; font-size: 13.5px; text-align: center; margin: 12px 0 0; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: center; padding: 24px 8px; }
.form-success:focus { outline: none; }
.success-mark {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.12);
  color: var(--green-dark);
  display: grid; place-items: center;
  font-size: 30px; font-weight: 800;
  animation: pop 0.4s ease;
}
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.form-success h3 { font-size: 23px; }
.form-success p { color: var(--text-soft); max-width: 360px; margin: 8px auto 0; }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 30, 52, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 18px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal-card { transform: none; }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; z-index: 2;
  transition: background 0.15s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.35); }
.modal-head {
  background:
    radial-gradient(420px 200px at 90% -20%, rgba(9, 90, 233, 0.4), transparent 60%),
    linear-gradient(150deg, var(--navy-ink), var(--navy));
  color: #fff;
  padding: 30px 34px 26px;
}
.modal-head .eyebrow { color: var(--blue-soft); }
.modal-head .eyebrow::before { background: var(--green); }
.modal-head h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.modal-head p { color: #c9dcea; font-size: 14.5px; margin: 0; }
.form-wrap { padding: 26px 34px 32px; }

/* ---------- standalone booking page ---------- */
.booking-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; padding: 64px 0 88px; align-items: start; }
.booking-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 38px;
}
.booking-form-card > .eyebrow { margin-bottom: 10px; }
.booking-form-card h2 { font-size: 27px; margin-bottom: 8px; }
.booking-form-card > p.intro { color: var(--text-soft); margin: 0 0 26px; }
.booking-aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.reassure {
  background: linear-gradient(160deg, var(--navy-ink), var(--navy));
  color: #cfe2ec;
  border-radius: var(--radius-lg);
  padding: 30px 30px;
}
.reassure h3 { color: #fff; font-size: 20px; margin-bottom: 16px; }
.reassure ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.reassure li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.5; }
.reassure .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(13,148,136,0.2); color: #5eead4; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.reassure .sig { font-family: var(--font-mono); font-size: 12px; color: var(--mist); margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(161,205,219,0.3); }
.contact-mini {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px;
}
.contact-mini h3 { font-size: 17px; margin-bottom: 14px; }
.contact-mini .c-row { padding: 11px 0; }

/* ---------- stats band ---------- */
.stats-band {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  margin-top: -56px;
  position: relative;
  z-index: 5;
}
.stats-band .stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stats-band .stat:last-child { border-right: 0; }
.stats-band .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--navy-ink);
  line-height: 1;
  letter-spacing: 0;
}
.stats-band .stat b .u { color: var(--sky); }
.stats-band .stat > span { display: block; font-size: 13.5px; color: var(--text-soft); margin-top: 8px; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.faq-item.open { box-shadow: var(--shadow-md); border-color: var(--mist); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy-ink);
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--sky);
  font-weight: 400;
}
.faq-item.open .faq-q::after { content: "\2013"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.faq-a-inner { padding: 0 24px 20px; color: var(--text-soft); font-size: 15px; line-height: 1.65; }

/* ---------- blog index ---------- */
.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}
.blog-featured .feat-art {
  background:
    radial-gradient(420px 240px at 80% 10%, rgba(9,90,233,0.3), transparent 60%),
    linear-gradient(150deg, var(--navy-ink), var(--navy));
  color: #fff;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}
.blog-featured .feat-art .tag { color: var(--blue-soft); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.blog-featured .feat-art h2 { color: #fff; font-size: 28px; line-height: 1.2; }
.blog-featured .feat-art h2 a { color: #fff; }
.blog-featured .feat-art h2 a:hover { color: var(--blue-soft); }
.blog-featured .feat-side {
  padding: 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.blog-featured .feat-side p { color: var(--text-soft); margin: 0 0 22px; }
.blog-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.blog-cat {
  font-size: 13.5px; font-weight: 600; color: var(--navy);
  background: #fff; border: 1.5px solid var(--line);
  padding: 8px 18px; border-radius: 999px;
}

/* ---------- pledge (trust quote, no fabricated reviews) ---------- */
.pledge { max-width: 860px; margin: 0 auto; text-align: center; }
.pledge .mark { font-family: var(--font-display); font-size: 64px; color: var(--mist); line-height: 0.5; display: block; margin-bottom: 18px; }
.pledge p { font-family: var(--font-display); font-size: clamp(21px, 3vw, 28px); color: var(--navy-ink); line-height: 1.4; font-weight: 500; }
.pledge .by { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-top: 20px; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--sky), var(--green));
  z-index: 100;
  transition: width 0.1s linear;
}

/* ---------- flying bird animation in hero ---------- */
.hero-bird {
  position: absolute;
  width: 26px; height: 26px;
  opacity: 0.85;
  offset-path: path("M-50 480 C 300 420, 480 200, 760 180 S 1250 120, 1500 40");
  offset-rotate: auto;
  animation: fly 18s linear infinite;
}
@keyframes fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-bird { animation: none; offset-distance: 48%; } }

/* ---------- responsive v2 ---------- */
@media (max-width: 1020px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-aside { position: static; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band .stat:nth-child(2) { border-right: 0; }
  .stats-band .stat:nth-child(1), .stats-band .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .blog-featured { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .modal-head, .form-wrap { padding-left: 24px; padding-right: 24px; }
  .stats-band { grid-template-columns: 1fr; margin-top: -36px; }
  .stats-band .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-band .stat:last-child { border-bottom: 0; }
  .booking-form-card { padding: 28px 22px; }
}
