@import url('/css/redesign.css');

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

:root {
  /* YBQ brand (primary for staff + public) */
  --ybq-teal: #19b3c5;
  --ybq-teal-deep: #087ea4;
  --ybq-navy: #0d2f3a;
  --ybq-lime: #85c83e;
  --ybq-ink: #132127;
  --ybq-mist: #edf8fa;
  --ybq-line: #cce5e8;

  /* Mapped legacy tokens → brand */
  --blue-600: var(--ybq-teal);
  --blue-700: var(--ybq-teal-deep);
  --blue-50: #e6f7f9;
  --blue-100: #cceff3;
  --slate-800: var(--ybq-navy);
  --slate-700: #1a3d48;
  --slate-600: #2d4c55;
  --slate-400: #7a9aa3;
  --slate-100: #e8f2f4;
  --slate-50: #f4fafb;
  --green-600: #16a34a;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --red-600: #dc2626;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --yellow-500: #f59e0b;
  --yellow-50: #fffbeb;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  color: var(--gray-700);
  background: var(--ybq-mist);
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 220px;
  min-height: 100vh;
  background: var(--ybq-navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: #000;
}

.brand-text { min-width: 0; }
.brand-name { color: #fff; font-weight: 800; font-size: 16px; line-height: 1; }
.brand-sub { color: var(--slate-400); font-size: 10px; margin-top: 3px; }

.sidebar-nav { flex: 1; padding: 12px 0; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--slate-400);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-link.active {
  color: #fff;
  background: rgba(25, 179, 197, 0.18);
  border-left-color: var(--ybq-teal);
}

.nav-icon { font-size: 15px; line-height: 1; width: 1.25rem; text-align: center; flex-shrink: 0; }
.nav-label { white-space: nowrap; }

.sidebar-footer { padding: 16px 18px; border-top: 1px solid rgba(255,255,255,0.08); }
.staff-badge { display: flex; align-items: center; gap: 10px; color: var(--slate-400); font-size: 12px; }
.staff-meta { min-width: 0; }
.staff-name { color: #fff; font-weight: 600; font-size: 12px; }
.logout-btn {
  background: none; border: none; color: var(--slate-400);
  font-size: 11px; cursor: pointer; padding: 0; font-family: inherit;
}
.logout-btn:hover { color: var(--ybq-teal); }

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: 220px;
  flex: 1;
  padding: 28px 32px;
  min-height: 100vh;
  background: var(--ybq-mist);
}

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ybq-navy);
  margin: 0;
}

.page-subtitle { color: var(--gray-500); font-size: 13px; margin-top: 2px; }

/* ── CARDS ── */
.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--ybq-line);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(13, 47, 58, 0.04);
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ybq-navy);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

/* ── STAT GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--ybq-line);
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(13, 47, 58, 0.04);
}

.stat-label {
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--ybq-navy);
  margin-top: 4px;
  line-height: 1;
}
.stat-sub { font-size: 11px; color: var(--gray-500); margin-top: 4px; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th {
  padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700;
  color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--gray-200);
}
td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); font-size: 13px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--slate-50); }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-draft    { background: var(--gray-100); color: var(--gray-500); }
.badge-sent     { background: var(--blue-50);  color: var(--ybq-teal-deep); }
.badge-viewed   { background: #fef9c3; color: #854d0e; }
.badge-accepted { background: var(--green-100); color: var(--green-600); }
.badge-declined { background: var(--red-100);  color: var(--red-600); }
.badge-expired  { background: var(--gray-100); color: var(--gray-500); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ybq-teal-deep), var(--ybq-teal));
  color: #fff;
  box-shadow: 0 2px 8px rgba(8, 126, 164, 0.22);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #066a8a, var(--ybq-teal-deep));
  box-shadow: 0 4px 12px rgba(8, 126, 164, 0.28);
}
.btn-success   { background: var(--green-600); color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-danger    { background: var(--red-600);   color: #fff; }
.btn-danger:hover  { background: #b91c1c; }
.btn-outline   { background: #fff; color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { background: var(--gray-100); border-color: var(--ybq-teal); color: var(--ybq-teal-deep); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-ghost { background: none; color: var(--gray-500); border: none; padding: 4px 8px; }
.btn-ghost:hover { color: var(--ybq-teal-deep); background: var(--blue-50); }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--ybq-navy); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.form-control {
  width: 100%; padding: 9px 12px; border: 1px solid var(--gray-300); border-radius: 8px;
  font-size: 13px; font-family: inherit; color: var(--gray-700);
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: var(--ybq-teal-deep);
  box-shadow: 0 0 0 3px rgba(25, 179, 197, 0.15);
}
.form-control.is-invalid { border-color: var(--red-600); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-hint { font-size: 11px; color: var(--gray-500); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── ALERTS ── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-error   { background: var(--red-50);    color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: var(--green-50);  color: #166534; border: 1px solid #bbf7d0; }
.alert-warn    { background: var(--yellow-50); color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: var(--blue-50);   color: var(--ybq-teal-deep); border: 1px solid var(--blue-100); }

/* ── ITEM TABLE ── */
.item-row { display: grid; grid-template-columns: 1fr 80px 110px 110px 40px; gap: 8px; align-items: start; margin-bottom: 8px; }
.item-row-header { font-size: 11px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; margin-bottom: 4px; }

