﻿.quote-page {
  background: #f5f8ff;
  color: #101828;
  overflow-x: clip;
}

.quote-page [hidden] {
  display: none !important;
}

.submit-error {
  margin: 10px 0 0;
  color: #b42318;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.quote-page .quote-header {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.quote-page .quote-header .main-nav a:hover,
.quote-page .quote-header .main-nav a.active {
  color: var(--emerald);
}

.quote-page .quote-header .hamburger span {
  background: var(--ink);
}

.quote-back {
  gap: 9px;
}

.quote-main {
  padding-top: 86px;
}

.quote-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 58px 0 46px;
  background: #071d49;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.quote-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 12, 35, 0.74), rgba(7, 29, 73, 0.56) 55%, rgba(3, 12, 35, 0.7));
}

.quote-intro-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.quote-intro-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(420px, 1fr);
  gap: 70px;
  align-items: end;
}

.quote-intro-inner > * {
  min-width: 0;
}

.quote-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.quote-breadcrumb a:hover {
  color: #38bdf8;
}

.quote-breadcrumb i {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.48);
}

.quote-intro .eyebrow {
  margin-bottom: 16px;
  border-color: #0b5ed7;
  background: #0b5ed7;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.quote-intro h1 {
  max-width: 780px;
  font-size: clamp(2.25rem, 4.2vw, 4.2rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
  color: #fff;
}

.quote-mobile-break {
  display: none;
}

.quote-intro h1::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 6px;
  border-radius: 2px;
  background: var(--emerald);
}

.quote-intro p {
  max-width: 690px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.03rem;
}

.quote-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(3, 20, 15, 0.42);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.quote-trust span {
  min-width: 0;
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}

.quote-trust span:last-child {
  border-right: 0;
}

.quote-trust i,
.quote-trust strong {
  display: block;
}

.quote-trust i {
  margin-bottom: 11px;
  color: #38bdf8;
  font-size: 1.1rem;
}

.quote-trust strong {
  margin-bottom: 2px;
  color: #fff;
  font-size: 0.78rem;
}

.quote-workspace {
  padding: 38px 0 74px;
}

.service-switch {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto 28px;
  padding: 5px;
  border: 1px solid #d8e6ff;
  border-radius: 8px;
  background: #e8f1ff;
}

.service-switch-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 11px 20px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667085;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.service-switch-btn span {
  min-width: 0;
}

.service-switch-btn > i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
  color: #667085;
}

.service-switch-btn span,
.service-switch-btn strong,
.service-switch-btn small {
  display: block;
}

.service-switch-btn strong {
  font-size: 0.95rem;
}

.service-switch-btn small {
  margin-top: 1px;
  font-size: 0.74rem;
}

.service-switch-btn.active {
  background: #fff;
  color: #101828;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.09);
}

.service-switch-btn.active > i {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.quote-layout {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 354px;
  gap: 28px;
  align-items: start;
}

.quote-content {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 20px;
}

.quote-panel {
  width: 100%;
  min-width: 0;
  padding: 30px;
  border: 1px solid #d8e6ff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.035);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 26px;
}

.step-index {
  flex: 0 0 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-size: 0.77rem;
  font-weight: 900;
}

.panel-heading > div {
  min-width: 0;
  flex: 1;
}

.panel-heading h2 {
  font-size: 1.13rem;
  line-height: 1.35;
  font-weight: 900;
}

.panel-heading p {
  margin-top: 3px;
  color: #667085;
  font-size: 0.86rem;
}

.secure-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 5px;
  background: #eef5ff;
  color: #084bb5;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.upload-zone {
  position: relative;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed #a9bddb;
  border-radius: 8px;
  background: #fbfdff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-zone:hover,
.upload-zone.dragging {
  border-color: var(--emerald);
  background: #eef5ff;
}

.upload-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-zone > :not(input) {
  pointer-events: none;
}

.upload-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 11px;
  border-radius: 7px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 1.1rem;
}

.upload-zone strong {
  color: #344054;
  font-size: 0.92rem;
}

