/*
 * Template: free-quote
 * Page-specific styling for the Free Website Development Quote page.
 *
 * Source of truth for measurements:
 *   - https://www.5uwebsite.com/media/com_sppagebuilder/css/page-245.css
 *     (extracted Apr 25 2026 — section/addon ID rules for free-quote layout)
 *   - frontend/source-pages/en/255__free-quote/source-desktop.png
 *     (1920×3366 pixel-diff target)
 *
 * Depends on: tokens.css, base.css, page-title-banner.css (for breadcrumb-bar reuse).
 *             NEVER redefine those tokens here.
 *
 * Layout sections (top to bottom):
 *   1. .fq-hero            — H1 + intro, white bg, 90px padding
 *   2. .fq-breadcrumb-bar  — extends shared page-breadcrumb-bar
 *   3. .fq-form-section    — pale-blue bg, H2 + form
 */

/* ============ Section 1: Hero (H1 + intro) ============ */
.fq-hero {
  background: #fff;
  padding: 90px 0;
}

.fq-hero__inner {
  text-align: center;
}

/* H1 with a 60×60 blue square ::before pseudo-element.
   Legacy: #sppb-addon-1581262505971 .sppb-addon-title
   font-weight:700; font-size:48px; line-height:40px; color:#262626;
   margin-bottom:60px; text-align:center.
   Pseudo: 60×60, #236CE2, margin -30/30/-5px, vertical-align:middle. */
.fq-hero__heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 48px;
  line-height: 40px;
  color: var(--color-text-blog-h2);
  margin: 0 0 60px;
  text-align: center;
}
.fq-hero__heading::before {
  content: "";
  display: inline-block;
  width: 60px;
  height: 60px;
  background: var(--color-brand);
  vertical-align: middle;
  margin-left: -30px;
  margin-right: 30px;
  margin-top: -5px;
}

/* Intro paragraph: width 60%, font-size:20px, line-height:34px, color rgba(74,74,74,1). */
.fq-hero__lead {
  width: 60%;
  max-width: 100%;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 34px;
  color: rgba(74, 74, 74, 1);
  text-align: left;
}
.fq-hero__lead p { margin: 0; }

/* ============ Section 2: Breadcrumb bar (overrides shared) ============ */
/* Shared .page-breadcrumb-bar from page-title-banner.css gives us the 1px
   bottom border + 10px padding + transparent breadcrumb. The legacy version
   centers the breadcrumb (max-width:1170px, margin:0 auto). */
.fq-breadcrumb-bar .breadcrumb {
  margin: 0 auto !important;
  max-width: 1170px;
}
.fq-breadcrumb-bar .breadcrumb a { color: #777; }
.fq-breadcrumb-bar .breadcrumb-item.active { color: var(--color-brand); }

/* ============ Section 3: Pale-blue form section ============ */
/* Legacy: #section-id-1581262505963
   background: rgba(244,247,253,1) (pale blue);
   padding: 90px 0; container has padding-left/right:100px on the column. */
.fq-form-section {
  background-color: rgba(244, 247, 253, 1);
  padding: 90px 0;
}

.fq-form-section__inner {
  padding-left: 100px;
  padding-right: 100px;
  max-width: 1170px;
}

/* H2 "Free Quote": 36px, weight 500, line-height 32px, centered, mb 40px. */
.fq-form-section__heading {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 36px;
  line-height: 32px;
  color: var(--color-text-blog-h2);
  text-align: center;
  margin: 0 0 40px;
}

/* ============ Form embed placeholder ============ */
/* Outer shell: width 80%, centered. Backend (Convert Forms / Payment Form)
   will mount its real form here once wired. The min-height keeps the
   pale-blue section the right height for pixel-diff against the source PNG. */
.fq-form-shell {
  width: 80%;
  max-width: 100%;
  margin: 0 auto;
  margin-top: 50px;        /* legacy fieldset margin-top:50px applies to the first one */
}

/* Fieldset / legend (Contact Information / Your Website Requirements). */
.fq-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 50px;
}
.fq-legend {
  font-family: "Noto Sans", "Montserrat", var(--font-sans);
  font-weight: 600;
  font-size: 30px;
  line-height: 42px;
  color: rgba(34, 34, 34, 1);
  border-bottom: none;
  margin-bottom: 8px;
  padding: 0;
}

.fq-field {
  margin-bottom: 20px;
}

.fq-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 36px;
  color: rgba(74, 74, 74, 1);
}

.fq-req {
  color: #d00;
  font-size: 14px;
  vertical-align: super;
  margin-left: 2px;
}

.fq-tip {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid #999;
  border-radius: 50%;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  color: #999;
  margin-right: 4px;
  vertical-align: middle;
}

