/* ── NOTH Quote — Global Styles ──────────────────────────────── */
:root {
  --yellow:   #F3D25E;
  --yellow-dk:#E8C04A;
  --yellow-lt:#FEFBF0;
  --dark:     #1A1A1A;
  --gray-600: #6B7280;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --white:    #FFFFFF;
  --green:    #16A34A;
  --red:      #DC2626;
  --radius:   10px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--gray-100);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ──────────────────────────────────────────────────────── */
.nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-logo  { height: 36px; object-fit: contain; }
.nav-contact a { color: var(--yellow); font-weight: 600; font-size: 14px; text-decoration: none; }
.nav-contact a:hover { text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  margin-top: auto;
}
.footer p { margin: 4px 0; }
.footer a  { color: var(--yellow); text-decoration: none; }

/* ── Intake Page ──────────────────────────────────────────────── */
.intake-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  flex: 1;
}

.intake-hero {
  text-align: center;
  padding: 32px 0 24px;
}
.intake-hero h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.intake-hero p {
  color: var(--gray-600);
  margin-top: 8px;
  font-size: 15px;
}

/* ── Two-col and three-col form rows ─────────────────────────── */
.form-row       { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3     { grid-template-columns: 1fr 0.5fr 0.6fr; }
@media(max-width:540px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }

/* ── Same Day toggle ──────────────────────────────────────────── */
.date-row       { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.date-input     { flex: 1; min-width: 0; }
.same-day-label { display: flex; align-items: center; gap: 6px; cursor: pointer; flex-shrink: 0; }
.same-day-label input { display: none; }
.same-day-badge {
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  transition: all .15s;
  white-space: nowrap;
}
.same-day-label input:checked + .same-day-badge {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

/* ── Address autocomplete ─────────────────────────────────────── */
.ac-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--yellow);
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  display: none;
}
.ac-dropdown.open { display: block; }
.ac-item {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  line-height: 1.4;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover      { background: var(--yellow-lt); }
.ac-loading         { padding: 10px 14px; font-size: 12px; color: var(--gray-400); }

/* ── Truck hover zones & tooltip ─────────────────────────────── */
.truck-zone     { cursor: crosshair; }
.truck-zone:hover { fill: rgba(243,210,94,.18); }
.vm-truck       { position: relative; flex: 1; min-width: 0; }
.truck-tooltip  {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
.truck-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--dark);
}

/* ── Pricing notice ───────────────────────────────────────────── */
.pricing-notice {
  background: #fffbeb;
  border: 1.5px solid #fbbf24;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #92400e;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.pricing-notice i { margin-top: 2px; flex-shrink: 0; }

/* ── Submit disclaimer ────────────────────────────────────────── */
.submit-disclaimer {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--gray-600);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 16px;
  line-height: 1.5;
}
.submit-disclaimer i { flex-shrink: 0; margin-top: 2px; }

/* ── Volume Meter ─────────────────────────────────────────────── */
.volume-meter {
  background: var(--white);
  border: 1.5px solid var(--yellow);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(243,210,94,.15);
}
.vm-svg   { width: 100%; max-width: 320px; height: auto; display: block; }
.vm-truck { flex: 1; min-width: 0; }
.vm-info  { flex-shrink: 0; text-align: right; min-width: 160px; }
.vm-tier  { font-size: 15px; font-weight: 700; color: var(--dark); line-height: 1.3; }
.vm-cy    { font-size: 13px; color: var(--gray-600); margin-top: 4px; }
.vm-price { font-size: 13px; color: var(--gray-600); margin-top: 2px; font-style: italic; }
.vm-tier.quarter    { color: #16a34a; }
.vm-tier.half       { color: #d97706; }
.vm-tier.three_quarter { color: #ea580c; }
.vm-tier.full       { color: var(--red); }
@media (max-width: 540px) {
  .volume-meter { flex-direction: column; gap: 12px; }
  .vm-info      { text-align: center; min-width: unset; }
  .vm-svg       { max-width: 100%; }
}

/* ── Progress Bar ─────────────────────────────────────────────── */
.progress-bar-wrap  { margin-bottom: 28px; }
.progress-bar-track { height: 6px; background: var(--gray-200); border-radius: 99px; overflow: hidden; }
.progress-bar-fill  { height: 100%; background: var(--yellow); border-radius: 99px; transition: width .35s ease; }
.progress-steps     { display: flex; justify-content: space-between; margin-top: 8px; }
.step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.step-label.active { color: var(--dark); }

/* ── Form Steps ───────────────────────────────────────────────── */
.form-step { display: none; background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid var(--gray-200); }
.form-step.active { display: block; }

.step-title { font-size: 20px; font-weight: 800; margin-bottom: 20px; }

.form-group  { margin-bottom: 20px; }
label        { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.req         { color: var(--red); }
.optional    { color: var(--gray-400); font-weight: 400; font-size: 12px; }
.section-hint{ font-size: 13px; color: var(--gray-600); margin-bottom: 14px; }
.char-count  { font-size: 12px; color: var(--gray-400); display: block; text-align: right; margin-top: 4px; }

.form-input {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color .15s;
  -webkit-appearance: none;
}
.form-input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(243,210,94,.2); }
textarea.form-input { resize: vertical; min-height: 100px; }

/* ── Customer Type Cards ──────────────────────────────────────── */
.type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.type-card  { cursor: pointer; }
.type-card input { display: none; }
.type-card-inner {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.type-card input:checked + .type-card-inner { border-color: var(--yellow); background: var(--yellow-lt); }
.type-card-inner:hover { border-color: var(--yellow); }
.type-icon     { font-size: 28px; color: var(--gray-600); line-height: 1; }
.type-card input:checked + .type-card-inner .type-icon { color: #92400e; }
.type-label    { font-weight: 700; font-size: 14px; }
.type-sub      { font-size: 11px; color: var(--gray-600); }

/* ── Option Grid (Commercial / Govt) ─────────────────────────── */
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.option-card { cursor: pointer; }
.option-card input { display: none; }
.option-card span {
  display: block;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: all .15s;
}
.option-card input:checked + span { border-color: var(--yellow); background: var(--yellow-lt); font-weight: 700; }
.option-card span:hover { border-color: var(--yellow); }

/* ── Room Builder ─────────────────────────────────────────────── */
.room-entry {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  background: var(--gray-100);
  padding: 10px;
  border-radius: 8px;
}
.room-entry select, .room-entry input {
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  width: 100%;
}
.btn-remove-room {
  background: none;
  border: none;
  color: var(--red);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.btn-add-room {
  background: var(--white);
  border: 1.5px dashed var(--gray-400);
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all .15s;
  margin-top: 4px;
}
.btn-add-room:hover { border-color: var(--yellow); color: var(--dark); }

/* ── Materials ────────────────────────────────────────────────── */
.materials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.material-card {
  cursor: pointer;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  transition: all .15s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.material-card input { display: none; }
.material-card.selected { border-color: var(--yellow); background: var(--yellow-lt); }
.material-card.hazmat.selected { border-color: #f97316; background: #fff7ed; }
.mat-icon      { font-size: 28px; color: var(--gray-600); line-height: 1; margin-bottom: 2px; transition: color .15s; }
.material-card.selected .mat-icon  { color: #92400e; }
.material-card.hazmat.selected .mat-icon { color: #c2410c; }
.material-card:not(.selected) .mat-icon { color: #9ca3af; }
/* "None of the above" icon gets green when selected */
.material-card[data-name="None of the above"].selected .mat-icon { color: var(--green); }
.mat-name      { font-size: 13px; font-weight: 700; }
.mat-note      { font-size: 11px; color: var(--gray-600); }
.hazmat-badge  { background: #fee2e2; color: var(--red); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; margin-top: 2px; }
.hazmat-badge i { margin-right: 2px; }
.upload-icon   { font-size: 36px; color: var(--gray-400); display: block; margin-bottom: 8px; }

.hazmat-alert {
  background: #fff7ed;
  border: 1.5px solid #f97316;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
}
.hazmat-alert strong { color: #c2410c; display: block; margin-bottom: 4px; }

/* ── Field feedback (email validation) ───────────────────────── */
.field-feedback { display:block; font-size:12px; margin-top:4px; min-height:16px; }
.field-feedback.valid   { color: var(--green); }
.field-feedback.invalid { color: var(--red); }
.form-input.valid   { border-color: var(--green); }
.form-input.invalid { border-color: var(--red); }

/* ── Photo Upload ─────────────────────────────────────────────── */
.photo-upload-area { border: 2px dashed var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.photo-btn-row { display:flex; gap:10px; padding:16px; flex-wrap:wrap; justify-content:center; }
.photo-btn {
  flex:1; min-width:140px; max-width:200px;
  background: var(--yellow); color: var(--dark);
  border: none; border-radius: 8px; padding: 12px 16px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; display:flex; align-items:center; justify-content:center; gap:8px;
  transition: background .15s;
}
.photo-btn:hover { background: var(--yellow-dk); }
.photo-btn-secondary { background: var(--white); border: 1.5px solid var(--gray-200); color: var(--dark); }
.photo-btn-secondary:hover { background: var(--gray-100); }

.photo-upload-placeholder {
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: background .15s;
}
.photo-upload-placeholder:hover { background: var(--gray-100); }
.upload-icon { font-size: 36px; display: block; margin-bottom: 8px; }
.upload-hint  { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.photo-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; padding: 12px; }
.photo-preview-item { position: relative; }
.photo-preview-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.photo-preview-item .remove-photo { position: absolute; top: -6px; right: -6px; background: var(--red); color: var(--white); border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; }

/* ── SMS Consent ──────────────────────────────────────────────── */
.consent-group { background: var(--gray-100); border-radius: 8px; padding: 14px 16px; }
.consent-label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 13px; color: var(--gray-600); font-weight: 400; }
.consent-label input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--yellow); cursor: pointer; }

/* ── Step Actions ─────────────────────────────────────────────── */
.step-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }
.btn-next, .btn-submit {
  background: var(--yellow);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  min-height: 50px;
  touch-action: manipulation;
}
.btn-next:hover, .btn-submit:hover { background: var(--yellow-dk); }
.btn-back {
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-600);
  transition: all .15s;
}
.btn-back:hover { border-color: var(--gray-400); color: var(--dark); }
.btn-primary {
  background: var(--yellow);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .15s;
}
.btn-primary:hover { background: var(--yellow-dk); }

.submit-note { font-size: 12px; color: var(--gray-400); text-align: center; margin-top: 12px; }
.submit-summary { background: var(--yellow-lt); border: 1px solid var(--yellow); border-radius: 8px; padding: 14px; font-size: 14px; margin-bottom: 16px; }
.submit-summary p { margin: 3px 0; }

/* ── Centered Result Pages ────────────────────────────────────── */
.centered-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.result-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 32px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  border: 1px solid var(--gray-200);
}
.result-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.result-message { font-size: 15px; color: var(--gray-600); line-height: 1.6; margin-bottom: 20px; }
.result-details { background: var(--gray-100); border-radius: 8px; padding: 16px; margin-bottom: 24px; text-align: left; }
.result-details p { font-size: 14px; margin: 6px 0; }
.result-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin: 0 auto 16px; }
.result-icon.success { background: #dcfce7; color: var(--green); }
.result-icon.warning { background: #fef9c3; color: #92400e; }
.result-icon.error   { background: #fee2e2; color: var(--red); }

/* ── Quote Card ───────────────────────────────────────────────── */
.quote-card { background: var(--white); border-radius: 12px; padding: 36px 28px; max-width: 520px; width: 100%; box-shadow: 0 4px 24px rgba(0,0,0,.07); border: 1px solid var(--gray-200); }
.quote-header { text-align: center; margin-bottom: 24px; }
.quote-header h1 { font-size: 22px; font-weight: 800; }
.quote-header p  { font-size: 15px; color: var(--gray-600); margin-top: 6px; }
.quote-amount-box { background: var(--yellow-lt); border: 2px solid var(--yellow); border-radius: 10px; padding: 24px; text-align: center; margin-bottom: 24px; }
.quote-label  { font-size: 12px; color: var(--gray-600); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.quote-amount { font-size: 44px; font-weight: 800; line-height: 1; }
.quote-notes  { font-size: 14px; color: var(--gray-600); margin-top: 10px; }
.quote-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.btn-accept { background: var(--green); color: var(--white); border: none; border-radius: 8px; padding: 14px 28px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn-revise { background: var(--gray-100); color: var(--dark); border: 1.5px solid var(--gray-200); border-radius: 8px; padding: 14px 28px; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-block; }
.quote-fine-print { font-size: 12px; color: var(--gray-400); text-align: center; line-height: 1.6; }
.alert-info { background: #dbeafe; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 8px; padding: 14px; font-size: 14px; text-align: center; }

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .type-cards       { grid-template-columns: 1fr; }
  .intake-hero h1   { font-size: 22px; }
  .materials-grid   { grid-template-columns: repeat(2, 1fr); }
  .form-step        { padding: 20px 16px; }
  .room-entry       { grid-template-columns: 1fr auto; }
  .room-entry select:last-of-type { grid-column: 1/-1; }
  .quote-amount     { font-size: 36px; }
}
