/*
 * Roofing + bathroom form pages: layout in the call/quote landers' style and
 * a restyle of the Phonexa form (#omForm). Loaded after styles.css and
 * form.css, only by pages/roofing-form.html and pages/bathroom-form.html.
 */

:root {
  --fp-blue: #1e63b5;
  --fp-blue-dark: #174a91;
  --fp-blue-soft: #eaf2fc;
  --fp-ink: #102a47;
  --fp-ink-2: #133a66;
  --fp-orange: #ff7d33;
  --fp-orange-hover: #f26b1d;
  --fp-orange-soft: #fff1e8;
  --fp-bg: #f6f8fb;
  --fp-line: #e3e9f1;
  --fp-muted: #5b6673;
  --fp-font-head: "Archivo", "Arial Black", system-ui, sans-serif;
  --fp-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body.fp {
  background: var(--fp-bg);
  color: #1c2530;
  font-family: var(--fp-font-body);
  -webkit-font-smoothing: antialiased;
}

.fp-wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.fp-icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.fp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--fp-blue) 0%, #2470c8 100%);
  box-shadow: 0 6px 24px rgba(16, 42, 71, 0.18);
}
.fp-header .fp-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.fp-logo {
  font-family: var(--fp-font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.fp-header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.fp-header-call:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}
.fp-header-call .fp-icon {
  font-size: 18px;
  color: var(--fp-orange);
}

/* ---------- Hero ---------- */
.fp-hero {
  position: relative;
  background-color: var(--fp-blue);
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 44px 0 120px;
}
.fp-hero h1 {
  margin: 0 auto;
  max-width: 820px;
  font-family: var(--fp-font-head);
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
}
.fp-hero h1 .fp-hl {
  display: block;
  color: #ffd0ae;
}
.fp-trust {
  list-style: none;
  margin: 22px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
}
.fp-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}
.fp-trust .fp-icon {
  font-size: 16px;
  color: #ffd0ae;
}

/* ---------- Form card ---------- */
.fp-main {
  position: relative;
  margin-top: -88px;
  padding-bottom: 56px;
}
.fp-card {
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(16, 42, 71, 0.14);
  padding: 32px 20px 28px;
  max-width: 760px;
  margin: 0 auto;
}
.fp-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: var(--fp-muted);
}
.fp-secure .fp-icon {
  font-size: 16px;
  color: var(--fp-blue);
}

/* ---------- "Or call us" ---------- */
.fp-call {
  max-width: 760px;
  margin: 20px auto 0;
  background: var(--fp-ink);
  border-radius: 24px;
  padding: 22px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  text-align: center;
}
.fp-call-text {
  margin: 0;
  color: #fff;
  font-family: var(--fp-font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}
.fp-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--fp-orange);
  color: var(--fp-ink);
  font-weight: 700;
  font-size: 1.12rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.fp-call-btn:hover {
  background: var(--fp-orange-hover);
  transform: translateY(-2px);
}
.fp-call-btn .fp-icon {
  font-size: 20px;
}

/* ---------- Steps ---------- */
.fp-steps {
  list-style: none;
  max-width: 1080px;
  margin: 40px auto 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.fp-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: 18px;
  padding: 18px;
}
.fp-step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--fp-orange);
  color: var(--fp-ink);
  font-family: var(--fp-font-head);
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fp-steps h2 {
  margin: 2px 0 4px;
  font-family: var(--fp-font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--fp-ink-2);
  letter-spacing: -0.01em;
}
.fp-steps p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--fp-muted);
}

@media (min-width: 768px) {
  .fp-hero {
    padding: 64px 0 140px;
  }
  .fp-main {
    margin-top: -104px;
  }
  .fp-card {
    padding: 44px 48px 36px;
  }
  .fp-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.fp-num-alt {
  display: none;
}
@media (max-width: 420px) {
  .fp-header-call .fp-num {
    display: none;
  }
  .fp-header-call .fp-num-alt {
    display: inline;
  }
}

/* ---------- Shared footer partial on these pages ---------- */
body.fp .footer {
  float: none;
  background: var(--fp-blue-dark);
  padding: 28px 0;
}
body.fp .footer .container {
  width: 100%;
  max-width: 1080px;
  padding: 0 16px;
}
body.fp .footer .ftr-txt {
  color: #d6e4f5;
}
body.fp .footer .ftr-txt a {
  color: #fff;
}
body.fp .footer .ftr-txt a:hover {
  color: #ffd0ae;
}
body.fp .footer-disclaimer {
  border-top-color: rgba(255, 255, 255, 0.14);
}
body.fp .footer-disclaimer p {
  color: #b8c5d3;
  font-size: 13px;
}

/* =====================================================
   Phonexa form (#omForm) restyle
   ===================================================== */
#omForm,
#omForm input,
#omForm select,
#omForm button,
#omForm label {
  font-family: var(--fp-font-body) !important;
}

