/* The demo and contact forms, and the pages that thank for them (21 October).
 *
 * They were a Bootstrap form in a narrow card: heavy dark labels over beige
 * boxes, a gradient button, a stepper from another decade. Now one frame for
 * both: the brand on the left with the three reassurances the page gives
 * elsewhere, the form on the right on white, fields at rest in a quiet line and
 * lit in blue when typed in, one navy button. The same frame closes the
 * landing. Nothing about the fields themselves changed - same names, same
 * validation - so the views and their tests did not move.
 */

.public-panel--form {
  max-width: 1060px !important;
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.fp {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  max-width: 1060px;
  margin: 0 auto;
  border: 1px solid #DEDCD6;
  border-radius: 26px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 40px 80px -44px rgba(11, 20, 51, 0.4);
}

/* ── The brand side ──────────────────────────────────────────── */
.fp__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
  color: #FFFFFF;
  background:
    radial-gradient(70% 55% at 0% 0%, rgba(67, 119, 240, 0.38), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, rgba(242, 187, 49, 0.2), transparent 70%),
    #0B1F4D;
}
.fp__logo { display: block; width: 132px; height: auto; }
.fp .fp__line {
  margin: 0.4rem 0 0.6rem;
  font-family: var(--font-serif, "Source Serif 4", Georgia, serif);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.fp__points { display: grid; gap: 0.95rem; margin: auto 0 0; padding: 0; list-style: none; }
.fp__points li { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 0.95rem; line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.fp__points a { color: #FFFFFF; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.fp__points a:hover { border-bottom-color: #FFFFFF; }
.fp__ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.9rem;
}
.fp__ico--blue { background: rgba(157, 189, 255, 0.2); color: #C7DBFF; }
.fp__ico--green { background: rgba(174, 235, 199, 0.2); color: #AEEBC7; }
.fp__ico--amber { background: rgba(254, 205, 92, 0.2); color: #FFDE90; }

/* ── The form side ───────────────────────────────────────────── */
.fp__main { padding: clamp(1.8rem, 3.4vw, 2.8rem); background: #FFFFFF; min-width: 0; }
.fp__head { margin-bottom: 1.6rem; text-align: left; }
.fp__eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #F3F7FF;
  border: 1px solid #C7DBFF;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #224AA9;
}
.fp__head h1,
.fp__head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif, "Source Serif 4", Georgia, serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #0B1433;
}
.fp__head p { margin: 0; font-size: 1rem; line-height: 1.6; color: #3B4860; }

.fp .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.fp .form-field { margin: 0 0 1.05rem; }
.fp .form-field > label,
.fp .form-field .field-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #3B4860;
}

/* A field at rest is a line; the icon and the border light up when typed in. */
.fp .input-with-icon,
.fp .textarea-with-icon {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 1.5px solid #DEDCD6;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.fp .input-with-icon:hover,
.fp .textarea-with-icon:hover { border-color: #C0BEB5; }
.fp .input-with-icon:focus-within,
.fp .textarea-with-icon:focus-within {
  border-color: #4377F0;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(67, 119, 240, 0.16);
}
.fp .input-with-icon > i,
.fp .textarea-with-icon > i {
  position: absolute;
  left: 14px;
  top: 15px;
  z-index: 1;
  font-size: 0.9rem;
  line-height: 1;
  color: #959FB2;
  transition: color 0.2s ease;
}
.fp .input-with-icon:focus-within > i,
.fp .textarea-with-icon:focus-within > i { color: #2B5DD7; }
.fp .input-with-icon input,
.fp .input-with-icon .form-control,
.fp .textarea-with-icon textarea,
.fp .textarea-with-icon .form-control {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border: 0 !important;
  border-radius: 12px;
  background: transparent !important;
  box-shadow: none !important;
  font: 500 0.98rem/1.2 inherit;
  color: #0B1433;
}
.fp .textarea-with-icon textarea,
.fp .textarea-with-icon .form-control { height: auto; min-height: 9rem; padding: 14px 14px 14px 42px; line-height: 1.55; resize: vertical; }
.fp .input-with-icon input::placeholder,
.fp .textarea-with-icon textarea::placeholder { color: #959FB2; font-weight: 400; }
.fp .errorlist { margin: 0.4rem 0 0; padding: 0; list-style: none; font-size: 0.82rem; font-weight: 600; color: #C32324; }

/* The consent: a quiet row, a real checkbox. */
.fp .privacy-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.4rem 0 1.2rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid #EEEDE8;
  border-radius: 12px;
  background: #FBFAF7;
}
.fp .privacy-check label { margin: 0; font-size: 0.9rem; font-weight: 500; color: #3B4860; cursor: pointer; }
.fp .privacy-check a { color: #2B5DD7; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fp .privacy-check input[type="checkbox"],
.fp .privacy-check .form-check-input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #0B1F4D;
  cursor: pointer;
}
.fp .form-note { margin: 0.2rem 0 1.2rem; font-size: 0.9rem; line-height: 1.5; color: #596378; }
.fp .contact-as { margin: 0 0 1.1rem; padding: 0.8rem 1rem; border-radius: 12px; background: #ECFBF2; font-size: 0.92rem; color: #0E653F; }

/* One button: Marine, as everywhere else on the site. */
.fp .btn.btn-primary,
.fp button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 52px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 14px;
  background: #0B1F4D;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 14px 28px -16px rgba(11, 31, 77, 0.7);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.fp .btn.btn-primary:hover,
.fp button[type="submit"]:hover { background: #1A377E; transform: translateY(-1px); box-shadow: 0 18px 32px -16px rgba(11, 31, 77, 0.75); }
.fp .btn.btn-primary:focus-visible,
.fp button[type="submit"]:focus-visible { outline: 3px solid rgba(67, 119, 240, 0.45); outline-offset: 2px; }
.fp .cf-turnstile { margin: 0 0 1rem; }

/* ── The demo's two steps ────────────────────────────────────── */
.fp .demo-stepper { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.4rem; }
.fp .demo-stepper .step { position: relative; display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.fp .demo-stepper .step + .step::before { content: ""; width: 2.4rem; height: 2px; margin-right: 0.2rem; background: #DEDCD6; }
.fp .demo-stepper .step.completed + .step::before { background: #2B5DD7; }
.fp .demo-stepper .circle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #DEDCD6;
  border-radius: 50%;
  background: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  color: #596378;
}
.fp .demo-stepper .step.current .circle { border-color: #0B1F4D; background: #0B1F4D; color: #FFFFFF; }
.fp .demo-stepper .step.completed:not(.current) .circle { border-color: #169F65; background: #169F65; color: #FFFFFF; }
.fp .demo-stepper .label { font-size: 0.85rem; font-weight: 600; color: #596378; }
.fp .demo-stepper .step.current .label { color: #0B1433; }
.fp .demo-progress { display: none; }

/* The choices of step two: cards you tick. */
.fp .choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.fp .choice-input { position: absolute; opacity: 0; pointer-events: none; }
.fp .choice-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #DEDCD6;
  border-radius: 12px;
  background: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0B1433;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.fp .choice-card i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #F3F7FF; color: #224AA9; font-size: 0.85rem; }
.fp .choice-card:hover { border-color: #9DBDFF; }
.fp .choice-input:checked + .choice-card,
.fp .choice-card.active { border-color: #2B5DD7; background: #F3F7FF; box-shadow: 0 0 0 3px rgba(67, 119, 240, 0.14); }
.fp .choice-input:focus-visible + .choice-card { outline: 3px solid rgba(67, 119, 240, 0.45); outline-offset: 2px; }

/* ── The landing's own frame ─────────────────────────────────── */
.l-contact { background: #F7F6F2; }
.fp--landing { box-shadow: 0 40px 80px -48px rgba(11, 20, 51, 0.45); }
.fp--landing .fp__head h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }

/* ── The thanks ─────────────────────────────────────────────── */
.public-panel .status-panel {
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid #DEDCD6;
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 40px 80px -48px rgba(11, 20, 51, 0.4);
  text-align: center;
}
.public-panel .status-panel .status-icon--success {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.1rem;
  border-radius: 20px;
  background: #ECFBF2;
  box-shadow: inset 0 0 0 1px #AEEBC7;
  color: #00814F;
  font-size: 1.6rem;
}
.public-panel .status-panel h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif, "Source Serif 4", Georgia, serif);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: #0B1433;
}
.public-panel .status-panel p { margin: 0 0 1.5rem; font-size: 1rem; line-height: 1.6; color: #3B4860; }
.public-panel .status-panel .btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 14px;
  background: #0B1F4D;
  color: #FFFFFF;
  font-weight: 700;
}
.public-panel .status-panel .btn-primary:hover { background: #1A377E; }

@media (max-width: 860px) {
  .fp { grid-template-columns: minmax(0, 1fr); }
  .fp__aside { gap: 1rem; padding: 1.5rem; }
  .fp__points { margin-top: 0.4rem; }
  .fp .form-grid,
  .fp .choice-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The older form rules (public.css) are more specific than the frame above,
   and said their piece in beige and 56px boxes. These have the last word. */
.fp .fp__head,
.fp .fp__head * { text-align: left !important; }
.fp .demo-header h1 { margin: 0 0 0.5rem; }
.fp .input-with-icon,
.fp .textarea-with-icon {
  background: #FFFFFF !important;
  border: 1.5px solid #DEDCD6 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding: 0 !important;
}
.fp .input-with-icon:focus-within,
.fp .textarea-with-icon:focus-within {
  border-color: #4377F0 !important;
  box-shadow: 0 0 0 4px rgba(67, 119, 240, 0.16) !important;
}
.fp .input-with-icon > i,
.fp .textarea-with-icon > i { left: 14px !important; top: 16px !important; color: #959FB2 !important; transform: none !important; }
.fp .input-with-icon:focus-within > i,
.fp .textarea-with-icon:focus-within > i { color: #2B5DD7 !important; }
.fp .input-with-icon input,
.fp .input-with-icon .form-control,
.fp .textarea-with-icon textarea,
.fp .textarea-with-icon .form-control {
  height: 48px !important;
  padding-left: 42px !important;
  padding-right: 14px !important;
  background: transparent !important;
  border: 0 !important;
  color: #0B1433 !important;
  font-weight: 500 !important;
}
.fp .textarea-with-icon textarea,
.fp .textarea-with-icon .form-control { height: auto !important; min-height: 9rem; padding-top: 14px !important; padding-bottom: 14px !important; }
.fp .demo-stepper { padding: 0 !important; justify-content: flex-start !important; }
.fp .demo-stepper::before { content: none !important; }
.fp .demo-stepper .step { flex: 0 0 auto !important; flex-direction: row !important; text-align: left !important; }
.fp .demo-stepper .circle {
  width: 30px !important;
  height: 30px !important;
  background: #FFFFFF !important;
  color: #596378 !important;
  box-shadow: none !important;
  transform: none !important;
}
.fp .demo-stepper .step.current .circle { background: #0B1F4D !important; color: #FFFFFF !important; border-color: #0B1F4D !important; }
.fp .demo-stepper .step.completed:not(.current) .circle { background: #169F65 !important; color: #FFFFFF !important; border-color: #169F65 !important; }
.fp .demo-stepper .step.completed .label,
.fp .demo-stepper .step.current .label { color: #0B1433 !important; }
.fp .btn.btn-primary,
.fp button[type="submit"] { background: #0B1F4D !important; background-image: none !important; color: #FFFFFF !important; border-radius: 14px !important; }
.fp .btn.btn-primary:hover,
.fp button[type="submit"]:hover { background: #1A377E !important; }
.fp .form-note { text-align: left; }
.fp .form-field > label { color: #3B4860 !important; }

/* style.css turns every .form-check-input into a round switch; here it is a box. */
.fp .privacy-check input[type="checkbox"]::before,
.fp .privacy-check .form-check-input::before { content: none !important; }
.fp .privacy-check input[type="checkbox"],
.fp .privacy-check .form-check-input {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  float: none !important;
  width: 20px !important;
  height: 20px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #B9B6AE !important;
  border-radius: 5px !important;
}

@media (max-width: 480px) {
  .fp .demo-stepper { gap: 0.4rem; }
  .fp .demo-stepper .step { gap: 0.4rem; }
  .fp .demo-stepper .step + .step::before { width: 1rem; margin-right: 0; }
  .fp .demo-stepper .label { font-size: 0.78rem; }
}
