:root {
  --navy: #18204a;
  --navy-2: #242d66;
  --purple: #6758d9;
  --violet: #8d62f4;
  --yellow: #ffd451;
  --coral: #ff7a65;
  --mint: #3dd7b0;
  --sky: #55b9f3;
  --ink: #20243b;
  --muted: #68708a;
  --surface: #f4f2fb;
  --card: #ffffff;
  --line: #dedcef;
  --success: #147a5b;
  --danger: #b43e48;
  --shadow: 0 20px 50px rgba(24, 32, 74, .14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--surface); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.app-shell { min-height: 100vh; padding-bottom: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 5vw; background: rgba(24, 32, 74, .96); backdrop-filter: blur(15px); color: white; box-shadow: 0 8px 25px rgba(17, 21, 55, .18); }
.brand { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: white; text-align: left; padding: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--yellow), var(--coral)); color: var(--navy); font-weight: 900; font-size: 22px; transform: rotate(-4deg); }
.brand strong { display: block; font-size: 18px; line-height: 1.05; }
.brand small { display: block; color: #cfd4ff; margin-top: 4px; }
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { border: 0; background: transparent; color: #cfd4ff; padding: 11px 14px; border-radius: 12px; font-weight: 750; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.11); color: white; }
.icon-button { display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: white; padding: 10px 13px; border-radius: 14px; font-weight: 750; }
.icon-button b { min-width: 23px; height: 23px; display: grid; place-items: center; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 12px; }

.view { display: none; }
.view.active { display: block; }
.hero { min-height: 680px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(35px, 6vw, 90px); padding: 70px 7vw 84px; background:
 radial-gradient(circle at 8% 25%, rgba(255,212,81,.30), transparent 25%),
 radial-gradient(circle at 88% 82%, rgba(61,215,176,.22), transparent 28%),
 linear-gradient(135deg, #20285a 0%, #302b74 55%, #6555d5 100%); color: white; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 330px; height: 160px; right: 7vw; bottom: -45px; border-radius: 100% 100% 0 0; background: rgba(255,255,255,.06); transform: rotate(-6deg); }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.eyebrow { display: inline-block; color: var(--purple); font-size: 12px; text-transform: uppercase; letter-spacing: .13em; font-weight: 900; }
.hero .eyebrow, .dashboard-hero .eyebrow { color: var(--yellow); }
h1 { margin: 13px 0 18px; font-size: clamp(40px, 5vw, 72px); line-height: .99; letter-spacing: -.045em; }
.hero-copy > p { max-width: 640px; margin: 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; color: #e8e9ff; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 28px; color: #eff1ff; font-weight: 700; }
.search-card { position: relative; z-index: 2; background: var(--card); color: var(--ink); padding: clamp(24px, 3vw, 34px); border-radius: 30px; box-shadow: var(--shadow); }
.section-heading { margin-bottom: 28px; }
.section-heading.compact { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.section-heading.centered { text-align: center; }
.section-heading h2 { margin: 3px 0 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); }
.step-chip { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--yellow); color: var(--navy); font-weight: 900; }
label { display: block; font-size: 13px; font-weight: 850; color: #3f4560; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #fbfaff; color: var(--ink); padding: 13px 14px; border-radius: 13px; outline: none; margin-top: 7px; transition: .2s border, .2s box-shadow; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(103,88,217,.12); }
.form-grid { display: grid; gap: 14px; margin-top: 15px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.primary-button, .secondary-button, .text-button { border: 0; border-radius: 13px; font-weight: 850; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary-button { padding: 13px 18px; background: linear-gradient(135deg, var(--purple), var(--violet)); color: white; box-shadow: 0 10px 22px rgba(103,88,217,.24); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(103,88,217,.30); }
.primary-button.full { width: 100%; margin-top: 20px; padding: 15px 18px; }
.primary-button.small { padding: 10px 14px; }
.secondary-button { padding: 11px 15px; background: #eceafa; color: var(--navy); }
.secondary-button:hover { background: #e1def8; }
.text-button { background: transparent; padding: 8px; color: var(--purple); }
.text-button.danger { color: var(--danger); }
.privacy-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.autocomplete-wrap { position: relative; }
.suggestions { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; overflow: hidden; border-radius: 14px; background: white; border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(24,32,74,.16); }
.suggestion { display: block; width: 100%; padding: 12px 14px; text-align: left; border: 0; border-bottom: 1px solid #efedf7; background: white; color: var(--ink); }
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover { background: #f4f1ff; }
.suggestion strong, .suggestion span { display: block; }
.suggestion span { color: var(--muted); font-size: 12px; margin-top: 2px; }

.results-section { padding: 65px 7vw 90px; }
.results-toolbar { display: flex; justify-content: space-between; gap: 25px; align-items: end; margin-bottom: 20px; }
.results-toolbar h2 { margin: 6px 0 5px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.results-toolbar p { margin: 0; color: var(--muted); }
.toolbar-actions { display: flex; gap: 10px; align-items: end; }
.inline-select { min-width: 185px; }
.inline-select select { margin-top: 5px; padding: 10px 12px; background: white; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.filter-chip { background: white; border: 1px solid var(--line); padding: 8px 11px; border-radius: 999px; color: #4e5570; font-weight: 750; font-size: 13px; }
.company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.company-card { position: relative; display: flex; flex-direction: column; min-height: 430px; background: white; border-radius: var(--radius); overflow: hidden; border: 1px solid #e5e2f2; box-shadow: 0 12px 30px rgba(40, 45, 86, .08); }
.company-card-top { padding: 22px; background: linear-gradient(145deg, #252d63, #6b5fe0); color: white; min-height: 135px; }
.company-identity { display: flex; align-items: center; gap: 14px; }
.logo-avatar { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-weight: 950; color: white; font-size: 18px; background: linear-gradient(135deg, var(--sky), var(--purple)); }
.logo-avatar.yumi { background: linear-gradient(135deg, var(--yellow), var(--coral)); color: var(--navy); }
.company-identity h3 { margin: 0; font-size: 19px; }
.company-identity p { margin: 4px 0 0; color: #d9dcff; font-size: 13px; }
.company-card-body { flex: 1; padding: 20px 22px; display: flex; flex-direction: column; }
.rating-row, .price-row, .availability-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rating-row strong { color: #dc821a; }
.rating-row span, .availability-row span { color: var(--muted); font-size: 13px; }
.price-row { margin-top: 18px; align-items: end; }
.price-row strong { font-size: 28px; color: var(--navy); }
.price-row span { color: var(--muted); font-size: 12px; }
.availability-row { margin-top: 13px; padding: 10px 11px; border-radius: 11px; background: #f2fbf8; }
.availability-row b { color: var(--success); }
.feature-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0 18px; }
.feature-list span { padding: 6px 8px; background: #f1eff9; color: #535a76; border-radius: 8px; font-size: 11px; font-weight: 750; }
.company-card-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; margin-top: auto; }
.empty-state { padding: 60px 20px; text-align: center; background: white; border-radius: var(--radius); border: 1px dashed #cfcbe5; }
.empty-icon { font-size: 48px; }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { max-width: 560px; margin: 0 auto 20px; color: var(--muted); }

.how-strip { padding: 75px 7vw 90px; background: white; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; }
.steps-grid article { padding: 28px; border-radius: 20px; background: var(--surface); }
.steps-grid article > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--navy); color: var(--yellow); font-weight: 900; }
.steps-grid h3 { margin: 18px 0 8px; font-size: 20px; }
.steps-grid p { margin: 0; line-height: 1.55; color: var(--muted); }

.dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 58px 7vw; color: white; background: linear-gradient(135deg, var(--navy), #3c347f); }
.dashboard-hero h1 { max-width: 770px; font-size: clamp(36px, 5vw, 62px); }
.dashboard-hero p { color: #d8dcff; font-size: 18px; }
.company-badge-card { min-width: 330px; display: flex; align-items: center; gap: 15px; padding: 20px; border-radius: 20px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.13); }
.company-badge-card h3, .company-badge-card p { margin: 0; }
.company-badge-card p { margin-top: 4px; font-size: 13px; }
.dashboard-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 35px 7vw 90px; max-width: 1500px; margin: 0 auto; }
.dashboard-sidebar { display: flex; flex-direction: column; gap: 7px; align-self: start; position: sticky; top: 106px; padding: 12px; border-radius: 18px; background: white; box-shadow: 0 10px 25px rgba(24,32,74,.07); }
.dashboard-tab { display: flex; justify-content: space-between; border: 0; border-radius: 11px; padding: 12px 13px; background: transparent; color: #555c77; text-align: left; font-weight: 800; }
.dashboard-tab:hover, .dashboard-tab.active { background: #ece9fb; color: var(--navy); }
.dashboard-tab b { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 11px; }
.dashboard-panel { display: none; }
.dashboard-panel.active { display: block; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.metric-grid article { padding: 20px; border-radius: 18px; background: white; border: 1px solid #e6e3f0; }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); }
.metric-grid strong { display: block; margin: 8px 0 3px; font-size: 35px; color: var(--navy); }
.panel-card { padding: 24px; border-radius: 20px; background: white; border: 1px solid #e6e3f0; box-shadow: 0 10px 25px rgba(24,32,74,.06); }
.card-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 22px; }
.card-header h2, .card-header p { margin: 0; }
.card-header p { margin-top: 4px; color: var(--muted); }
.profile-preview-line { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; border-radius: 16px; background: #f7f5fc; }
.profile-preview-line h3, .profile-preview-line p { margin: 0; }
.profile-preview-line p { margin-top: 4px; color: var(--muted); }
.profile-score { text-align: right; }
.profile-score strong { display: block; font-size: 26px; }
.profile-score span { color: var(--muted); font-size: 12px; }
.route-table { display: grid; gap: 10px; }
.route-row { display: grid; grid-template-columns: 1.7fr 1fr .8fr .8fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: #f8f7fc; }
.route-row strong, .route-row span { display: block; }
.route-row span { color: var(--muted); font-size: 12px; margin-top: 3px; }
.status-good { color: var(--success); background: #eaf8f4; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 850; white-space: nowrap; }
.document-list { display: grid; gap: 10px; }
.document-list article { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; border-radius: 13px; background: #f8f7fc; }
.document-list strong, .document-list span { display: block; }
.document-list article div span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.request-list { display: grid; gap: 11px; }
.request-item { padding: 15px; border-radius: 14px; background: #f8f7fc; border: 1px solid #ebe8f5; }
.request-item-header { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.request-item h3, .request-item p { margin: 0; }
.request-item p { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.request-item time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.request-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.request-meta span { padding: 5px 8px; border-radius: 8px; background: white; font-size: 11px; color: #505772; }
.no-data { padding: 35px 15px; text-align: center; color: var(--muted); }

.content-page { max-width: 1250px; margin: 0 auto; padding: 85px 7vw 100px; }
.content-page h1 { max-width: 900px; color: var(--navy); }
.principles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 50px; }
.principles-grid article { position: relative; overflow: hidden; min-height: 230px; padding: 30px; border-radius: 23px; background: white; border: 1px solid #e3e0ef; }
.principles-grid article > span { color: var(--purple); font-size: 13px; font-weight: 900; }
.principles-grid h2 { margin: 18px 0 9px; color: var(--navy); }
.principles-grid p { max-width: 480px; color: var(--muted); line-height: 1.6; }

.modal, .drawer { display: none; position: fixed; inset: 0; z-index: 100; }
.modal.open, .drawer.open { display: block; }
.modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(16, 19, 45, .68); backdrop-filter: blur(5px); }
.modal-panel { position: relative; z-index: 2; width: min(650px, calc(100% - 28px)); max-height: calc(100vh - 40px); overflow-y: auto; margin: 20px auto; padding: 30px; border-radius: 25px; background: white; box-shadow: var(--shadow); }
.modal-panel.large { width: min(900px, calc(100% - 28px)); }
.modal-close { border: 0; background: #eceafa; color: var(--navy); width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; font-size: 24px; line-height: 1; }
.modal-panel > .modal-close { position: absolute; right: 18px; top: 18px; z-index: 3; }
.company-profile-header { margin: -30px -30px 0; padding: 40px 30px 30px; color: white; background: linear-gradient(135deg, var(--navy), var(--purple)); }
.company-profile-header .company-identity { padding-right: 45px; }
.company-profile-header h2 { margin: 0; font-size: 30px; }
.company-profile-body { padding-top: 25px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.profile-stats div { padding: 14px; border-radius: 13px; background: #f5f3fb; text-align: center; }
.profile-stats strong, .profile-stats span { display: block; }
.profile-stats strong { font-size: 19px; color: var(--navy); }
.profile-stats span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.profile-section { margin-top: 25px; }
.profile-section h3 { margin-bottom: 10px; }
.profile-section p { color: var(--muted); line-height: 1.6; }
.school-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.school-tags span { padding: 8px 10px; border-radius: 10px; background: #eceafa; color: #4a506b; font-size: 12px; font-weight: 750; }
.profile-cta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 28px; padding: 18px; border-radius: 16px; background: #fff7d8; }
.profile-cta strong, .profile-cta span { display: block; }
.profile-cta span { margin-top: 3px; color: #6b6170; font-size: 12px; }
.consent-box { display: flex; align-items: start; gap: 10px; margin-top: 16px; padding: 13px; border-radius: 12px; background: #f5f3fb; }
.consent-box input { width: auto; margin: 3px 0 0; }
.consent-box label { font-weight: 650; line-height: 1.45; }
.drawer-panel { position: absolute; z-index: 2; right: 0; top: 0; bottom: 0; width: min(480px, 92vw); overflow-y: auto; background: white; padding: 25px; box-shadow: -20px 0 45px rgba(17,21,55,.20); }
.drawer-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.drawer-header h2 { margin: 4px 0 0; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 200; transform: translate(-50%, 130%); opacity: 0; padding: 13px 18px; border-radius: 13px; background: var(--navy); color: white; box-shadow: var(--shadow); transition: .25s ease; font-weight: 750; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-copy { max-width: 850px; }
  .search-card { max-width: 760px; width: 100%; }
  .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-hero { align-items: start; flex-direction: column; }
}

@media (max-width: 780px) {
  body { padding-bottom: 70px; }
  .topbar { height: 66px; padding: 0 16px; }
  .brand small, .desktop-nav, .icon-button span { display: none; }
  .icon-button { padding: 8px; }
  .hero { min-height: 0; padding: 45px 17px 60px; }
  h1 { font-size: 42px; }
  .hero-copy > p { font-size: 17px; }
  .trust-row { display: grid; gap: 8px; }
  .search-card { padding: 21px; border-radius: 24px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .results-section { padding: 42px 17px 65px; }
  .results-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions { flex-direction: column; align-items: stretch; }
  .company-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .how-strip { padding: 55px 17px 65px; }
  .dashboard-hero { padding: 42px 17px; }
  .company-badge-card { min-width: 0; width: 100%; }
  .dashboard-layout { grid-template-columns: 1fr; padding: 20px 17px 65px; }
  .dashboard-sidebar { position: static; flex-direction: row; overflow-x: auto; padding: 8px; }
  .dashboard-tab { min-width: max-content; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .route-row { grid-template-columns: 1fr 1fr; }
  .route-row > :first-child { grid-column: 1 / -1; }
  .profile-preview-line { grid-template-columns: auto 1fr; }
  .profile-score { grid-column: 2; text-align: left; }
  .principles-grid { grid-template-columns: 1fr; }
  .content-page { padding: 55px 17px 75px; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .profile-cta { align-items: stretch; flex-direction: column; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(3, 1fr); left: 0; right: 0; bottom: 0; z-index: 60; height: 70px; background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); }
  .mobile-nav button { border: 0; background: transparent; color: #aeb5dd; font-size: 10px; font-weight: 800; }
  .mobile-nav button span { display: block; font-size: 22px; margin-bottom: 3px; }
  .mobile-nav button.active { color: var(--yellow); }
}

@media (max-width: 470px) {
  h1 { font-size: 36px; }
  .metric-grid { grid-template-columns: 1fr; }
  .company-card-actions { grid-template-columns: 1fr; }
  .modal-panel { padding: 22px; }
  .company-profile-header { margin: -22px -22px 0; padding: 34px 22px 24px; }
  .card-header { align-items: stretch; flex-direction: column; }
}

/* Language selector */
.topbar-actions { display: flex; align-items: center; gap: .65rem; }
.language-picker select {
  min-height: 42px;
  border: 1px solid var(--line, #d9deea);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #18204a);
  padding: 0 2.1rem 0 .9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 760px) {
  .topbar-actions { gap: .35rem; }
  .language-picker select { min-height: 38px; padding-left: .7rem; font-size: .82rem; }
  #savedQuotesButton span { display: none; }
}

/* Bulk request and parent account flow */
.bulk-request-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid #dcd7f3;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7f5ff, #fff9df);
}
.bulk-request-bar > div { min-width: 0; }
.bulk-request-bar strong,
.bulk-request-bar span { display: block; }
.bulk-request-bar strong { color: var(--navy); font-size: 17px; }
.bulk-request-bar span { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.bulk-request-bar .primary-button { flex: 0 0 auto; }

.wizard-panel { width: min(720px, calc(100% - 28px)); }
.wizard-heading { padding-right: 48px; }
.wizard-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: -5px 0 24px; }
.wizard-progress span { height: 5px; border-radius: 999px; background: #e5e2f0; transition: background .2s ease; }
.wizard-progress span.active { background: var(--purple); }
.wizard-step[hidden] { display: none !important; }
.wizard-copy { margin-bottom: 18px; }
.wizard-copy h3 { margin: 0; color: var(--navy); font-size: 22px; }
.wizard-copy p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }
.privacy-note.left { text-align: left; }
.wizard-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.demo-code-note { margin-top: 14px; padding: 13px 14px; border-radius: 12px; background: #fff7d8; color: #655c45; font-size: 13px; }
.days-fieldset,
.company-selection-fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.days-fieldset legend,
.company-selection-fieldset legend { margin-bottom: 9px; color: #3f4560; font-size: 13px; font-weight: 850; }
.day-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.day-options label { position: relative; }
.day-options input { position: absolute; opacity: 0; pointer-events: none; }
.day-options span { display: grid; place-items: center; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: white; color: #525a75; cursor: pointer; transition: .18s ease; }
.day-options input:checked + span { border-color: var(--purple); background: #ece9fb; color: var(--navy); box-shadow: 0 0 0 2px rgba(103,88,217,.08); }
.review-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 20px; }
.review-summary > div { min-width: 0; padding: 12px; border-radius: 12px; background: #f7f5fc; }
.review-summary span,
.review-summary strong { display: block; }
.review-summary span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.review-summary strong { margin-top: 4px; color: var(--navy); font-size: 13px; overflow-wrap: anywhere; }
.company-selection-list { display: grid; gap: 8px; }
.company-choice { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e3e0ef; border-radius: 13px; background: white; cursor: pointer; }
.company-choice:hover { background: #faf9fe; }
.company-choice input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--purple); }
.company-choice span,
.company-choice strong,
.company-choice small { display: block; }
.company-choice strong { color: var(--navy); }
.company-choice small { margin-top: 3px; color: var(--muted); line-height: 1.35; }
.company-choice.fixed { cursor: default; }
.account-summary { margin-bottom: 18px; padding: 14px; border-radius: 14px; background: #f5f3fb; border: 1px solid #e5e1f2; }
.account-summary p { margin: 0; color: var(--muted); }
.account-summary strong,
.account-summary span,
.account-summary small { display: block; }
.account-summary span { margin-top: 4px; color: #505772; font-size: 13px; overflow-wrap: anywhere; }
.account-summary small { margin-top: 8px; color: var(--success); }

@media (max-width: 780px) {
  .bulk-request-bar { align-items: stretch; flex-direction: column; }
  .bulk-request-bar .primary-button { width: 100%; }
  .wizard-actions { display: grid; grid-template-columns: 1fr 1.35fr; }
}

@media (max-width: 470px) {
  .review-summary { grid-template-columns: 1fr; }
  .day-options { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .day-options span { min-height: 39px; font-size: 11px; }
}


/* Account access, authentication, and account deletion */
[hidden] { display: none !important; }
.auth-button i { font-style: normal; color: var(--yellow); font-size: 12px; }
.company-landing { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 6vw, 80px); align-items: center; padding: 70px 7vw 90px; background: linear-gradient(135deg, #f7f5ff, #fffdf5); }
.company-landing-copy h1 { max-width: 720px; color: var(--navy); font-size: clamp(42px, 5vw, 68px); }
.company-landing-copy > p { max-width: 680px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.company-landing-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.company-benefits { display: grid; gap: 14px; }
.company-benefits article { padding: 24px; border: 1px solid #e3e0ef; border-radius: 20px; background: white; box-shadow: 0 12px 30px rgba(24,32,74,.06); }
.company-benefits article > span { color: var(--purple); font-size: 12px; font-weight: 900; }
.company-benefits h2 { margin: 11px 0 6px; color: var(--navy); font-size: 20px; }
.company-benefits p { margin: 0; color: var(--muted); line-height: 1.5; }
.company-closed-notice { margin-top: 22px; padding: 15px; border: 1px solid #efd4d7; border-radius: 14px; background: #fff5f6; }
.company-closed-notice strong, .company-closed-notice span { display: block; }
.company-closed-notice strong { color: var(--danger); }
.company-closed-notice span { margin-top: 4px; color: #6b5960; font-size: 13px; }
.company-closed-notice .text-button { margin: 7px 0 0 -8px; }
.auth-panel h2, .account-panel h2, .delete-panel h2 { margin: 7px 0 8px; color: var(--navy); font-size: 30px; }
.modal-intro { margin: 0 0 22px; color: var(--muted); line-height: 1.55; }
.role-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-choice { min-height: 150px; padding: 22px; text-align: left; border: 1px solid #ddd9ed; border-radius: 18px; background: #faf9fe; color: var(--ink); transition: .18s ease; }
.role-choice:hover { transform: translateY(-2px); border-color: var(--purple); box-shadow: 0 12px 25px rgba(24,32,74,.09); }
.role-choice strong, .role-choice span { display: block; }
.role-choice strong { color: var(--navy); font-size: 18px; }
.role-choice span { margin-top: 8px; color: var(--muted); line-height: 1.5; }
.auth-back { margin: -8px 0 12px -8px; }
.auth-password-field { position: relative; }
.auth-password-field input { padding-right: 76px; }
.auth-password-toggle { position: absolute; right: 8px; bottom: 7px; min-width: 58px; min-height: 34px; padding: 5px 9px; border: 0; border-radius: 9px; background: #eceafa; color: var(--purple); font-size: 12px; font-weight: 850; }
.auth-password-toggle:hover { background: #e1def8; }
.auth-password-toggle:focus-visible { outline: 3px solid rgba(103,88,217,.22); outline-offset: 1px; }
.auth-forgot-password { display: block; margin: 0 0 12px auto; padding: 3px 4px; color: var(--purple); font-size: 13px; font-weight: 800; }
.auth-forgot-password:hover { text-decoration: underline; }
.auth-forgot-password:disabled { opacity: .65; cursor: wait; }
.auth-reset-status { margin: 0 0 12px; padding: 11px 13px; border: 1px solid #bfe0cf; border-radius: 12px; background: #eefaf4; color: var(--success); font-size: 13px; font-weight: 750; line-height: 1.45; }
#authRecoveryStep { display: grid; gap: 12px; }
#authRecoveryStep .auth-back { justify-self: start; margin-bottom: 0; }
#authRecoveryStep .modal-intro, #authRecoveryStep .privacy-note, #authRecoveryStep .auth-login-error { margin-bottom: 0; }
.auth-login-error { margin: 0 0 12px; padding: 11px 13px; border: 1px solid #efc9cd; border-radius: 12px; background: #fff0f2; color: var(--danger); font-size: 13px; font-weight: 800; line-height: 1.45; }
.account-detail-card { margin: 20px 0; padding: 18px; border: 1px solid #e3e0ef; border-radius: 16px; background: #f8f7fc; }
.account-detail-card strong, .account-detail-card span, .account-detail-card small { display: block; }
.account-detail-card strong { color: var(--navy); font-size: 19px; }
.account-detail-card span { margin-top: 5px; color: #505772; overflow-wrap: anywhere; }
.account-detail-card small { margin-top: 9px; color: var(--success); }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-actions button { width: 100%; }
.account-edit-section { display: grid; gap: 13px; margin-top: 18px; }
.danger-button { border: 1px solid #efc9cd; border-radius: 13px; padding: 12px 15px; background: #fff0f2; color: var(--danger); font-weight: 850; }
.danger-button:hover { background: #ffe4e7; }
.danger-text { color: var(--danger); }
.delete-warning-list { display: grid; gap: 7px; margin: 0 0 20px; padding: 15px; border-radius: 14px; background: #fff5f6; color: #6b5960; font-size: 13px; }
.delete-warning-list span::before { content: "• "; color: var(--danger); font-weight: 900; }

@media (max-width: 900px) {
  .company-landing { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .auth-button { padding: 8px 10px; }
  .auth-button span { display: none; }
  .role-choice-grid, .account-actions { grid-template-columns: 1fr; }
  .company-landing { padding: 48px 18px 95px; }
}

/* Company proposals and parent responses */
.proposal-panel { width: min(760px, calc(100% - 28px)); }
.proposal-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-right: 42px; }
.proposal-title-row h2 { margin: 6px 0 0; color: var(--navy); font-size: 30px; }
.proposal-title-row > span { flex: 0 0 auto; margin-top: 4px; }
.proposal-request-summary { margin: 22px 0; }
.proposal-copy { margin-top: 8px; }
.schedule-pending-box { margin-top: 18px; padding: 15px 16px; border: 1px solid #e3dcae; border-radius: 14px; background: #fff9de; }
.schedule-pending-box strong { display: block; color: var(--navy); }
.schedule-pending-box p { margin: 5px 0 0; color: #6b654a; font-size: 13px; line-height: 1.5; }
.proposal-actions { flex-wrap: wrap; }
.request-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.request-status-row > span:last-child { color: var(--muted); font-size: 12px; text-align: right; }
.request-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.primary-button.small,
.secondary-button.small,
.danger-button.small { min-height: 38px; padding: 9px 12px; border-radius: 10px; font-size: 12px; }
.status-neutral,
.status-waiting,
.status-bad { display: inline-flex; align-items: center; width: max-content; padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 850; }
.status-neutral { background: #f0eef7; color: #575d77; }
.status-waiting { background: #fff4c9; color: #705e17; }
.status-bad { background: #fff0f2; color: var(--danger); }
.proposal-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; padding: 14px; border: 1px solid #e4e0ef; border-radius: 14px; background: #faf9fd; }
.proposal-summary > div span,
.proposal-summary > div strong { display: block; }
.proposal-summary > div span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.proposal-summary > div strong { margin-top: 4px; color: var(--navy); }
.proposal-summary p,
.proposal-summary small { grid-column: 1 / -1; margin: 0; }
.proposal-summary p { color: #4e556e; line-height: 1.45; }
.proposal-summary small { color: #7a7048; line-height: 1.45; }
.request-explanation { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.company-response-list { display: grid; gap: 10px; margin-top: 16px; }
.company-response-card { padding: 14px; border: 1px solid #e2deee; border-radius: 15px; background: white; }
.company-response-card.compact { background: #faf9fd; }
.company-response-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.company-response-header strong { color: var(--navy); }
.company-response-card > p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 620px) {
  .proposal-title-row,
  .request-status-row,
  .company-response-header { align-items: flex-start; flex-direction: column; }
  .proposal-summary { grid-template-columns: 1fr; }
  .proposal-summary p,
  .proposal-summary small { grid-column: auto; }
  .proposal-actions { display: grid; grid-template-columns: 1fr; }
  .proposal-actions button,
  .request-actions button { width: 100%; }
}


/* Locked published rate and privacy-controlled contacts */
.locked-rate-card {
  display: grid;
  gap: .55rem;
  padding: 1rem 1.05rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(86, 68, 220, .22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(108, 82, 238, .09), rgba(255, 184, 77, .09));
}
.locked-rate-card > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.locked-rate-card span, .locked-rate-card small { color: var(--muted); }
.locked-rate-card strong { font-size: 1.15rem; color: var(--ink); }
.contact-privacy-box {
  padding: 1rem;
  margin-top: .85rem;
  border: 1px solid rgba(24, 32, 74, .14);
  border-radius: 14px;
  background: #f7f8ff;
}
.contact-privacy-box strong { display: block; margin-bottom: .25rem; color: var(--ink); }
.contact-privacy-box p { margin: 0; color: var(--muted); }
.contact-unlocked-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  margin-top: .85rem;
  border: 1px solid rgba(35, 142, 92, .28);
  border-radius: 14px;
  background: rgba(35, 142, 92, .07);
}
.contact-unlocked-card > div:first-child { display: grid; gap: .2rem; }
.contact-unlocked-card span, .contact-unlocked-card small { color: var(--muted); }
.contact-unlocked-card strong { color: var(--ink); font-size: 1.05rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.contact-actions a { text-decoration: none; }
@media (max-width: 680px) {
  .locked-rate-card > div, .contact-unlocked-card { align-items: flex-start; flex-direction: column; }
  .contact-actions { width: 100%; }
  .contact-actions a { flex: 1; text-align: center; }
}


/* Cotizaciones privadas basadas en la dirección */
.quote-pending-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid #e6e1f2;
  border-radius: 14px;
  background: #faf9fd;
}
.quote-pending-row div span,
.quote-pending-row div strong { display: block; }
.quote-pending-row div span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.quote-pending-row div strong { margin-top: 4px; font-size: 18px; color: var(--navy); }
.quote-pending-row small { color: var(--muted); text-align: right; }
.quote-fields-grid { margin-top: 8px; }
.quote-lock-notice { margin-top: 14px; }
@media (max-width: 640px) {
  .quote-pending-row { align-items: flex-start; flex-direction: column; }
  .quote-pending-row small { text-align: left; }
}


/* Supabase connected v3: company buses */
.bus-list { display: grid; gap: 12px; margin-top: 16px; }
.bus-card {
  border: 1px solid var(--line, #e8e5f2);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) repeat(3, minmax(90px, .7fr)) auto;
  gap: 14px;
  align-items: center;
  background: #fff;
}
.bus-card h3 { margin: 0 0 4px; }
.bus-card p, .bus-card span { margin: 0; color: #666b82; font-size: .9rem; }
.bus-stat strong { display: block; font-size: 1.15rem; color: #171b42; }
.bus-actions { display: flex; gap: 8px; }
@media (max-width: 850px) {
  .bus-card { grid-template-columns: 1fr 1fr; }
  .bus-actions { grid-column: 1 / -1; }
}


/* Connected v7: real request flow */
.request-real-panel { max-width: 680px; }
.request-summary-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f5fc;
  margin: 14px 0 16px;
}
.request-summary-card div {
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
}
.request-summary-card span {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #74778d;
  margin-bottom: 3px;
}
.request-summary-card strong { color: #171b42; }
.request-days-fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.request-days-fieldset legend { font-weight: 700; margin-bottom: 8px; }
.real-day-checks { display: flex; gap: 8px; flex-wrap: wrap; }
.real-day-checks label {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 10px; border: 1px solid #e4e1ef; border-radius: 10px;
}
.real-request-targets { display: grid; gap: 8px; margin: 14px 0; }
.real-request-target {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 12px; background: #f7f5fc;
}
.company-request-card {
  padding: 16px;
  border: 1px solid #e6e2f0;
  border-radius: 15px;
  background: #fff;
  display: grid;
  gap: 12px;
}
.company-request-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.company-request-head h3 { margin: 0 0 3px; }
.company-request-head p { margin: 0; color: #696d83; }
.company-request-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.company-request-grid div {
  background: #f7f5fc; padding: 9px 10px; border-radius: 10px;
}
.company-request-grid span {
  display: block; color: #777b91; font-size: .74rem; text-transform: uppercase;
}
.company-request-grid strong { display: block; margin-top: 2px; color: #171b42; }
.status-new {
  background: #fff3c9;
  color: #765b00;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .request-summary-card,
  .company-request-grid { grid-template-columns: 1fr; }
}


/* Parent authentication completion */
.auth-confirmation-card {
  margin: 18px 0;
  gap: 7px;
}
.auth-confirmation-card strong,
.auth-confirmation-card span { display: block; }
.auth-confirmation-card span { margin-top: 6px; color: var(--muted); }
.account-edit-section input[readonly] {
  background: #f4f3f8;
  color: #686c82;
  cursor: not-allowed;
}
.legal-consent-block {
  display: grid;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 14px;
  border: 1px solid var(--border, #dbe3ea);
  border-radius: 14px;
  background: #f8fafc;
}

.legal-consent-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
}

.legal-consent-row input { margin-top: 3px; }
.legal-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary, #2357d9);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.legal-agreement-panel { max-width: 760px; max-height: min(88vh, 900px); overflow-y: auto; }
.legal-agreement-body { display: grid; gap: 14px; margin: 18px 0; }
.legal-agreement-body section { display: grid; gap: 5px; }
.legal-agreement-body h3 { margin: 0; font-size: 1rem; }
.legal-agreement-body p { margin: 0; color: var(--muted, #4b5563); line-height: 1.5; }