/* Step titles */
#omForm.omForm .omPushButtons-title,
#omForm.omForm .omPushButtons-title span,
#omForm .omForm-title,
#omForm h1,
#omForm h2,
#omForm h3 {
  font-family: var(--fp-font-head) !important;
  font-weight: 800 !important;
  color: var(--fp-ink-2) !important;
  letter-spacing: -0.02em !important;
}

/* Titles of the text-field steps (ZIP, name, phone, email...) render at
   Phonexa's small default size; match the answer-button steps' titles
   (form.css: 32 / 28 / 24 / 20px) so every step reads the same */
#omForm .omForm-title,
#omForm h1,
#omForm h2,
#omForm h3 {
  font-size: 32px !important;
  line-height: 1.15 !important;
}
@media (max-width: 1024px) {
  #omForm .omForm-title,
  #omForm h1,
  #omForm h2,
  #omForm h3 {
    font-size: 28px !important;
  }
}
@media (max-width: 768px) {
  #omForm .omForm-title,
  #omForm h1,
  #omForm h2,
  #omForm h3 {
    font-size: 24px !important;
  }
}
@media (max-width: 480px) {
  #omForm .omForm-title,
  #omForm h1,
  #omForm h2,
  #omForm h3 {
    font-size: 20px !important;
  }
}

/* Text inputs and selects (ZIP, name, phone, email...) */
#omForm input[type="text"],
#omForm input[type="tel"],
#omForm input[type="email"],
#omForm input[type="number"],
#omForm select {
  height: 56px !important;
  padding: 0 18px !important;
  border: 2px solid #d7e0ea !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--fp-ink) !important;
  font-size: 17px !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
#omForm input[type="text"]:focus,
#omForm input[type="tel"]:focus,
#omForm input[type="email"]:focus,
#omForm input[type="number"]:focus,
#omForm select:focus {
  border-color: var(--fp-blue) !important;
  box-shadow: 0 0 0 4px rgba(30, 99, 181, 0.15) !important;
  outline: none !important;
}

/* Next / Submit */
#omForm .omForm-button {
  min-height: 56px !important;
  padding: 0 32px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: var(--fp-orange) !important;
  color: var(--fp-ink) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(255, 125, 51, 0.3) !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}
#omForm .omForm-button:hover {
  background-color: var(--fp-orange-hover) !important;
  transform: translateY(-2px) !important;
}
#omForm .omForm-button:disabled {
  opacity: 0.7 !important;
  transform: none !important;
}

/* Answer buttons: white cards that turn orange when chosen */
#omForm .omPushButton-label {
  background-color: #fff !important;
  color: var(--fp-ink) !important;
  border: 2px solid var(--fp-line) !important;
  border-radius: 16px !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(16, 42, 71, 0.06), 0 2px 8px rgba(16, 42, 71, 0.04) !important;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease !important;
}
#omForm .omPushButton-label:hover {
  background-color: var(--fp-orange-soft) !important;
  border-color: var(--fp-orange) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 24px rgba(16, 42, 71, 0.1) !important;
}
#omForm .omPushButton-input:checked + .omPushButton-label {
  background-color: var(--fp-orange) !important;
  border-color: var(--fp-orange) !important;
  color: var(--fp-ink) !important;
  box-shadow: 0 0 0 4px rgba(255, 125, 51, 0.22) !important;
}
#omForm .omPushButton-input:focus-visible + .omPushButton-label {
  outline: 3px solid var(--fp-blue) !important;
  outline-offset: 2px !important;
}

#omForm .omForm-button.js-scope-next:disabled::after {
  color: var(--fp-muted);
}

/* form.css shrinks .omPushButtons-title on small screens but not the span
   inside it, which kept the question at 32px on phones */
#omForm.omForm .omPushButtons-title span {
  font-size: inherit !important;
}

/* Page text is left-aligned in cards (styles.css centres body text) */
.fp-steps li {
  text-align: left;
}
.fp-secure {
  display: block;
  text-align: center;
}
.fp-secure .fp-icon {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
}

@media (max-width: 767px) {
  .fp-hero {
    padding: 28px 0 104px;
  }
  .fp-trust {
    margin-top: 16px;
    gap: 6px;
  }
  .fp-trust li {
    font-size: 0.8rem;
    padding: 5px 10px;
    gap: 5px;
  }
  .fp-trust .fp-icon {
    font-size: 13px;
  }
  .fp-main {
    margin-top: -84px;
  }
  .fp-card {
    padding: 26px 18px 22px;
  }
}
