.quote-hero {
  padding: 66px 0 52px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 86% 18%,
      rgba(53, 216, 234, 0.11),
      transparent 24%
    ),
    linear-gradient(150deg, #f6f9f6, #edf8f2);
}

.quote-hero-grid {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 70px;
  align-items: end;
}

.quote-hero .crumbs {
  margin-bottom: 28px;
}

.quote-hero h1 {
  max-width: 760px;
  margin: 20px 0 22px;
  font-size: clamp(58px, 6.5vw, 88px);
}

.quote-hero .lead {
  max-width: 620px;
  margin: 0;
  font-size: 18px;
}

.quote-boundary {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(6, 63, 43, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(6, 63, 43, 0.06);
  backdrop-filter: blur(10px);
}

.quote-boundary div {
  min-width: 0;
}

.quote-boundary span,
.quote-boundary strong {
  display: block;
}

.quote-boundary span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.quote-boundary strong {
  font:
    800 14px/1.4 "Manrope",
    sans-serif;
}

.quote-boundary i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-style: normal;
}

.quote-section {
  padding: 64px 0 96px;
  background: #f6f8f5;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 24px;
  align-items: start;
}

.quote-builder,
.quote-result {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 18px 54px rgba(6, 63, 43, 0.065);
}

.quote-builder {
  padding: 34px;
}

.quote-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.quote-kicker {
  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.quote-panel-head h2 {
  margin: 8px 0 0;
  font-size: 38px;
  letter-spacing: -1.5px;
}

.quote-data-badge,
.quote-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: var(--green-800);
  font-size: 10px;
  font-weight: 800;
}

.quote-data-badge {
  flex: none;
  padding: 8px 11px;
  background: var(--green-50);
}

.quote-data-badge i,
.quote-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(6, 156, 101, 0.11);
}

.quote-fieldset {
  min-width: 0;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.quote-fieldset legend,
.quote-fieldset-head > span {
  margin-bottom: 11px;
  color: #263f35;
  font-size: 12px;
  font-weight: 800;
}

.quote-fieldset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.quote-fieldset-head > span {
  margin: 0;
}

.brand-browse {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.brand-browse b {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin: 0 3px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-50);
  font-size: 9px;
}

.market-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid #dfe9e4;
  border-radius: 16px;
  background: #f7faf8;
}

.market-switch button {
  display: flex;
  min-height: 58px;
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #4a5f56;
  cursor: pointer;
}

.market-switch button.active {
  border-color: #c8e4d6;
  background: white;
  color: var(--green-800);
  box-shadow: 0 8px 20px rgba(6, 63, 43, 0.07);
}

.market-switch span,
.market-switch small {
  display: block;
}

.market-switch span {
  font-size: 14px;
  font-weight: 800;
}

.market-switch small {
  color: var(--muted);
  font-size: 10px;
}

.quote-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quote-card-choice {
  position: relative;
  overflow: hidden;
  padding: 7px 7px 13px;
  border: 1px solid #dfe8e3;
  border-radius: 17px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.quote-card-choice:hover {
  transform: translateY(-2px);
  border-color: #b8d8c8;
}

.quote-card-choice.selected {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(6, 156, 101, 0.09);
}

.quote-card-choice > .brand-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  border-radius: 13px;
  background: #edf3f0;
}