.upload-zone > span:not(.upload-icon) {
  color: #667085;
  font-size: 0.83rem;
}

.upload-zone small {
  margin-top: 9px;
  color: #98a2b3;
  font-size: 0.7rem;
}

.compact-upload {
  min-height: 124px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  text-align: left;
}

.compact-upload .upload-icon {
  flex: 0 0 48px;
  margin: 0;
}

.compact-upload strong,
.compact-upload > span:not(.upload-icon) {
  display: block;
}

.bom-upload {
  min-height: 110px;
}

.uploaded-files {
  margin-top: 12px;
  border: 1px solid #d8e6ff;
  border-radius: 7px;
  background: #f8fbff;
  overflow: hidden;
}

.file-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 30px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #dbe6f7;
}

.file-row:last-child {
  border-bottom: 0;
}

.file-row.selected {
  background: #eef5ff;
  box-shadow: inset 3px 0 0 var(--emerald);
}

.file-select {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.file-select:hover strong,
.file-row.selected .file-select strong {
  color: var(--emerald-dark);
}

.file-row > i {
  color: var(--emerald);
}

.file-row strong,
.file-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row strong {
  color: #344054;
  font-size: 0.78rem;
}

.file-row small,
.file-status {
  color: #7b8b84;
  font-size: 0.68rem;
}

.file-status {
  color: #084bb5;
  font-weight: 800;
}

.remove-file {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #98a2b3;
  cursor: pointer;
}

.remove-file:hover {
  background: #feecec;
  color: #c24141;
}

.gerber-viewer {
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
  margin-right: auto;
  margin-left: auto;
  border-radius: 8px;
  background: #111a18;
  color: #fff;
  overflow: hidden;
}

.viewer-toolbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #17231f;
  min-width: 0;
}

.viewer-toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.viewer-toolbar > div:first-child i {
  color: #38bdf8;
}

.viewer-toolbar strong {
  font-size: 0.78rem;
}

.viewer-toolbar > div:first-child span {
  padding-left: 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  color: #a9b7b1;
  font-size: 0.67rem;
}

.viewer-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.viewer-side-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-right: 6px;
  padding: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
}

.viewer-side-switch button {
  width: auto;
  min-width: 42px;
  height: 27px;
  padding: 0 8px;
  background: transparent;
  color: #9aaba3;
  font-size: 0.62rem;
  font-weight: 800;
}

.viewer-side-switch button.active {
  background: #0b5ed7;
  color: #fff;
}

