/* ===========================================================================
   subcontractors.css
   Subcontractor application page — uses quote.css form styles + service_pages_v2.css trust strip,
   adds page-specific sections: intro, summary, document cards, payment requirements, bottom CTA.
   =========================================================================== */


/* ===========================================================================
   Simple-page layout overrides (added 2026-05-10)
   Strips decorative sections; favors a clean editorial flow.
   =========================================================================== */

/* Hero — minimal, no pill row */
.contact-page .contact-hero {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* Simple downloads list (replaces big doc cards) */
.sub-doc-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sub-doc-list li {
  font-family: 'Figtree', sans-serif;
}
.sub-doc-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(228, 221, 189, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 221, 189, 0.3);
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}
.sub-doc-list a:hover,
.sub-doc-list a:focus-visible {
  border-bottom-color: rgba(228, 221, 189, 0.95);
}
.sub-doc-list__meta {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

/* Full-width form panel */
.panel.panel--full {
  max-width: 860px;
  margin: 0 auto;
}

/* Tighten the resources section */
.sub-resources {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.sub-resources__intro {
  margin-bottom: 0 !important;
}

/* Even out vertical rhythm across simple sections */
.sub-intro, .sub-summary, .sub-payment {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}


/* ===== Subcontractor intro / value-prop block ============================ */
.sub-intro {
  background: var(--charcoal, #0d1216);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(2.5rem, 5vw, 4rem) 18px;
}
.sub-intro p {
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Figtree', sans-serif;
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 78ch;
  margin: 0 0 1.1rem;
  text-wrap: pretty;
}
.sub-intro p:last-child { margin-bottom: 0; }


/* ===== Summary section =================================================== */
.sub-summary {
  background: #070A0C;
  padding: clamp(3rem, 5vw, 4.5rem) 18px;
}
.sub-summary .section-eyebrow {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(215, 196, 162, 0.88);
  margin-bottom: 0.6rem;
}
.sub-summary h2 {
  font-family: 'Fraunces', 'Times New Roman', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: rgba(228, 221, 189, 0.95);
  margin: 0;
  font-variation-settings: "opsz" 96;
}
.sub-summary .section-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(18, 140, 153, 0.95), rgba(215, 196, 162, 0.5));
  border-radius: 2px;
  margin: 0.7rem 0 1.4rem;
}
.sub-summary p {
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 78ch;
  margin: 0 0 1.1rem;
}
.sub-summary p:last-child { margin-bottom: 0; }
.sub-summary__email {
  background: linear-gradient(180deg, rgba(18, 140, 153, 0.08), rgba(18, 140, 153, 0.04));
  border-left: 3px solid rgba(18, 140, 153, 0.6);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
}
.sub-summary__email a {
  color: rgba(228, 221, 189, 0.95);
  border-bottom: 1px solid rgba(228, 221, 189, 0.4);
  text-decoration: none;
  padding-bottom: 1px;
}
.sub-summary__email a:hover {
  border-bottom-color: rgba(228, 221, 189, 0.95);
}


/* ===== Resources / Document cards ======================================== */
.sub-resources {
  background: var(--charcoal, #0d1216);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(3rem, 5vw, 4.5rem) 18px;
}
.sub-resources .section-eyebrow {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(215, 196, 162, 0.88);
  margin-bottom: 0.6rem;
}
.sub-resources h2 {
  font-family: 'Fraunces', 'Times New Roman', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: rgba(228, 221, 189, 0.95);
  margin: 0;
  font-variation-settings: "opsz" 96;
}
.sub-resources .section-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(18, 140, 153, 0.95), rgba(215, 196, 162, 0.5));
  border-radius: 2px;
  margin: 0.7rem 0 1.2rem;
}
.sub-resources__intro {
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 76ch;
  margin: 0 0 2rem;
}
.sub-resources__intro a {
  color: rgba(228, 221, 189, 0.92);
  border-bottom: 1px solid rgba(228, 221, 189, 0.35);
  padding-bottom: 1px;
  text-decoration: none;
}
.sub-resources__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.sub-doc-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: linear-gradient(180deg, rgba(16, 23, 28, 0.78), rgba(13, 18, 22, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.sub-doc-card:hover,
.sub-doc-card:focus-visible {
  border-color: rgba(18, 140, 153, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  background: linear-gradient(180deg, rgba(18, 140, 153, 0.08), rgba(13, 18, 22, 0.85));
}
.sub-doc-card:focus-visible {
  outline: 3px solid rgba(228, 221, 189, 0.55);
  outline-offset: 3px;
}
.sub-doc-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: rgba(215, 196, 162, 0.95);
  background: rgba(18, 140, 153, 0.12);
  border: 1px solid rgba(18, 140, 153, 0.32);
  border-radius: 12px;
}
.sub-doc-card__icon svg { width: 28px; height: 28px; }
.sub-doc-card__body { flex: 1; }
.sub-doc-card__label {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(215, 196, 162, 0.85);
  margin-bottom: 0.4rem;
}
.sub-doc-card h3 {
  font-family: 'Fraunces', 'Times New Roman', Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.96);
  margin: 0 0 0.5rem;
  font-variation-settings: "opsz" 36;
}
.sub-doc-card p {
  color: rgba(255, 255, 255, 0.76);
  font-family: 'Figtree', sans-serif;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0 0 0.85rem;
}
.sub-doc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Figtree', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(18, 140, 153, 0.98);
  letter-spacing: 0.01em;
}
.sub-doc-card:hover .sub-doc-card__cta {
  color: rgba(228, 221, 189, 0.95);
}