/* ── MISC ── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--gray-500); }
.empty-icon  { font-size: 40px; margin-bottom: 12px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--gray-200); margin: 20px 0; }
.text-muted { color: var(--gray-500); }
.text-small { font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.mt-4 { margin-top: 16px; }

/* ── ACTIVITY FEED ── */
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ybq-teal); margin-top: 5px; flex-shrink: 0; }
.activity-dot.dot-accepted { background: var(--green-600); }
.activity-dot.dot-declined { background: var(--red-600); }
.activity-dot.dot-sent { background: var(--ybq-teal); }
.activity-dot.dot-viewed { background: #f59e0b; }
.activity-dot.dot-email_opened { background: #8b5cf6; }
.activity-text { font-size: 12px; color: var(--gray-700); }
.activity-time { font-size: 11px; color: var(--gray-500); }

/* ── QUOTE TOTAL SUMMARY ── */
.total-summary { background: var(--slate-50); border-radius: 10px; padding: 16px 20px; }
.total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.total-row.grand {
  font-weight: 800; font-size: 16px; color: var(--ybq-teal-deep);
  border-top: 2px solid var(--blue-100); padding-top: 10px; margin-top: 6px;
}

/* ── LOGIN PAGE ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(25, 179, 197, 0.25), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(133, 200, 62, 0.18), transparent 40%),
    linear-gradient(145deg, var(--ybq-navy) 0%, #0a3d4a 50%, var(--ybq-teal-deep) 100%);
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 40px 32px;
  width: 380px;
  max-width: calc(100vw - 2rem);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo-img {
  display: block;
  width: min(220px, 70vw);
  height: auto;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: #000;
}
.login-logo-sub { font-size: 12px; color: var(--gray-500); font-weight: 600; }

/* ── FILTER BAR ── */
.filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-chip {
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
  text-decoration: none; color: var(--gray-500); background: var(--gray-100); transition: all 0.15s;
}
.filter-chip:hover { background: var(--gray-200); color: var(--gray-700); }
.filter-chip.active {
  background: linear-gradient(135deg, var(--ybq-teal-deep), var(--ybq-teal));
  color: #fff;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar { width: 64px; }
  .brand-text,
  .nav-label,
  .staff-meta { display: none; }
  .sidebar-brand { justify-content: center; padding: 16px 8px; }
  .brand-logo { width: 36px; height: 36px; }
  .nav-link { justify-content: center; padding: 12px 8px; border-left-width: 0; border-bottom: 2px solid transparent; }
  .nav-link.active { border-bottom-color: var(--ybq-teal); background: rgba(25, 179, 197, 0.15); }
  .main-content { margin-left: 64px; padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .item-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .item-row .item-desc { grid-column: 1 / -1; }
  .item-row-header { display: none; }
}

/* Customer quote lookup */
.public-quote-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #ecfeff 100%);
}

.public-quote-card {
  width: min(100%, 38rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid #dbeafe;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 1.5rem 4rem rgba(30, 64, 175, 0.12);
}

.public-quote-card h1 {
  margin: 0.25rem 0 0.75rem;
  color: #0f172a;
}

.public-quote-card .eyebrow {
  margin: 0;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lookup-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.lookup-form input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  font: inherit;
}

.lookup-form input:focus {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  border-color: #2563eb;
}

.lookup-form fieldset {
  display: grid;
  gap: 0.55rem;
  margin: 0.5rem 0;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.lookup-form legend {
  padding: 0 0.4rem;
  color: #334155;
  font-weight: 700;
}

.field-help {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

.lookup-form .btn {
  justify-content: center;
  min-height: 2.9rem;
  margin-top: 0.5rem;
}


/* ── PUBLIC CUSTOMER PAGES ── */
body.public-page {
  display: block;
  min-height: 100vh;
}

.public-main {
  min-height: 100vh;
}

.public-staff-link {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.8rem;
}

.public-staff-link a {
  color: #64748b;
  text-decoration: none;
}

.public-staff-link a:hover,
.public-staff-link a:focus-visible {
  color: var(--ybq-teal-deep);
  text-decoration: underline;
}


/* ── YBQ CUSTOMER QUOTE PORTAL ── */
body.public-page {
  background: var(--ybq-mist);
  color: var(--ybq-ink);
}

.ybq-quote-access {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 18%, rgba(25, 179, 197, 0.16), transparent 27rem),
    radial-gradient(circle at 95% 90%, rgba(133, 200, 62, 0.18), transparent 28rem),
    linear-gradient(145deg, #ffffff 0%, #f2fbfc 48%, #ebf6f7 100%);
}

.ybq-quote-access::before,
.ybq-quote-access::after {
  position: absolute;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  content: '';
  filter: blur(0.5px);
  pointer-events: none;
}

.ybq-quote-access::before {
  top: -18rem;
  right: -11rem;
  border: 2.6rem solid rgba(25, 179, 197, 0.08);
}

.ybq-quote-access::after {
  bottom: -20rem;
  left: -13rem;
  border: 3rem solid rgba(133, 200, 62, 0.08);
}

.ybq-quote-access__topbar {
  position: relative;
  z-index: 1;
  height: 0.55rem;
  background: linear-gradient(90deg, var(--ybq-teal) 0 35%, var(--ybq-navy) 35% 63%, var(--ybq-lime) 63% 100%);
}

.ybq-quote-access__shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) 0 2rem;
}

.ybq-quote-access__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

.ybq-quote-access__logo {
  display: block;
  width: min(19rem, 62vw);
  height: auto;
}

.ybq-quote-access__brand-note {
  max-width: 15rem;
  margin: 0;
  color: #45636c;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: right;
}

.ybq-quote-access__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 29rem);
  align-items: center;
  gap: clamp(2rem, 7vw, 6.5rem);
}

.ybq-quote-access__intro {
  padding: 1rem 0 1.5rem;
}

.ybq-eyebrow {
  margin: 0 0 0.8rem;
  color: var(--ybq-teal-deep);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.2;
}

.ybq-quote-access__intro h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--ybq-navy);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.ybq-quote-access__lead {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: #45636c;
  font-size: 1.04rem;
  line-height: 1.7;
}

