/* ============================================================
   List a building — public referral / tip form (list-building.html)
   Scoped under .fsq-list. Mirrors submit-building.css conventions:
   a local palette mapped to the Four Square v2 tokens (violet / warm
   navy). All selectors scoped to avoid collisions with styles.css.
   ============================================================ */

.fsq-list {
  --navy:       var(--c-warm-deep);        /* #0D2244 */
  --navy-mid:   var(--c-warm-deep-elev);   /* #112D58 */
  --navy-light: #16356a;
  --border:     rgba(245,247,250,0.10);
  --border-act: rgba(245,247,250,0.26);
  --tp:         var(--c-offwhite);         /* #F5F7FA */
  --ts:         rgba(245,247,250,0.64);
  --tm:         rgba(245,247,250,0.42);
  --faint:      rgba(245,247,250,0.72);
  --accent:     var(--c-violet);           /* #B060CC */
  --accent-l:   rgba(176,96,204,0.13);
  --accent-b:   rgba(176,96,204,0.34);
  --r:          8px;
  --rl:         12px;

  background: var(--c-warm-deep);
  color: var(--tp);
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.6;
}
.fsq-list .eyebrow {
  display: inline-block; font-size: var(--fs-caption); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.fsq-list .inner { max-width: 760px; margin: 0 auto; padding-inline: 24px; }

/* — HERO — */
.fsq-list .hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem)) 0 clamp(3rem, 6vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}
/* Contenedor CENTRADO (margin:0 auto de .inner, como las secciones why/form),
   texto alineado a la IZQUIERDA dentro de él, y por encima de la máscara.
   Como el contenido va centrado, sustituimos el .hero::before global (lateral,
   oscuro a la izquierda) por un oscurecido simétrico para legibilidad pareja. */
.fsq-list .hero::before {
  content: '';
  background: linear-gradient(180deg,
    rgba(13, 34, 68, 0.90) 0%,
    rgba(13, 34, 68, 0.74) 48%,
    rgba(13, 34, 68, 0.86) 100%);
}
.fsq-list .hero .inner { position: relative; z-index: 2; text-align: left; }
.fsq-list .hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 5vw, 50px); line-height: 1.12; letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.fsq-list .hero h1 em { font-style: italic; color: var(--ts); }
.fsq-list .hero-lead {
  font-size: 17px; color: var(--ts); line-height: 1.75;
  max-width: 580px; margin: 0 0 26px;
}
.fsq-list .hero-cta { margin: 0 auto 44px; }

/* — KPI squares — */
.fsq-list .kpi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left;
}
.fsq-list .kpi {
  background: var(--navy-mid); border: 1px solid var(--border-act);
  border-radius: var(--rl); padding: 26px 22px;
}
.fsq-list .kpi-num {
  font-family: var(--font-display); font-size: 44px; line-height: 1;
  color: var(--accent); letter-spacing: -0.02em; margin-bottom: 12px;
}
.fsq-list .kpi-num span { font-size: 26px; }
.fsq-list .kpi-label { font-size: 14px; color: var(--tp); line-height: 1.45; margin-bottom: 10px; }
.fsq-list .kpi-source { font-size: var(--fs-caption); color: var(--faint); letter-spacing: .02em; }
.fsq-list .kpi-strap {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px); color: var(--tp); line-height: 1.4;
  max-width: 620px; margin: 36px auto 0;
}

/* — WHY — */
.fsq-list .why { padding: clamp(3rem, 6vw, 3.5rem) 0; border-bottom: 1px solid var(--border); }
.fsq-list .why h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 3vw, 32px); line-height: 1.2; color: var(--tp);
}
.fsq-list .why-intro { color: var(--ts); margin-top: 14px; font-size: 15px; line-height: 1.75; max-width: 580px; }
.fsq-list .why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--rl); overflow: hidden; margin-top: 28px;
}
.fsq-list .why-card { background: var(--navy-mid); padding: 24px 20px; }
.fsq-list .why-icon svg {
  width: 24px; height: 24px; stroke: var(--accent); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px;
}
.fsq-list .why-card h3 { font-size: 14px; font-weight: 600; color: var(--tp); margin-bottom: 6px; }
.fsq-list .why-card p { font-size: 13px; color: var(--ts); line-height: 1.6; }

/* — FORM band — */
.fsq-list .form-band { background: var(--navy-mid); padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 6rem); }
.fsq-list .form-band .inner { max-width: 660px; }
.fsq-list .form-band h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 3vw, 32px); line-height: 1.2; color: var(--tp);
}
.fsq-list .form-intro { color: var(--ts); margin-top: 12px; font-size: 15px; line-height: 1.7; }
.fsq-list .form-card {
  background: var(--navy); border: 1px solid var(--border-act);
  border-radius: var(--rl); padding: 36px 32px; margin-top: 28px;
}