/* Inputs: rounded 6px, 2px solid #4A4A4A, transparent bg, height 52px, font 18px. */
.fq-input {
  border-radius: 6px;
  border: 2px solid #4A4A4A;
  width: 100%;
  max-width: 100%;
  height: 52px;
  font-size: 18px;
  background: transparent;
  padding: 0 12px;
  color: rgba(74, 74, 74, 1);
}
.fq-input::placeholder { color: rgba(74, 74, 74, 0.5); }

/* Textareas: 250px tall, 4px radius, 2px solid rgba(34,34,34,1). */
.fq-textarea {
  width: 100%;
  max-width: 100%;
  height: 250px;
  background: transparent;
  border-radius: 4px;
  border: 2px solid rgba(34, 34, 34, 1);
  font-size: 18px;
  padding: 12px;
  resize: vertical;
  font-family: var(--font-sans);
  color: rgba(74, 74, 74, 1);
}
.fq-textarea--short { height: 180px; }

/* Radio row (inline). */
.fq-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 64px;
  font-size: 18px;
  line-height: 26px;
  margin-top: 4px;
}
.fq-radio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: default;
}
.fq-radio input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
}

/* Date row: input + calendar button. */
.fq-date-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.fq-date {
  flex: 1 1 auto;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right-width: 0;
}
.fq-date-btn {
  width: 56px;
  height: 52px;
  background: var(--color-brand);
  color: #fff;
  border: 2px solid var(--color-brand);
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fq-date-icon { font-size: 18px; }

/* Captcha placeholder row. */
.fq-captcha-row {
  margin-top: 20px;
  margin-bottom: 30px;
}
.fq-captcha-label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 36px;
  color: rgba(74, 74, 74, 1);
  margin-bottom: 12px;
}
.fq-captcha-stub {
  width: 304px;
  height: 78px;
  border: 1px solid #d3d3d3;
  background: #f9f9f9;
  border-radius: 4px;
}

/* Submit button: rounded pill (37px), 2px solid #4A4A4A, transparent bg,
   width 182px, color #4A4A4A, NotoSans-Bold font, weight bold. */
.fq-actions {
  background-color: transparent;
  border: none;
  text-align: center;
  margin-top: 19px;
}
.fq-submit {
  background: transparent;
  border: 2px solid #4A4A4A;
  border-radius: 37px;
  font-size: 18px;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #4A4A4A;
  line-height: 29px;
  width: 182px;
  height: auto;
  padding: 11px 0;
  cursor: default;
}

/* ============ Optional: Trust signals row (data-driven, empty by default) ============ */
.fq-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 24px;
  margin: 60px auto 0;
  max-width: 100%;
}
.fq-trust-item {
  flex: 1 1 140px;
  text-align: center;
  font-size: 16px;
  color: var(--color-text-faint);
}
.fq-trust-item img,
.fq-trust-item svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: block;
}

/* ============ Optional: FAQ accordion (data-driven, empty by default) ============ */
.fq-faq {
  margin: 60px auto 0;
  max-width: 800px;
}
.fq-faq__heading {
  text-align: center;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 24px;
}
.fq-faq__item {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.fq-faq__question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 500;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
}
.fq-faq__answer {
  padding: 0 20px 16px;
  color: var(--color-text-faint);
  font-size: 16px;
  line-height: 1.7;
}
.fq-faq__item[hidden] .fq-faq__answer { display: none; }

/* ============ Responsive ============ */
@media (max-width: 1199.98px) {
  .fq-hero { padding: 60px 0; }
  .fq-hero__heading { font-size: 42px; line-height: 50px; margin-bottom: 40px; }
  .fq-hero__lead { width: 80%; }
  .fq-form-section { padding: 60px 0; }
  .fq-form-section__inner { padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 991.98px) {
  .fq-hero__heading { font-size: 36px; line-height: 48px; }
  .fq-hero__lead { width: 90%; font-size: 18px; line-height: 30px; }
  .fq-form-shell { width: 90%; }
}

@media (max-width: 767.98px) {
  .fq-hero { padding: 30px 0; }
  .fq-hero__heading {
    font-size: 31px;
    line-height: 52px;
    margin-bottom: 30px;
    text-align: center;
  }
  .fq-hero__heading::before {
    display: block;
    margin: 10px auto;
    width: 30px;
    height: 30px;
    margin-left: 0;
  }
  .fq-hero__lead { width: 100%; font-size: 16px; line-height: 28px; }
  .fq-form-section { padding: 30px 0; }
  .fq-form-section__inner { padding-left: 16px; padding-right: 16px; }
  .fq-form-section__heading { font-size: 26px; line-height: 34px; margin-bottom: 20px; }
  .fq-form-shell { width: 100%; margin-top: 20px; }
  .fq-legend { font-size: 22px; line-height: 32px; }
  .fq-radio-row { flex-direction: column; gap: 8px; }
  .fq-radio input[type="radio"] { position: relative; }
}