.ybq-quote-access__steps {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.ybq-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: #2d4c55;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.ybq-step__number {
  display: inline-grid;
  flex: 0 0 1.65rem;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ybq-navy);
  color: white;
  font-size: 0.73rem;
  font-weight: 800;
}

.ybq-step:nth-child(2) .ybq-step__number { background: var(--ybq-teal-deep); }
.ybq-step:nth-child(3) .ybq-step__number { background: #76af34; }

.ybq-quote-access__panel {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid rgba(8, 126, 164, 0.16);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1.4rem 3.8rem rgba(13, 47, 58, 0.13);
  backdrop-filter: blur(12px);
}

.ybq-quote-access__panel-heading h2 {
  margin: 0.1rem 0 0.45rem;
  color: var(--ybq-navy);
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}

.ybq-quote-access__panel-heading > p:last-child {
  margin: 0;
  color: #557179;
  font-size: 0.88rem;
  line-height: 1.55;
}

.ybq-lookup-form {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.65rem;
}

.ybq-lookup-form label {
  display: block;
  margin-bottom: 0.42rem;
  color: #244651;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.ybq-lookup-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #b9d6db;
  border-radius: 0.65rem;
  background: #fff;
  color: var(--ybq-ink);
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ybq-lookup-form input:focus {
  outline: none;
  border-color: var(--ybq-teal-deep);
  box-shadow: 0 0 0 0.24rem rgba(25, 179, 197, 0.18);
}

.ybq-field--code input {
  border-width: 2px;
  border-color: rgba(8, 126, 164, 0.42);
  color: var(--ybq-navy);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ybq-field-help {
  margin: 0.35rem 0 0;
  color: #66818a;
  font-size: 0.75rem;
  line-height: 1.45;
}

.ybq-lookup-form__verifier {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid #d6e8eb;
  border-radius: 0.9rem;
  background: #f9fdfd;
}

.ybq-lookup-form__verifier legend {
  padding: 0 0.3rem;
  color: var(--ybq-navy);
  font-size: 0.83rem;
  font-weight: 800;
}

.ybq-lookup-form__verifier > .ybq-field-help {
  margin: -0.05rem 0 0.15rem;
}

.ybq-lookup-form__split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 0.75rem;
}

.ybq-lookup-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.15rem;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 0.72rem;
  background: linear-gradient(135deg, var(--ybq-teal-deep), var(--ybq-teal));
  box-shadow: 0 0.65rem 1.1rem rgba(8, 126, 164, 0.22);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ybq-lookup-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.85rem 1.5rem rgba(8, 126, 164, 0.27);
}

.ybq-lookup-form__submit:focus-visible {
  outline: 3px solid rgba(133, 200, 62, 0.52);
  outline-offset: 3px;
}

.ybq-quote-access__help {
  margin: 1.2rem 0 0;
  color: #66818a;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.ybq-quote-access__help a,
.ybq-quote-access__footer a {
  color: var(--ybq-teal-deep);
  font-weight: 700;
  text-decoration: none;
}

.ybq-quote-access__help a:hover,
.ybq-quote-access__footer a:hover {
  text-decoration: underline;
}

.ybq-quote-access__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 7vw, 5rem);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(13, 47, 58, 0.1);
  color: #66818a;
  font-size: 0.75rem;
}