@media (max-width: 760px) {
  .sub-resources__grid { grid-template-columns: 1fr; gap: 1rem; }
  .sub-doc-card { flex-direction: column; gap: 1rem; }
  .sub-doc-card__icon { width: 48px; height: 48px; }
  .sub-doc-card__icon svg { width: 24px; height: 24px; }
}


/* ===== Form section wrapper ============================================== */
.sub-form-wrap {
  background: #070A0C;
  padding: clamp(3rem, 5vw, 4.5rem) 18px;
}
.sub-form-wrap .panel__head .section-eyebrow {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(215, 196, 162, 0.88);
  margin-bottom: 0.55rem;
}

.panel-subhead {
  font-family: 'Figtree', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(228, 221, 189, 0.85);
  margin: 1.6rem 0 0.7rem;
}
.info-list--bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list--bullets li {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Figtree', sans-serif;
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 0.55rem;
}
.info-list--bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(18, 140, 153, 0.85);
}


/* ===== Payment requirements section ====================================== */
.sub-payment {
  background: var(--charcoal, #0d1216);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(3rem, 5vw, 4.5rem) 18px;
}
.sub-payment .section-eyebrow {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(215, 196, 162, 0.88);
  margin-bottom: 0.6rem;
}
.sub-payment h2 {
  font-family: 'Fraunces', 'Times New Roman', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: rgba(228, 221, 189, 0.95);
  margin: 0;
  font-variation-settings: "opsz" 96;
}
.sub-payment .section-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(18, 140, 153, 0.95), rgba(215, 196, 162, 0.5));
  border-radius: 2px;
  margin: 0.7rem 0 1.4rem;
}
.sub-payment p {
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 78ch;
  margin: 0 0 1.1rem;
}
.sub-payment p:last-child { margin-bottom: 0; }
.sub-payment__highlight {
  background: linear-gradient(180deg, rgba(228, 221, 189, 0.08), rgba(228, 221, 189, 0.03));
  border-left: 3px solid rgba(228, 221, 189, 0.6);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88) !important;
}