.brand-art {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: var(--brand-color, #0a4937);
  color: white;
}

.brand-art::after {
  position: absolute;
  top: -45%;
  right: -17%;
  width: 75%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.brand-art.has-image::after {
  display: none;
}

.brand-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.quote-card-choice .brand-art.has-image {
  box-shadow: inset 0 0 0 1px rgba(6, 63, 43, 0.06);
}

.brand-art > b {
  position: relative;
  z-index: 1;
  font:
    800 25px "Manrope",
    sans-serif;
  letter-spacing: -1px;
}

.quote-card-choice > span {
  display: block;
  padding: 12px 30px 0 6px;
}

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

.quote-card-choice strong {
  font:
    800 15px "Manrope",
    sans-serif;
}

.quote-card-choice small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-card-choice > i {
  position: absolute;
  right: 13px;
  bottom: 17px;
  width: 17px;
  height: 17px;
  border: 1px solid #cddbd4;
  border-radius: 50%;
}

.quote-card-choice.selected > i {
  border: 5px solid #d9f3e6;
  background: var(--green-600);
}

.quote-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quote-amount-field {
  margin-top: 2px;
}

.quote-amount-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 58px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.quote-amount-input:focus-within {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(6, 156, 101, 0.1);
}

.quote-amount-input span {
  color: var(--green-800);
  font:
    800 19px "Manrope",
    sans-serif;
}

.quote-amount-input input {
  min-width: 0;
  height: 56px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font:
    800 20px "Manrope",
    sans-serif;
}

.quote-amount-input em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.quote-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 7px;
}

.quote-submit.loading {
  pointer-events: none;
}

.quote-result {
  position: sticky;
  top: 20px;
  overflow: hidden;
  padding: 28px;
}

.quote-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.quote-result-head span,
.quote-result-head strong {
  display: block;
}

.quote-result-head > div > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.quote-result-head > div > strong {
  margin-top: 5px;
  font:
    800 21px "Manrope",
    sans-serif;
}

.quote-status {
  padding: 8px 11px;
  background: var(--green-50);
}

.quote-result-brand {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding: 10px;
  border: 1px solid #e0e9e4;
  border-radius: 16px;
  background: #fafcfb;
}

.result-brand-art {
  display: block;
  width: 78px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
}

.result-brand-art .brand-art {
  width: 100%;
  height: 100%;
}

.result-brand-art .brand-art > b {
  font-size: 14px;
}

.quote-result-brand strong,
.quote-result-brand span {
  display: block;
}

.quote-result-brand strong {
  font:
    800 16px "Manrope",
    sans-serif;
}

.quote-result-brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.quote-payout {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(140deg, #063f2b, #087b51);
  color: white;
}

.quote-payout::after {
  position: absolute;
  top: -55px;
  right: -40px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  content: "";
}

.quote-payout span,
.quote-payout strong,
.quote-payout small {
  position: relative;
  z-index: 1;
  display: block;
}

.quote-payout span {
  color: #c1d8cd;
  font-size: 11px;
  font-weight: 700;
}

.quote-payout strong {
  margin: 7px 0 5px;
  font:
    800 38px "Manrope",
    sans-serif;
  letter-spacing: -1.3px;
}

.quote-payout small {
  color: #c1d8cd;
  font-size: 10px;
}

.quote-breakdown {
  margin: 15px 0 0;
}

.quote-breakdown div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 2px;
  border-bottom: 1px solid #e9efec;
  font-size: 12px;
}

.quote-breakdown dt {
  color: var(--muted);
}

.quote-breakdown dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.quote-notice {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #e1ebe6;
  border-radius: 13px;
  background: #f7faf8;
}

.quote-notice i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.quote-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.quote-app-button,
.quote-copy {
  width: 100%;
  min-height: 50px;
}

.quote-copy {
  margin-top: 9px;
  border: 1px solid #dce7e1;
  border-radius: 12px;
  background: white;
  color: #294139;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.quote-copy:hover {
  background: var(--green-50);
}

.quote-app-only {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #e4ece8;
}

.quote-app-only strong {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-size: 11px;
}

.quote-app-only span {
  padding: 8px 6px;
  border-radius: 9px;
  background: #f4f8f6;
  color: #60736a;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.quote-preview-note {
  margin: 12px 0 0;
  color: #86938d;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.quote-result.is-loading .quote-payout,
.quote-result.is-loading .quote-result-brand,
.quote-result.is-loading .quote-breakdown {
  opacity: 0.45;
}

.quote-footer-bottom {
  margin-top: 0;
}

@media (max-width: 980px) {
  .quote-hero-grid,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .quote-hero-grid {
    gap: 34px;
  }

  .quote-boundary {
    max-width: 650px;
  }

  .quote-result {
    position: static;
  }
}

@media (max-width: 620px) {
  .quote-hero {
    padding: 40px 0 36px;
  }

  .quote-hero .crumbs {
    margin-bottom: 22px;
  }

  .quote-hero h1 {
    margin: 17px 0;
    font-size: 50px;
    letter-spacing: -3px;
  }

  .quote-hero .lead {
    font-size: 16px;
  }

  .quote-boundary {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .quote-boundary i {
    width: 28px;
    height: 28px;
    transform: rotate(90deg);
  }

  .quote-section {
    padding: 34px 0 72px;
  }

  .quote-builder,
  .quote-result {
    padding: 22px;
    border-radius: 22px;
  }

  .quote-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 26px;
  }

  .quote-panel-head h2 {
    font-size: 32px;
  }

  .market-switch {
    grid-template-columns: 1fr;
  }

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

  .quote-card-choice {
    display: grid;
    grid-template-columns: 106px 1fr;
    gap: 3px;
    align-items: center;
    padding: 7px;
  }

  .quote-card-choice > .brand-art {
    width: 106px;
  }

  .quote-card-choice > span {
    padding: 0 30px 0 10px;
  }

  .quote-card-choice > i {
    right: 15px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .quote-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .quote-payout strong {
    font-size: 34px;
  }

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

  .quote-app-only strong {
    grid-column: auto;
  }
}

.brand-picker {
  position: fixed;
  z-index: 115;
  inset: 0;
  display: none;
  padding: 20px;
  place-items: center;
  background: rgba(3, 27, 19, 0.7);
  backdrop-filter: blur(12px);
}

.brand-picker.open {
  display: grid;
}

.brand-picker-dialog {
  width: min(880px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  background: #fbfdfb;
  box-shadow: 0 36px 100px rgba(0, 30, 20, 0.32);
}

.brand-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand-picker-head h2 {
  margin: 8px 0 8px;
  font-size: 38px;
  letter-spacing: -1.6px;
}

.brand-picker-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.brand-picker-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.brand-search {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  min-height: 54px;
  align-items: center;
  margin-top: 26px;
  padding: 0 15px;
  border: 1px solid #d9e6df;
  border-radius: 15px;
  background: white;
}

.brand-search:focus-within {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(6, 156, 101, 0.1);
}

.brand-search > span {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid #668078;
  border-radius: 50%;
}

.brand-search > span::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  transform: rotate(45deg);
  border-radius: 3px;
  background: #668078;
  content: "";
}

.brand-search input {
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.brand-search kbd {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #d9e3de;
  border-radius: 7px;
  background: #f6f8f6;
  color: var(--muted);
  font:
    700 10px "DM Sans",
    sans-serif;
}

.brand-categories {
  display: flex;
  gap: 7px;
  margin: 18px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.brand-categories::-webkit-scrollbar {
  display: none;
}

.brand-category {
  flex: none;
  min-height: 35px;
  padding: 0 13px;
  border: 1px solid #dce7e1;
  border-radius: 999px;
  background: white;
  color: #53675e;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.brand-category.active {
  border-color: var(--green-800);
  background: var(--green-800);
  color: white;
}

.brand-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.brand-directory-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 13px;
  min-width: 0;
  align-items: center;
  padding: 9px;
  border: 1px solid #dee8e3;
  border-radius: 16px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.brand-directory-card:hover {
  transform: translateY(-2px);
  border-color: #b7d8c7;
  box-shadow: 0 10px 24px rgba(6, 63, 43, 0.07);
}

.brand-directory-card.selected {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(6, 156, 101, 0.08);
}

.brand-directory-card .brand-art {
  width: 92px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
}

.brand-directory-card .brand-art > b {
  font-size: 17px;
}

.brand-directory-copy {
  min-width: 0;
}

.brand-directory-copy strong,
.brand-directory-copy span {
  display: block;
}

.brand-directory-copy strong {
  overflow: hidden;
  font:
    800 14px "Manrope",
    sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-directory-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.brand-directory-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.brand-directory-meta b {
  color: var(--green-700);
  font-size: 9px;
}

.brand-directory-meta span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #cddbd4;
  border-radius: 50%;
  color: transparent;
  font-size: 9px;
}

.brand-directory-card.selected .brand-directory-meta span {
  border-color: var(--green-600);
  background: var(--green-600);
  color: white;
}

.brand-empty {
  padding: 54px 20px;
  border: 1px dashed #ccdbd4;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.brand-empty strong,
.brand-empty span {
  display: block;
}

.brand-empty strong {
  color: var(--ink);
  font:
    800 17px "Manrope",
    sans-serif;
}

.brand-empty span {
  margin-top: 5px;
  font-size: 11px;
}

.brand-picker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e3ebe7;
  color: var(--muted);
  font-size: 10px;
}

.brand-picker-foot span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.brand-picker-foot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
}

@media (max-width: 720px) {
  .brand-picker {
    align-items: end;
    padding: 0;
  }

  .brand-picker-dialog {
    width: 100%;
    max-height: 92dvh;
    padding: 26px 18px 18px;
    border-radius: 26px 26px 0 0;
  }

  .brand-picker-head h2 {
    font-size: 31px;
  }

  .brand-picker-head p {
    font-size: 12px;
  }

  .brand-directory {
    grid-template-columns: 1fr;
  }

  .brand-picker-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