@media (max-width: 780px) {
  .ybq-quote-access__brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .ybq-quote-access__brand-note { text-align: left; }

  .ybq-quote-access__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .ybq-quote-access__intro h1 { max-width: none; }

  .ybq-quote-access__panel { max-width: 35rem; }
}

@media (max-width: 480px) {
  .ybq-quote-access__shell { width: min(100% - 1.25rem, 72rem); }

  .ybq-quote-access__logo { width: min(17rem, 85vw); }

  .ybq-lookup-form__split { grid-template-columns: 1fr; }

  .ybq-quote-access__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
}


/* ── 48-DAY LEGACY YBQ CUSTOMER LOOKUP BASELINE ── */
body.public-page {
  display: block;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: #132127;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

.public-main {
  min-height: 100vh;
}

.legacy-quote-lookup {
  box-sizing: border-box;
  width: 100%;
  padding: 32px;
  color: #132127;
  font-family: Arial, sans-serif;
}

.legacy-quote-lookup h1 {
  margin: 0 0 0.4rem;
  color: #087ea4;
  font-size: 2rem;
  line-height: 1.2;
}

.legacy-quote-lookup h2 {
  margin: 0 0 1rem;
  color: #132127;
  font-size: 1.35rem;
  line-height: 1.3;
}

.legacy-quote-lookup__intro {
  max-width: 48rem;
  margin: 0 0 1.35rem;
  line-height: 1.55;
}

.legacy-lookup-form {
  max-width: 48rem;
}

.legacy-lookup-form__field {
  margin-bottom: 1rem;
}

.legacy-lookup-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: #132127;
  font-weight: 700;
}

.legacy-lookup-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #132127;
  font: inherit;
}

.legacy-lookup-form input:focus {
  outline: 2px solid rgba(14, 151, 167, 0.35);
  outline-offset: 1px;
  border-color: #0e97a7;
}

.legacy-lookup-form input[name="code"] {
  max-width: 11rem;
  color: #132127;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legacy-lookup-form__verifier {
  margin: 1.25rem 0 0;
  padding: 1rem;
  border: 1px solid #ddd;
}

.legacy-lookup-form__verifier legend {
  padding: 0 0.4rem;
  color: #132127;
  font-weight: 700;
}

.legacy-lookup-form__verifier > p {
  margin: 0 0 1rem;
  color: #4b5e64;
  font-size: 0.9rem;
  line-height: 1.45;
}

.legacy-lookup-form__row {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 1rem;
}

.legacy-quote-lookup__actions {
  margin: 20px 0;
}

.legacy-quote-lookup__actions button {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #0e97a7;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.legacy-quote-lookup__actions button:hover {
  background: #087ea4;
}

.legacy-quote-lookup__actions button:focus-visible {
  outline: 3px solid rgba(14, 151, 167, 0.35);
  outline-offset: 3px;
}

.legacy-quote-lookup__error {
  max-width: 48rem;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid #f1b8b8;
  background: #fff4f4;
  color: #8c1f1f;
  line-height: 1.45;
}

.legacy-quote-lookup__contact {
  margin: 1.25rem 0 0;
  color: #132127;
}

.legacy-quote-lookup__staff {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.legacy-quote-lookup__staff a {
  color: #087ea4;
}

@media (max-width: 560px) {
  .legacy-quote-lookup { padding: 24px 18px; }
  .legacy-quote-lookup h1 { font-size: 1.75rem; }
  .legacy-lookup-form__row { grid-template-columns: 1fr; gap: 0; }
}
