/* Glass Doctor brand (MDG Brand Guidelines) */
:root {
  --gd-blue: #06038d;       /* Primary Blue - Pantone 2738C */
  --gd-light-blue: #60afe6; /* Secondary Light Blue - Pantone 292C */
  --gd-red: #e4002b;        /* Supporting Red - Pantone 185C */
  --gd-red-dark: #b80023;
  --gray: #5c5c6b;
  --bg: #f4f7fb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Gotham", "Gotham A", "Gotham B", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--gd-blue);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  background: var(--gd-light-blue);
  padding: 30px 20px 26px;
  text-align: center;
}
.logo-panel {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16); /* lighter tint of the header blue */
  border-radius: 14px;
  padding: 18px 30px;
  box-shadow: 0 3px 10px rgba(6, 3, 141, 0.22);
}
.logo-panel img { display: block; width: min(380px, 76vw); height: auto; }
header .tagline {
  margin-top: 14px;
  color: var(--gd-blue);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: 0.3px;
}
main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 20px 48px;
}
.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gd-blue);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}
.back:hover { text-decoration: underline; }

/* cards */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards.three { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: #fff;
  border-radius: 10px;
  border-top: 5px solid var(--gd-light-blue);
  padding: 26px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.card .icon { font-size: 2.4rem; margin-bottom: 12px; }
.card-icon {
  width: 72px;
  height: 72px;
  object-fit: contain; /* circular PNGs stay circular — no squashing, no cropping */
  display: block;
  margin: 0 auto 12px;
}
.title-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  vertical-align: -7px;
}
.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: -4px;
  margin-right: 6px;
}
.card h2 { font-size: 1.12rem; font-weight: 900; margin-bottom: 8px; color: var(--gd-blue); }
.card p { font-size: 0.9rem; color: var(--gray); margin-bottom: 20px; flex: 1; }