/* — Form fields — */
.fsq-list .form-grid { display: flex; flex-direction: column; gap: 18px; }
.fsq-list .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fsq-list .field { display: flex; flex-direction: column; gap: 6px; }
.fsq-list label { font-size: var(--fs-caption); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ts); }
.fsq-list label .opt { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: var(--fs-caption); color: var(--faint); }
/* Campos obligatorios → asterisco en color de acento (solo los .field con input/select requerido) */
.fsq-list .field:has(:required) > label::after { content: " *"; color: var(--accent); }
.fsq-list input, .fsq-list select, .fsq-list textarea {
  background: var(--navy-mid); border: 1px solid var(--border); border-radius: var(--r);
  color: var(--tp); font-family: inherit; font-size: 15px; padding: 12px 14px; width: 100%;
  transition: border-color .18s; -webkit-appearance: none;
}
.fsq-list input::placeholder, .fsq-list textarea::placeholder { color: var(--tm); }
.fsq-list input:focus, .fsq-list select:focus, .fsq-list textarea:focus { outline: none; border-color: var(--accent); background: var(--navy-light); }
.fsq-list select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(245,247,250,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}
.fsq-list select option { background: var(--navy-mid); }
.fsq-list textarea { resize: vertical; min-height: 84px; line-height: 1.6; }

.fsq-list .divider-label { font-size: var(--fs-caption); font-weight: 700; letter-spacing: .10em; text-transform: uppercase; color: var(--faint); padding-top: 6px; }
.fsq-list .divider-label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); }
.fsq-list .sub-note { font-size: 12px; color: var(--faint); line-height: 1.6; margin-top: -6px; }

/* — Volunteer box — */
.fsq-list .volunteer-box { background: var(--accent-l); border: 1px solid var(--accent-b); border-radius: var(--r); padding: 16px 18px; }
.fsq-list .volunteer-sub { font-size: 12px; color: var(--ts); line-height: 1.6; margin-top: 8px; padding-left: 26px; }

/* — Checkbox — */
.fsq-list .check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ts); cursor: pointer; line-height: 1.6; }
.fsq-list .check-label input {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; min-width: 20px; margin-top: 1px; padding: 0;
  border: 1.5px solid var(--border-act); border-radius: 5px;
  background: rgba(245,247,250,0.06);
  position: relative; cursor: pointer; flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.fsq-list .check-label input:checked { background: var(--accent); border-color: var(--accent); }
.fsq-list .check-label input:checked::after {
  content: ""; position: absolute; left: 6px; top: 2.5px;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.fsq-list .check-label.privacy { color: var(--tm); }
.fsq-list .volunteer-box .check-label { color: var(--tp); font-weight: 500; font-size: 14px; }
.fsq-list .check-label a { color: var(--accent); text-decoration: none; }
.fsq-list .check-label a:hover { text-decoration: underline; }

/* — Submit — */
.fsq-list .submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fsq-list .submit-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: none; border-radius: var(--r); font-family: inherit; font-size: 15px; font-weight: 600; padding: 14px 30px; cursor: pointer; transition: opacity .18s, transform .14s; }
.fsq-list .submit-btn:hover { opacity: .88; }
.fsq-list .submit-btn:active { transform: scale(.98); }
.fsq-list .submit-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fsq-list .submit-note { font-size: 12px; color: var(--tm); display: flex; align-items: center; gap: 6px; }
.fsq-list .submit-note::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* — Hero CTA button (shares submit-btn look) — */
.fsq-list .btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: none; border-radius: var(--r); font-family: inherit; font-size: 15px; font-weight: 600; padding: 14px 28px; cursor: pointer; transition: opacity .18s; text-decoration: none; }
.fsq-list .btn-primary:hover { opacity: .88; }
.fsq-list .btn-primary svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* — Success — */
.fsq-list .success { display: none; text-align: center; padding: 48px 20px; }
.fsq-list .success.show { display: block; }
.fsq-list .success-ring { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-l); border: 1px solid var(--accent-b); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.fsq-list .success-ring svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fsq-list .success h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--tp); margin-bottom: 8px; }
.fsq-list .success p { font-size: 14px; color: var(--ts); line-height: 1.7; max-width: 400px; margin: 0 auto; }
.fsq-list .success .ref-badge + p { margin-top: 18px; }
.fsq-list .success p + p { margin-top: 12px; }
.fsq-list .success p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.fsq-list .ref-badge { display: inline-block; margin-top: 14px; padding: 6px 16px; background: var(--accent-l); border: 1px solid var(--accent-b); border-radius: 4px; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .06em; }

/* — Responsive — */
@media (max-width: 680px) {
  .fsq-list .kpi-grid { grid-template-columns: 1fr; gap: 12px; }
  .fsq-list .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .fsq-list .form-card { padding: 26px 20px; } }
@media (max-width: 480px) { .fsq-list .row-2 { grid-template-columns: 1fr; } }
