/*
 * Interactive contact-sales form — Freshpaint styling.
 * All rules are scoped under .fp-root and use fp-* class names so they can be
 * embedded in a HubSpot page without colliding with the host stylesheet.
 * Brand tokens live in :root-scoped .fp-root vars — tweak to match brand exactly.
 */

.fp-root {
  /* Brand tokens (Freshpaint teal palette) */
  --fp-primary: #076763;         /* brand teal (icons, focus, accents) */
  --fp-primary-600: #022026;     /* deep teal (hover) */
  --fp-primary-050: #d6f3ec;     /* pale teal (progress track, focus ring) */
  --fp-accent: #ff6b57;          /* coral accent (errors) */
  --fp-ink: #032126;             /* text color / deep teal ink */
  --fp-body: #3d5d60;            /* muted body text */
  --fp-line: #cbe9e2;            /* borders (light teal) */
  --fp-surface: #ffffff;
  --fp-surface-alt: #ffffff;
  --fp-card-bg: #edfbf8;         /* form background */
  --fp-btn-bg: #032126;          /* button background */
  --fp-btn-text: #ffffff;        /* button text */
  --fp-radius: 14px;
  --fp-radius-lg: 20px;
  --fp-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --fp-shadow-hover: 0 18px 40px -14px rgba(79, 70, 229, 0.35);
  --fp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  box-sizing: border-box;
  font-family: var(--fp-font);
  color: var(--fp-ink);
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 8px;
  -webkit-font-smoothing: antialiased;
}
.fp-root *,
.fp-root *::before,
.fp-root *::after { box-sizing: border-box; }

/* Card container */
.fp-card {
  /* background: var(--fp-card-bg);
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius-lg);
  box-shadow: var(--fp-shadow);
  padding: 32px; */
  overflow: hidden;
}

/* Progress bar */
.fp-progress {
  height: 6px;
  background: var(--fp-primary-050);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}
.fp-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #edfbf8, #c3ffe0 11%, #52ccb0 23%, #076763 37%, #022026 74%);
  border-radius: 999px;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Header copy */
.fp-sub {
  font-size: 15px;
  color: var(--fp-body);
  margin: 0 0 24px;
}

/* Steps: only one visible; animated slide/fade */
.fp-step { display: none; }
.fp-step.is-active {
  display: block;
  animation: fp-slide-in 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.fp-step.is-leaving {
  display: block;
  animation: fp-slide-out 220ms ease forwards;
}
@keyframes fp-slide-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fp-slide-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-14px); }
}

.fp-step__label {
    font-family: Inter, sans-serif;
    font-size: 18px;
    color: #032126;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    margin-bottom: 5px;
}
.fp-step__hint {
  font-size: 15x;
  color: var(--fp-body);
  margin: 0 0 20px;
}

/* Email input */
.fp-field { margin-bottom: 8px; }
.fp-input {
  width: 100%;
  font-size: 16px;
  font-family: inherit;
  color: var(--fp-ink);
  padding: 15px 16px;
  border: 1.5px solid var(--fp-line);
  border-radius: var(--fp-radius);
  background: var(--fp-surface-alt);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.fp-input::placeholder { color: #94a3b8; }
.fp-input:focus {
  outline: none;
  border-color: var(--fp-primary);
  background: var(--fp-surface);
  box-shadow: 0 0 0 4px var(--fp-primary-050);
}
.fp-input.is-invalid {
  border-color: var(--fp-accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 87, 0.15);
}
.fp-error {
  color: var(--fp-accent);
  font-size: 13px;
  margin: 8px 2px 0;
  min-height: 16px;
}

/* Choice tiles (Q1 / Q2) — square, inline, icon-on-top.
   Q1 packs 4 across the top row and 3 on the bottom (auto-fit). */
.fp-choices {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}
/* Q1: 4 tiles on top, 3 on the bottom. */
.fp-choices--q1 { grid-template-columns: repeat(4, 1fr); }
/* Q2: as many columns as it has options (2 or 3). */
.fp-choices--cols2 { grid-template-columns: repeat(2, 1fr); }
.fp-choices--cols3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) {
  .fp-choices--q1,
  .fp-choices--cols3 { grid-template-columns: repeat(2, 1fr); }
}
.fp-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  width: 100%;
  min-height: 128px;
  padding: 16px 12px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--fp-ink);
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-line);
  border-radius: var(--fp-radius);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}
.fp-choice:hover {
  border-color: var(--fp-primary);
  transform: translateY(-2px);
  box-shadow: var(--fp-shadow-hover);
}
/* Selected tile inverts: dark background, light text + icon. */
.fp-choice.is-selected {
  border-color: var(--fp-ink);
  background: var(--fp-ink);
  color: #ffffff;
}
.fp-choice__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--fp-primary);
  transition: color 140ms ease;
}
.fp-choice__icon svg { width: 28px; height: 28px; display: block; }
.fp-choice.is-selected .fp-choice__icon { color: #c3ffe0; }
.fp-choice__label { display: block; }

/* Nav buttons */
.fp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.fp-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--fp-radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, opacity 140ms ease;
}
.fp-btn--primary {
  background: var(--fp-btn-bg);
  color: var(--fp-btn-text);
  margin-left: auto;
}
.fp-btn--primary:hover { background: var(--fp-primary-600); transform: translateY(-1px); box-shadow: var(--fp-shadow-hover); }
.fp-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.fp-btn--ghost {
  background: transparent;
  color: var(--fp-body);
  border-color: var(--fp-line);
}
.fp-btn--ghost:hover { color: var(--fp-ink); border-color: var(--fp-body); }

/* Loading / results */
.fp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
  text-align: center;
  color: var(--fp-body);
}
.fp-spinner {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 4px solid var(--fp-primary-050);
  border-top-color: var(--fp-primary);
  animation: fp-spin 800ms linear infinite;
}
@keyframes fp-spin { to { transform: rotate(360deg); } }

/* Loading messages: two lines stacked in the same cell, cross-faded. */
.fp-loading__msgs {
  display: grid;
  min-height: 22px;
}
.fp-loading__msg {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 600ms ease;
}
.fp-loading__msg.is-visible { opacity: 1; }

.fp-result__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.fp-result__body {
  font-size: 15px;
  color: var(--fp-body);
  margin: 0 0 20px;
}
.fp-meetings {
  min-height: 620px;
  width: 100%;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  overflow: hidden;
}

/* Message-only result */
.fp-message {
  text-align: center;
  padding: 24px 8px 8px;
}
.fp-message__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--fp-primary-050);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fp-primary);
  font-size: 28px;
}

/* Visually hidden (hidden HubSpot form host) */
.fp-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Done step: branches with no meeting link show the thank-you message that
   HubSpot renders into the (now un-hidden) hidden-form host. */
.fp-done {
  padding: 8px 0 4px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fp-body);
}
.fp-done p:first-child { margin-top: 0; }
.fp-done p:last-child { margin-bottom: 0; }
.fp-done a { color: var(--fp-primary); }

@media (max-width: 520px) {
  .fp-card { padding: 22px; }
}