/* buttons */
.btn {
  display: block;
  background: var(--gd-red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.btn:hover, .btn:active { background: var(--gd-red-dark); }
.btn.disabled { background: #9a9aa5; cursor: not-allowed; }
.btn.submit { width: 100%; margin-top: 10px; font-family: inherit; }

/* panels + forms */
.panel {
  background: #fff;
  border-radius: 10px;
  border-top: 5px solid var(--gd-blue);
  padding: 30px 26px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  max-width: 640px;
  margin: 0 auto;
}
.panel.narrow { max-width: 420px; }
.panel.center { text-align: center; }
.panel-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 6px; }
.panel-sub { color: var(--gray); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; }
.panel-sub a { color: var(--gd-red); text-decoration: none; }
.form label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.form input, .form select, .form textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--gd-blue);
  border: 1.5px solid #c9d6e8;
  border-radius: 8px;
  background: #fbfdff;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--gd-light-blue);
  border-color: var(--gd-light-blue);
}
.row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 540px) { .row { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }
.error { color: var(--gd-red); font-weight: 700; font-size: 0.9rem; margin-bottom: 14px; }
.optional { font-weight: 400; color: var(--gray); font-size: 0.78rem; }

/* deal of the month banner */
.promo-banner {
  max-width: 640px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--gd-red) 0%, #b80023 100%);
  color: #fff;
  border-radius: 10px;
  padding: 18px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(228, 0, 43, 0.35);
  border-bottom: 4px solid var(--gd-blue);
}
.promo-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 6px;
}
.promo-offer {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.promo-fine {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* customer portal steps */
.steps-title { font-size: 1rem; font-weight: 900; color: var(--gd-blue); margin: 6px 0 10px; }
.steps { margin: 0 0 22px 22px; color: var(--gray); font-size: 0.95rem; }
.steps li { margin-bottom: 10px; line-height: 1.5; }
.steps strong { color: var(--gd-blue); }
.steps-help { margin-top: 18px; font-size: 0.88rem; color: var(--gray); line-height: 1.5; }
.steps-help a { color: var(--gd-red); text-decoration: none; }

/* photo upload field */
.photo-field {
  border: 1.5px dashed #c9d6e8;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fbfdff;
}
.photo-title { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; }
.photo-btn {
  display: inline-block;
  background: var(--gd-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
}
.photo-btn:active { background: #04026b; }
.photo-count { margin-left: 12px; font-size: 0.85rem; color: var(--gray); }
.photo-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.photo-thumb { position: relative; }
.photo-thumb img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid #c9d6e8;
  display: block;
}
.photo-x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--gd-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* employee hub */
.hub-note {
  background: #fff;
  border-left: 5px solid var(--gd-light-blue);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.logout { color: var(--gd-red); font-weight: 700; text-decoration: none; font-size: 0.85rem; white-space: nowrap; }
.group-title { font-size: 1.15rem; font-weight: 900; margin: 26px 0 14px; }
.section-blurb { color: var(--gray); font-size: 0.92rem; margin-bottom: 20px; }

/* presentation thumbnail grid */
.tile-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 620px) { .tile-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 900px) { .tile-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  text-decoration: none;
  color: var(--gd-blue);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, box-shadow 0.1s;
  text-align: center;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 5px 14px rgba(0,0,0,0.16); }
.thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  background: #e8eef7;
  display: block;
}
canvas.thumb { object-fit: contain; background: #fff; border: 1px solid #e2e9f3; }
.icon-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.tile-name {
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 10px;
  text-transform: capitalize;
  line-height: 1.3;
}
.tile-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.empty { color: var(--gray); font-size: 0.95rem; line-height: 1.6; }
.empty code { background: #e8eef7; padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; }

/* lightbox slideshow */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 6, 60, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox[hidden] { display: none; }
#lb-stage {
  max-width: 92vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lb-stage img, #lb-stage video, #lb-stage canvas {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
#lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.9rem;
  cursor: pointer;
  padding: 8px 12px;
  z-index: 2;
}
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 14px 16px 20px;
  border-radius: 10px;
  z-index: 2;
}
.lb-arrow:hover { background: rgba(255,255,255,0.25); }
#lb-prev { left: 12px; }
#lb-next { right: 12px; }
#lb-caption {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  padding: 0 20px;
}

/* quoting tool */
.quote-panel { max-width: 520px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.btn.secondary { background: var(--gd-blue); }
.btn.secondary:hover, .btn.secondary:active { background: #04026b; }
.btn.ghost {
  background: none;
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 12px;
  padding: 8px;
  width: 100%;
}
.btn.ghost:hover { background: #eef2f9; color: var(--gd-blue); }
.quote-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e8eef7;
  transition: opacity 0.15s;
}
.quote-row.off .q-label,
.quote-row.off .q-input { opacity: 0.35; }
.quote-row.off .q-input input { text-decoration: line-through; }
.q-label { flex: 1; font-weight: 700; font-size: 1rem; }
.q-sub { font-weight: 400; color: var(--gray); font-size: 0.85rem; }
.q-input {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.q-dollar { color: var(--gray); }
.q-input input {
  width: 110px;
  padding: 10px 12px;
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: 700;
  color: var(--gd-blue);
  text-align: right;
  border: 1.5px solid #c9d6e8;
  border-radius: 8px;
  background: #fbfdff;
}
.q-input input:focus { outline: 2px solid var(--gd-light-blue); border-color: var(--gd-light-blue); }
.q-input.computed { font-size: 1.05rem; color: var(--gd-blue); padding-right: 12px; }
.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--gd-blue);
  padding: 20px 2px 8px;
}
.quote-total span:last-child { color: var(--gd-red); }

/* price sheet */
.sheet-panel { max-width: 100%; padding: 20px; }
.sheet-search {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--gd-blue);
  border: 1.5px solid #c9d6e8;
  border-radius: 8px;
  background: #fbfdff;
  margin-bottom: 14px;
}
.sheet-search:focus { outline: 2px solid var(--gd-light-blue); border-color: var(--gd-light-blue); }
#sheet-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sheet-tab {
  border: 1.5px solid #c9d6e8;
  background: #fbfdff;
  color: var(--gd-blue);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.sheet-tab.active { background: var(--gd-blue); color: #fff; border-color: var(--gd-blue); }
.sheet-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.sheet { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
table.sheet th {
  background: var(--gd-blue);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  position: sticky;
  top: 0;
  white-space: nowrap;
}
table.sheet td { padding: 9px 12px; border-bottom: 1px solid #e8eef7; }
table.sheet tbody tr:nth-child(even) { background: #f4f8fd; }
table.sheet tbody tr:hover { background: #e7f1fb; }

/* tint calculator */
.tint-panel { max-width: 100%; margin-bottom: 20px; }
.tint-row { margin-bottom: 20px; }
.tint-label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; }
.tint-row select {
  display: block; width: 100%; margin-top: 5px; padding: 12px;
  font-size: 1rem; font-family: inherit; color: var(--gd-blue);
  border: 1.5px solid #c9d6e8; border-radius: 8px; background: #fbfdff;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip {
  border: 1.5px solid #c9d6e8; background: #fbfdff; color: var(--gd-blue);
  font-family: inherit; font-weight: 700; font-size: 0.82rem;
  padding: 9px 14px; border-radius: 20px; cursor: pointer;
}
.chip:hover { border-color: var(--gd-light-blue); }
.chip.active { background: var(--gd-blue); color: #fff; border-color: var(--gd-blue); }
.tint-input-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tint-input-wrap input {
  width: 130px; padding: 12px; font-size: 1.15rem; font-family: inherit; font-weight: 700;
  color: var(--gd-blue); text-align: right;
  border: 1.5px solid #c9d6e8; border-radius: 8px; background: #fbfdff;
}
.tint-input-wrap input:focus { outline: 2px solid var(--gd-light-blue); border-color: var(--gd-light-blue); }
.tint-pct { font-weight: 700; color: var(--gray); font-size: 1.05rem; }
.tint-hint { font-size: 0.78rem; color: var(--gray); flex: 1; min-width: 180px; }
.tint-note { font-size: 0.86rem; color: var(--gray); line-height: 1.55; margin-top: 10px; }
.tint-note a { color: var(--gd-red); }
.tint-note-inline { font-size: 0.82rem; color: var(--gray); font-weight: 400; }

.tint-best { border-top: 5px solid var(--gd-light-blue); }
.tint-alert { border-top: 5px solid var(--gd-red); }
.tint-eyebrow {
  display: block; font-size: 0.7rem; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gd-light-blue); margin-bottom: 6px;
}
.tint-headline { font-size: 1.55rem; font-weight: 900; color: var(--gd-blue); margin-bottom: 4px; }
.tint-big { font-size: 1.1rem; color: var(--gd-blue); }
.tint-big strong { font-size: 1.4rem; color: var(--gd-red); }
.tint-delta { font-size: 0.9rem; color: var(--gray); font-weight: 400; }
.tint-legal-line { margin-top: 12px; font-weight: 700; font-size: 0.95rem; }
.tint-warn {
  margin-top: 12px; padding: 12px 14px; border-radius: 8px;
  background: #fff2f4; border-left: 4px solid var(--gd-red);
  color: var(--gd-blue); font-size: 0.9rem; line-height: 1.5;
}
.tint-meter { border-top: 1px solid #e8eef7; padding-top: 12px; }
.tint-strip-note {
  background: #eef4fc; border-left: 4px solid var(--gd-light-blue);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 20px;
  font-size: 0.88rem; line-height: 1.55; color: var(--gd-blue);
}
.tint-strip-note[hidden] { display: none; }
.legal-ok { color: #0a7d34; font-weight: 700; font-size: 0.82rem; }
.legal-no { color: var(--gd-red); font-weight: 700; font-size: 0.82rem; }
.tint-tag {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  background: var(--gd-light-blue); color: #fff; padding: 2px 6px; border-radius: 4px;
}
table.sheet tr.row-best { background: #e7f1fb !important; }
table.sheet tr.row-best td { font-weight: 700; }
.law-table td { vertical-align: top; line-height: 1.5; }
.law-table td:first-child { white-space: nowrap; font-weight: 700; }

/* toggle switch */
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: #c3cddd;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.15s;
}
.slider:before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.switch input:checked + .slider { background: var(--gd-blue); }
.switch input:checked + .slider:before { transform: translateX(22px); }

footer {
  background: var(--gd-blue);
  color: #fff;
  text-align: center;
  padding: 16px;
  font-size: 0.8rem;
}