/* ===== Bottom CTA ======================================================== */
.sub-bottom-cta {
  background:
    radial-gradient(900px 500px at 80% 50%, rgba(228, 221, 189, 0.12), transparent 60%),
    linear-gradient(120deg, var(--accent-deep, #0B5F68), rgba(18, 140, 153, 0.92));
  padding: clamp(2.4rem, 4vw, 3.6rem) 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sub-bottom-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15), transparent 30%, rgba(0,0,0,0.2)),
    repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(255,255,255,0.025) 24px, rgba(255,255,255,0.025) 25px);
  pointer-events: none;
}
.sub-bottom-cta .contact-wrap {
  position: relative;
  z-index: 1;
}
.sub-bottom-cta h2 {
  font-family: 'Fraunces', 'Times New Roman', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: #fff;
  margin: 0 0 0.5rem;
  font-variation-settings: "opsz" 72;
}
.sub-bottom-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 1.4rem;
}
.btn-row--center { justify-content: center; }
.sub-bottom-cta .btn--primary {
  background: var(--warm, rgba(228, 221, 189, 0.95));
  color: #0D1216 !important;
  border-color: rgba(0, 0, 0, 0.08);
}
.sub-bottom-cta .btn--primary:hover { background: #fff; }
.sub-bottom-cta .btn--ghost {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff !important;
}
.sub-bottom-cta .btn--ghost:hover {
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(228, 221, 189, 0.55);
}


/* ===========================================================================
   Formal application form layout (revised 2026-05-09)
   Numbered sections, asterisk-marked required fields, flat trade blocks,
   single uniform field treatment across input / select / file / textarea.
   =========================================================================== */


/* ----- Form intro line ----- */
.form-intro {
  font-family: 'Figtree', sans-serif;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  margin: 0 0 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


/* ----- Numbered section dividers ----- */
.sub-form .form-section {
  margin-bottom: 2.2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sub-form .form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0.6rem;
}
.form-section__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Figtree', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(228, 221, 189, 0.92);
  margin: 0 0 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(228, 221, 189, 0.18);
}
.form-section__num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-family: 'Figtree', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(228, 221, 189, 0.95);
  background: rgba(18, 140, 153, 0.18);
  border: 1px solid rgba(18, 140, 153, 0.4);
  border-radius: 4px;
  line-height: 1;
}


/* ----- Required asterisk ----- */
.req-mark {
  color: rgba(255, 138, 138, 0.95);
  font-weight: 700;
  margin-left: 0.15rem;
  font-size: 0.95em;
}


/* ----- Field notes (subtle helper text under a field) ----- */
.field-note {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.35rem;
  line-height: 1.5;
}


/* ----- Two-column field rows (only where it pairs naturally) ----- */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
}
.field-row .field { margin-bottom: 1.1rem; }
@media (max-width: 700px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}


/* ----- Trade specialty: flat blocks with simple labels (no nested boxes) ----- */
.trade-block {
  margin: 0.85rem 0 1.1rem;
}
.trade-block:last-child { margin-bottom: 0; }
.trade-block__label {
  font-family: 'Figtree', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.55rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.trade-block .checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem 0.85rem;
}


/* ----- Document upload fields styled as standard fields (no group boxes) ----- */
.sub-form .form-section .field input[type="file"] {
  /* Inherits from .field input — no extra container */
}
.sub-form .field label em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}
.upload-note {
  font-family: 'Figtree', sans-serif;
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  margin: 0.85rem 0 0;
}
.upload-note a {
  color: rgba(228, 221, 189, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 221, 189, 0.35);
  padding-bottom: 1px;
}
.upload-note a:hover { border-bottom-color: rgba(228, 221, 189, 0.85); }


/* ----- Field-help text alignment ----- */
.sub-form .field-help {
  font-family: 'Figtree', sans-serif;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.85rem;
  line-height: 1.55;
}
.sub-form .field-help a {
  color: rgba(228, 221, 189, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 221, 189, 0.35);
  padding-bottom: 1px;
}
.sub-form .field-help a:hover { border-bottom-color: rgba(228, 221, 189, 0.85); }


/* ----- Polished sidebar ----- */
.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-family: 'Figtree', sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.75rem;
}
.icon-list li:last-child { margin-bottom: 0; }
.icon-list__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: rgba(18, 140, 153, 0.95);
  margin-top: 2px;
}
.icon-list__icon svg { width: 18px; height: 18px; }

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-family: 'Figtree', sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.step-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}
.step-list__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', 'Times New Roman', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(228, 221, 189, 0.92);
  background: rgba(18, 140, 153, 0.14);
  border: 1px solid rgba(18, 140, 153, 0.32);
  border-radius: 50%;
  font-variation-settings: "opsz" 24;
  letter-spacing: -0.02em;
  line-height: 1;
}
