/* crews.pandlse.com — P&L crew / vendor sign-up.
   Self-contained, no frameworks, mobile-first. Brand: navy #1B255A / red #CD161E. */

:root {
  --navy: #1b255a;
  --navy-deep: #111a45;
  --red: #cd161e;
  --red-dark: #a91117;
  --ink: #141721;
  --muted: #5a6172;
  --line: #e3e7ef;
  --bg: #f6f7fb;
  --card: #ffffff;
  --green: #1c7a3f;
  --green-bg: #e9f5ee;
  --amber-bg: #fff6e5;
  --amber-line: #f0d49b;
  --amber-ink: #8a5a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17, 26, 69, 0.06), 0 8px 24px rgba(17, 26, 69, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--navy); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 18px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.site-header img { height: 42px; width: auto; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: 0.4px; line-height: 1.2; }
.brand-sub { font-size: 11.5px; color: #b9c2e0; }
.spacer { flex: 1; }
.lang-toggle {
  display: flex; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 999px; overflow: hidden;
}
.lang-toggle button {
  background: transparent; color: #fff; border: 0; padding: 7px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.lang-toggle button.active { background: #fff; color: var(--navy); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: #fff;
  padding: 52px 0 92px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto -10% -55% -10%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(205, 22, 30, 0.25), transparent 65%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(30px, 5.4vw, 46px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: #ffd9db; }
.hero p.lead { font-size: clamp(16px, 2.4vw, 19px); color: #cdd5ee; max-width: 620px; margin: 0 0 26px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-strip { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.trust-strip div { font-size: 13.5px; color: #aeb8dc; }
.trust-strip b { display: block; font-size: 19px; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
  font-size: 16.5px; font-weight: 700; padding: 14px 26px; min-height: 52px;
  transition: transform 0.06s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(205, 22, 30, 0.35); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-line { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-line:hover { border-color: var(--navy); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 9px; }

/* ---------- sections ---------- */
section { padding: 54px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 32px); color: var(--navy); margin: 0 0 8px; letter-spacing: -0.3px; }
.section-head p { color: var(--muted); margin: 0; font-size: 16.5px; }
.accent-bar { width: 64px; height: 4px; background: var(--red); border-radius: 2px; margin: 14px auto 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.step-card { background: var(--card); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.step-num {
  width: 40px; height: 40px; border-radius: 999px; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 12px;
}
.step-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.step-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* checklist */
.checklist { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .checklist ul { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checklist .ico {
  flex: 0 0 38px; height: 38px; border-radius: 10px; background: #eef1fa; display: flex;
  align-items: center; justify-content: center; font-size: 19px;
}
.checklist li b { display: block; }
.checklist li span.sub { color: var(--muted); font-size: 13.5px; }

/* ---------- wizard ---------- */
.wizard {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; scroll-margin-top: 90px;
}
@media (min-width: 700px) { .wizard { padding: 36px 42px; } }
.progress { margin-bottom: 26px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 7px; }
.progress-track { height: 8px; background: #e9ecf5; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--red), #e8464e); border-radius: 99px; transition: width 0.3s ease; }

.wstep { display: none; }
.wstep.active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wstep h3 { color: var(--navy); font-size: 21px; margin: 0 0 4px; }
.wstep .step-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }

.explain {
  background: #eef4ff; border: 1px solid #cfdcf7; border-radius: 10px;
  padding: 12px 14px; font-size: 14px; color: #2c3a66; margin: 0 0 18px;
}
.explain b { color: var(--navy); }

.grid2 { display: grid; gap: 14px; }
@media (min-width: 620px) { .grid2 { grid-template-columns: 1fr 1fr; } .span2 { grid-column: span 2; } }

label.f { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
label.f .opt { color: var(--muted); font-weight: 500; }
input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  padding: 13px 14px; font-size: 16px; color: var(--ink); outline: none;
  transition: border 0.12s ease, box-shadow 0.12s ease;
}
input:focus, select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 37, 90, 0.12); }
input.err { border-color: var(--red); background: #fff7f7; }
.field-err { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 4px; display: none; }

.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice {
  position: relative; border: 1.5px solid var(--line); border-radius: 11px; background: #fff;
  padding: 12px 13px; cursor: pointer; font-size: 15px; font-weight: 600; display: flex; gap: 9px; align-items: center;
  user-select: none;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice.on { border-color: var(--navy); background: #eef2fd; box-shadow: 0 0 0 2px rgba(27, 37, 90, 0.14); }
.choice .em { font-size: 19px; }

.radio-row { display: grid; gap: 10px; }
.radio-card { border: 1.5px solid var(--line); border-radius: 11px; padding: 13px 14px; cursor: pointer; display: flex; gap: 11px; align-items: flex-start; background: #fff; }
.radio-card.on { border-color: var(--navy); background: #eef2fd; }
.radio-card input { margin-top: 3px; accent-color: var(--navy); width: 18px; height: 18px; }
.radio-card b { display: block; font-size: 15px; }
.radio-card span { color: var(--muted); font-size: 13.5px; }

/* uploads */
.upload-grid { display: grid; gap: 14px; }
@media (min-width: 620px) { .upload-grid { grid-template-columns: 1fr 1fr; } }
.upl {
  border: 2px dashed #c9d1e4; border-radius: 12px; background: #fafbfe; padding: 16px;
  text-align: center; cursor: pointer; transition: border 0.15s ease, background 0.15s ease; position: relative;
}
.upl:hover { border-color: var(--navy); }
.upl.has { border-style: solid; border-color: var(--green); background: var(--green-bg); }
.upl.err { border-color: var(--red); background: #fff7f7; }
.upl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upl .big { font-size: 26px; }
.upl b { display: block; font-size: 15px; margin-top: 4px; }
.upl .hint { color: var(--muted); font-size: 13px; }
.upl .done { color: var(--green); font-weight: 700; font-size: 13.5px; display: none; word-break: break-all; }
.upl.has .done { display: block; }
.upl.has .hint { display: none; }
.upl img.thumb { max-height: 74px; border-radius: 8px; margin-top: 8px; }

/* agreements */
.doc-list { display: grid; gap: 10px; margin: 0 0 18px; }
.doc-item {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 11px; padding: 12px 14px;
}
.doc-item .ic { font-size: 20px; }
.doc-item b { font-size: 14.5px; display: block; }
.doc-item span { font-size: 12.5px; color: var(--muted); display: block; }
.doc-item button { margin-left: auto; white-space: nowrap; }

.consent-box {
  border: 1.5px solid var(--line); border-radius: 11px; padding: 14px; background: #fff;
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; cursor: pointer;
}
.consent-box input { width: 22px; height: 22px; accent-color: var(--navy); flex: 0 0 auto; margin-top: 1px; }
.consent-box.checked { border-color: var(--green); background: var(--green-bg); }
.consent-box .txt { font-size: 13.8px; color: #333a4d; }
.consent-box .txt b { color: var(--ink); }

.sig-preview {
  border: 1.5px dashed #c9d1e4; border-radius: 11px; min-height: 84px; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 8px 14px 2px; margin-top: 8px;
}
.sig-preview span { font-family: "PLSignature", cursive; font-size: 44px; color: #1b2559; line-height: 1; }
.sig-line { border-top: 1.5px solid var(--ink); margin: 0 18px; padding-top: 5px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* wizard nav */
.wnav { display: flex; gap: 12px; margin-top: 26px; }
.wnav .btn { flex: 1; }
.wnav .btn-back { flex: 0 0 auto; }

.form-alert {
  display: none; background: #fdecec; border: 1px solid #f0b4b4; color: #a11111;
  border-radius: 10px; padding: 11px 14px; font-size: 14.5px; font-weight: 600; margin-top: 16px;
}

/* success */
.success-panel { text-align: center; padding: 30px 10px; display: none; }
.success-panel .big-check {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 999px; background: var(--green-bg);
  display: flex; align-items: center; justify-content: center; font-size: 44px; color: var(--green);
}
.success-panel h3 { color: var(--navy); font-size: 25px; margin: 0 0 8px; }
.success-panel p { color: var(--muted); max-width: 480px; margin: 0 auto 12px; }
.next-steps { text-align: left; max-width: 480px; margin: 20px auto 0; background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 12px; padding: 16px 18px; }
.next-steps b { color: var(--amber-ink); }
.next-steps ol { margin: 8px 0 0; padding-left: 20px; font-size: 14.5px; }

/* ---------- insurance / agent section ---------- */
.verbiage {
  background: #fff; border: 1.5px solid var(--line); border-left: 5px solid var(--navy);
  border-radius: 10px; padding: 18px 20px; font-size: 14px; line-height: 1.6; color: #222;
  font-family: Georgia, "Times New Roman", serif;
}
.verbiage p { margin: 0 0 12px; }
.verbiage p:last-child { margin: 0; }
.agent-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.copy-ok { color: var(--green); font-weight: 700; font-size: 14px; display: none; align-self: center; }

/* ---------- downloads / paper ---------- */
.dl-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dl {
  display: flex; gap: 12px; align-items: center; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 11px; padding: 13px 15px; text-decoration: none; color: var(--ink);
  transition: border 0.12s, box-shadow 0.12s;
}
.dl:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.dl .ic { font-size: 22px; }
.dl b { font-size: 14px; display: block; line-height: 1.25; }
.dl span { font-size: 12px; color: var(--muted); }

.locations { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 18px; }
.loc { background: var(--card); border-radius: 11px; padding: 16px 18px; box-shadow: var(--shadow); font-size: 14.5px; display: block; color: var(--ink); text-decoration: none; transition: transform 0.1s ease, box-shadow 0.12s ease; }
a.loc:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(17, 26, 69, 0.16); }
.loc b { color: var(--navy); display: block; margin-bottom: 3px; }
.loc-map { display: block; margin-top: 7px; color: var(--red); font-weight: 700; font-size: 13px; }
.other-wrap { margin-top: 2px; }

/* ---------- modal ---------- */
.modal-wrap {
  position: fixed; inset: 0; background: rgba(12, 17, 43, 0.55); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.modal-wrap.open { display: flex; }
.modal {
  background: #fff; border-radius: 14px; max-width: 720px; width: 100%; max-height: 86vh;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.modal header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.modal header h4 { margin: 0; font-size: 16.5px; color: var(--navy); flex: 1; }
.modal header button { border: 0; background: #eef1fa; border-radius: 8px; font-size: 16px; width: 34px; height: 34px; cursor: pointer; }
.modal .m-explain { background: #eef4ff; padding: 10px 20px; font-size: 13.5px; color: #2c3a66; border-bottom: 1px solid var(--line); }
.modal .m-body { padding: 18px 22px; overflow-y: auto; font-size: 13.5px; line-height: 1.6; color: #23283a; }
.modal .m-body h5 { font-size: 13.5px; margin: 14px 0 4px; }
.modal .m-body p { margin: 0 0 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #aeb8dc; padding: 34px 0 44px; font-size: 13.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.site-footer img { height: 40px; }
.site-footer a { color: #dfe5f7; }

/* misc */
.hidden { display: none !important; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
#hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

@media (max-width: 480px) {
  .wnav { flex-direction: column-reverse; }
  .hero { padding: 40px 0 72px; }
}