.viewer-color-switch {
  display: flex;
  gap: 3px;
  margin-right: 6px;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.viewer-actions .viewer-color-switch button {
  width: 22px;
  height: 31px;
  background: transparent;
}

.viewer-actions .viewer-color-switch button:hover,
.viewer-actions .viewer-color-switch button.active {
  background: rgba(255, 255, 255, 0.1);
}

.viewer-actions .viewer-color-switch span {
  width: 13px;
  min-width: 13px;
  height: 13px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: var(--viewer-color);
}

.viewer-color-switch button.active span {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.viewer-color-switch [data-view-color="green"] { --viewer-color: #059669; }
.viewer-color-switch [data-view-color="black"] { --viewer-color: #111827; }
.viewer-color-switch [data-view-color="blue"] { --viewer-color: #2563eb; }
.viewer-color-switch [data-view-color="red"] { --viewer-color: #dc2626; }
.viewer-color-switch [data-view-color="yellow"] { --viewer-color: #eab308; }
.viewer-color-switch [data-view-color="purple"] { --viewer-color: #9333ea; }
.viewer-color-switch [data-view-color="white"] { --viewer-color: #f8fafc; }

.viewer-actions button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #dce7e2;
  cursor: pointer;
}

.viewer-actions button:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

.viewer-actions span {
  min-width: 48px;
  color: #a9b7b1;
  text-align: center;
  font-size: 0.68rem;
}

.viewer-body {
  min-height: 380px;
  display: block;
}

.layer-list {
  padding: 17px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1220;
}

.layer-list > span {
  display: block;
  margin: 0 7px 12px;
  color: #788780;
  font-size: 0.6rem;
  font-weight: 900;
}

.layer-list label {
  display: grid;
  grid-template-columns: 14px 9px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 8px 7px;
  border-radius: 5px;
  color: #c5d1cc;
  font-size: 0.68rem;
  cursor: pointer;
}

.layer-list label:hover {
  background: rgba(255, 255, 255, 0.05);
}

.layer-list input {
  accent-color: var(--emerald);
}

.layer-list small {
  grid-column: 3;
  color: #708078;
  font-size: 0.58rem;
}

.layer-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.layer-dot.copper { background: #f5b942; }
.layer-dot.mask { background: #10b981; }
.layer-dot.silk { background: #edf4f1; }
.layer-dot.drill { background: #60a5fa; }
.layer-dot.edge { background: #c084fc; }

.viewer-canvas-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  min-width: 0;
  overflow: hidden;
  background-color: #0b1220;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 18px 18px;
  cursor: grab;
}

.viewer-canvas-wrap.dragging {
  cursor: grabbing;
}

.gerber-render {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 22px;
  transform-origin: center;
  will-change: transform;
  box-sizing: border-box;
}

.gerber-render > svg,
.gerber-render > img {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.28));
}

.gerber-render > svg {
  width: 100%;
  height: 100%;
}

.gerber-render > img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
}

.viewer-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #718078;
  text-align: center;
  pointer-events: none;
}

.viewer-empty i {
  margin-bottom: 6px;
  color: #38bdf8;
  font-size: 1.55rem;
}

.viewer-empty strong {
  color: #a9b7b1;
  font-size: 0.82rem;
}

.viewer-empty span {
  font-size: 0.66rem;
}

.viewer-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(7, 15, 12, 0.76);
  color: #819089;
  font-size: 0.62rem;
  pointer-events: none;
}

.viewer-hint i {
  margin-right: 5px;
}

.gerber-viewer.full-view {
  position: fixed;
  inset: 16px;
  z-index: 2000;
  margin: 0;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.gerber-viewer.full-view .viewer-body {
  height: calc(100% - 50px);
}

.field-grid {
  display: grid;
  gap: 19px 16px;
}

.field-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
.field > span {
  display: block;
}

.field > span,
.color-field legend,
.design-services > span {
  margin-bottom: 7px;
  color: #475467;
  font-size: 0.77rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d8e2dd;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  height: 124px;
  padding-top: 11px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
}

.field input.invalid,
.consent.invalid {
  border-color: #dc2626;
}

.number-stepper {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  height: 44px;
  border: 1px solid #d8e2dd;
  border-radius: 6px;
  overflow: hidden;
}

.number-stepper input {
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: center;
  font-weight: 800;
  appearance: textfield;
}

.number-stepper input::-webkit-inner-spin-button {
  appearance: none;
}

.number-stepper button {
  border: 0;
  background: #f8fbff;
  color: #667085;
  cursor: pointer;
}

.number-stepper button:hover {
  color: var(--emerald);
  background: #edf8f3;
}

.color-field {
  margin-top: 22px;
  border: 0;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.color-swatches label {
  position: relative;
  min-width: 70px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid #d8e6ff;
  border-radius: 6px;
  cursor: pointer;
}

.color-swatches input {
  position: absolute;
  opacity: 0;
}

.color-swatches label:has(input:checked) {
  border-color: var(--emerald);
  box-shadow: 0 0 0 2px rgba(11, 94, 215, 0.1);
}

.swatch {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.swatch.green { background: #168b63; }
.swatch.black { background: #18201e; }
.swatch.blue { background: #2563a8; }
.swatch.red { background: #c43c3c; }
.swatch.yellow { background: #eab308; }
.swatch.purple { background: #9333ea; }
.swatch.white { background: #f6f6f2; }

.color-swatches small {
  color: #667085;
  font-size: 0.68rem;
}

.design-services {
  margin-top: 23px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-grid label {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid #d8e6ff;
  border-radius: 7px;
  cursor: pointer;
}

.check-grid label:has(input:checked) {
  border-color: #5b8fe8;
  background: #eef5ff;
}

.check-grid input {
  position: absolute;
  top: 10px;
  right: 10px;
  accent-color: var(--emerald);
}

.check-grid label > i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #eef5ff;
  color: var(--emerald);
}

.check-grid strong,
.check-grid small {
  display: block;
}

.check-grid strong {
  color: #344054;
  font-size: 0.78rem;
}

.check-grid small {
  color: #84918b;
  font-size: 0.66rem;
}

.full-field {
  margin: 22px 0 18px;
}

.component-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 12px;
}

.component-entry-head strong,
.component-entry-head small {
  display: block;
}

.component-entry-head strong {
  color: #344054;
  font-size: 0.82rem;
}

.component-entry-head small {
  margin-top: 2px;
  color: #7c8b84;
  font-size: 0.68rem;
}

.component-entry-head button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #b9d4c8;
  border-radius: 6px;
  background: #f2faf6;
  color: #084bb5;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.component-table {
  display: grid;
  gap: 9px;
}

.component-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 100px 38px;
  gap: 10px;
  align-items: end;
  padding: 13px;
  border: 1px solid #d8e6ff;
  border-radius: 7px;
  background: #fafcfb;
}

.remove-component {
  width: 38px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #fff0f0;
  color: #be3b3b;
  cursor: pointer;
}

.remove-component:hover {
  background: #fde2e2;
}

.procurement-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.procurement-options label {
  position: relative;
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid #d8e6ff;
  border-radius: 7px;
  cursor: pointer;
}

.procurement-options label:has(input:checked) {
  border-color: #5b8fe8;
  background: #eef5ff;
}

.procurement-options input {
  margin-top: 3px;
  accent-color: var(--emerald);
}

.procurement-options span,
.procurement-options strong,
.procurement-options small {
  display: block;
}

.procurement-options strong {
  color: #344054;
  font-size: 0.74rem;
}

.procurement-options small {
  margin-top: 3px;
  color: #7c8b84;
  font-size: 0.64rem;
  line-height: 1.45;
}

.assembly-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #e0e7e4;
  border-radius: 7px;
  cursor: pointer;
}

.toggle-row span,
.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row strong {
  color: #344054;
  font-size: 0.8rem;
}

.toggle-row small {
  margin-top: 2px;
  color: #7c8b84;
  font-size: 0.68rem;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
}

.toggle-row > i {
  position: relative;
  width: 40px;
  height: 22px;
  flex: 0 0 40px;
  border-radius: 999px;
  background: #cdd7d2;
  transition: background 0.2s ease;
}

.toggle-row > i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.toggle-row input:checked + i {
  background: var(--emerald);
}

.toggle-row input:checked + i::after {
  transform: translateX(18px);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #667085;
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 3px;
  accent-color: var(--emerald);
}

.consent.invalid {
  border-color: #dc2626;
  background: #fff1f2;
  color: #991b1b;
  animation: consent-shake 0.28s ease-in-out;
}

.consent.invalid input {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.consent-error {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 12px 0;
  color: #b42318;
  font-size: 0.75rem;
  font-weight: 700;
}

.consent-error i {
  color: #dc2626;
  font-size: 0.9rem;
}

@keyframes consent-shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  65% { transform: translateX(4px); }
}

.quote-summary {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 14px;
}

.summary-card {
  border: 1px solid #d9e3de;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 23px 18px;
}

.summary-head span {
  color: var(--emerald);
  font-size: 0.64rem;
  font-weight: 900;
}

.summary-head h2 {
  margin-top: 2px;
  font-size: 1.08rem;
  font-weight: 900;
}

.summary-head > i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.summary-service {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 23px;
  padding: 14px;
  border-radius: 7px;
  background: #f8fbff;
}

.summary-service > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  color: var(--emerald);
}

.summary-service strong,
.summary-service small {
  display: block;
}

.summary-service strong {
  color: #344054;
  font-size: 0.82rem;
}

.summary-service small {
  margin-top: 2px;
  color: #7d8b84;
  font-size: 0.67rem;
}

.summary-list {
  display: grid;
  gap: 11px;
  margin: 20px 23px;
  padding-bottom: 19px;
  border-bottom: 1px solid #dbe6f7;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #667085;
  font-size: 0.75rem;
}

.summary-list dd {
  color: #344054;
  font-weight: 800;
  text-align: right;
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 23px 20px;
}

.summary-total span,
.summary-total small {
  display: block;
}

.summary-total span {
  color: #475467;
  font-size: 0.8rem;
  font-weight: 800;
}

.summary-total small {
  margin-top: 1px;
  color: #98a2b3;
  font-size: 0.63rem;
  font-weight: 500;
}

.summary-total strong {
  color: var(--emerald-dark);
  font-size: 1.55rem;
  font-weight: 900;
  white-space: nowrap;
}

.price-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 23px 18px;
  padding: 10px;
  border-radius: 5px;
  background: #fffaeb;
  color: #856404;
  font-size: 0.64rem;
  line-height: 1.45;
}

.price-note i {
  margin-top: 2px;
}

.submit-quote {
  width: calc(100% - 46px);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 23px;
  padding: 0 17px;
  border: 0;
  border-radius: 7px;
  background: var(--emerald);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(11, 94, 215, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.submit-quote:hover {
  background: #084bb5;
  transform: translateY(-1px);
}

.summary-assurance {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  padding: 18px 23px 22px;
  border-top: 1px solid #dbe6f7;
  color: #697770;
  font-size: 0.66rem;
}

.summary-assurance i {
  margin-right: 7px;
  color: var(--emerald);
}

.expert-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid #d9e3de;
  border-radius: 8px;
  background: #fff;
}

.expert-card > i:first-child {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #e3f9ec;
  color: #16a34a;
  font-size: 1.15rem;
}

.expert-card strong,
.expert-card small {
  display: block;
}

.expert-card strong {
  color: #344054;
  font-size: 0.77rem;
}

.expert-card small {
  color: #7c8b84;
  font-size: 0.64rem;
}

.expert-card > i:last-child {
  color: #98a2b3;
  font-size: 0.65rem;
}

.quote-footer {
  padding: 24px 0;
  border-top: 1px solid #dbe4df;
  background: #fff;
  color: #718078;
  font-size: 0.72rem;
}

.quote-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

.quote-footer .container > div {
  display: flex;
  gap: 20px;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 18, 15, 0.66);
  backdrop-filter: blur(8px);
}

.quote-modal[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 460px);
  padding: 38px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.success-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 1.4rem;
}

.modal-kicker {
  color: var(--emerald);
  font-size: 0.66rem;
  font-weight: 900;
}

.modal-card h2 {
  margin: 8px 0 10px;
  font-size: 1.5rem;
  font-weight: 900;
}

.modal-card p {
  color: #667085;
  font-size: 0.85rem;
}

.request-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 23px 0;
  padding: 13px 15px;
  border: 1px solid #d8e6ff;
  border-radius: 6px;
  background: #f7faf8;
  color: #667085;
  font-size: 0.75rem;
}

.request-number strong {
  color: var(--emerald-dark);
}

.modal-card .btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .quote-intro-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .quote-layout {
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 20px;
  }

  .field-grid.three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .component-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 90px 38px;
  }

  .procurement-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .quote-page .quote-header .header-cta {
    display: none;
  }

  .quote-page .main-nav {
    top: 65px;
  }

  .quote-layout {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .quote-summary {
    position: static;
  }

  .summary-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .summary-head,
  .summary-service,
  .summary-list,
  .summary-total,
  .price-note,
  .submit-quote,
  .summary-assurance {
    grid-column: auto;
  }

  .summary-service {
    margin: 18px 23px;
  }

  .summary-list {
    grid-column: 1;
  }

  .summary-total {
    grid-column: 2;
    align-self: end;
  }

  .price-note,
  .submit-quote,
  .summary-assurance {
    grid-column: 1 / -1;
  }

  .submit-quote {
    width: calc(100% - 46px);
  }
}

@media (max-width: 680px) {
  .quote-page .container {
    width: min(100% - 28px, 1180px);
    margin-inline: auto;
  }

  .quote-main {
    padding-top: 78px;
  }

  .quote-intro {
    padding: 38px 0 34px;
  }

  .quote-intro::after {
    background: rgba(3, 20, 15, 0.64);
  }

  .quote-intro-video {
    object-position: 52% center;
  }

  .quote-intro h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.62rem, 8vw, 1.95rem);
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .quote-intro h1 br {
    display: block;
  }

  .quote-intro h1 .quote-mobile-break {
    display: block;
  }

  .quote-intro h1::after {
    width: 9px;
    height: 9px;
  }

  .quote-trust {
    grid-template-columns: 1fr;
  }

  .quote-trust span {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .quote-trust span:last-child {
    border-bottom: 0;
  }

  .service-switch {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .quote-trust i {
    grid-row: 1 / 3;
    margin: 3px 0 0;
  }

  .service-switch-btn {
    justify-content: flex-start;
    min-height: 62px;
    padding: 8px 12px;
    gap: 10px;
    text-align: left;
  }

  .service-switch-btn > i {
    width: 32px;
    height: 34px;
  }

  .service-switch-btn strong {
    font-size: 0.75rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .service-switch-btn small {
    display: block;
  }

  .quote-panel {
    padding: 18px 16px;
  }

  #quoteForm,
  .quote-layout,
  .quote-content,
  .quote-panel,
  .gerber-viewer,
  .viewer-body,
  .viewer-canvas-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .secure-chip {
    display: none;
  }

  .field-grid.three-col,
  .field-grid.two-col,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .component-entry-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .component-row {
    grid-template-columns: 1fr 74px 38px;
  }

  .component-row .field:first-child {
    grid-column: 1 / -1;
  }

  .viewer-body {
    min-height: 350px;
    grid-template-columns: 1fr;
  }

  .layer-list {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .layer-list > span,
  .layer-list small {
    display: none;
  }

  .layer-list label {
    grid-template-columns: 14px 9px auto;
    flex: 0 0 auto;
  }

  .viewer-canvas-wrap {
    height: 310px;
    min-height: 310px;
  }

  .gerber-render {
    padding: 14px;
  }

  .viewer-toolbar > div:first-child span {
    display: none;
  }

  .viewer-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 9px 10px;
  }

  .viewer-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .viewer-actions button:nth-last-child(1) {
    display: none;
  }

  .compact-upload {
    align-items: flex-start;
  }

  .summary-card {
    display: block;
  }

  .summary-service {
    margin: 0 21px;
  }

  .summary-head,
  .summary-total {
    padding-left: 21px;
    padding-right: 21px;
  }

  .summary-list,
  .price-note {
    margin-left: 21px;
    margin-right: 21px;
  }

  .submit-quote {
    width: calc(100% - 42px);
    margin-left: 21px;
    margin-right: 21px;
  }

  .quote-footer .container,
  .quote-footer .container > div {
    flex-direction: column;
    gap: 5px;
  }

  .modal-card {
    padding: 28px 22px;
  }
}

@media (max-width: 430px) {
  .quote-page .container {
    width: min(100% - 24px, 1180px);
  }

  .quote-intro {
    padding-top: 34px;
  }

  .quote-intro h1 {
    font-size: clamp(1.46rem, 7.2vw, 1.72rem);
    letter-spacing: -0.02em;
  }

  .quote-intro p {
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 96%;
  }

  .quote-panel h2 {
    font-size: 1.18rem;
    line-height: 1.22;
  }

  .upload-drop {
    padding-inline: 16px;
  }
}
