:root {
  --ink: #0b0b0b;
  --muted: #4d5960;
  --line: #e5ddd4;
  --brand: #ff5a00;
  --brand-dark: #d94600;
  --brand-soft: #fff1e7;
  --brand-pale: #fff8f2;
  --green: #94e239;
  --green-dark: #5e9d19;
  --navy: #1f2f37;
  --panel: #ffffff;
  --accent: #111111;
  --paper: #fff7ef;
  --soft: #f7f1e9;
  --shadow: rgba(31, 41, 51, 0.08);
}

body {
  color: var(--ink);
  background: #f7f1e9;
  letter-spacing: 0;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-pop {
  0% {
    opacity: 0;
    transform: scale(.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes progress-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(255, 90, 0, .18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 90, 0, .10);
  }
}

@keyframes start-button-bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.015);
  }
}

main > section {
  animation: fade-up .45s ease;
}

.app-nav {
  background: #ffffff;
  border-bottom: 4px solid var(--brand);
  box-shadow: 0 6px 0 rgba(31, 47, 55, .08);
}

.home-page .app-nav {
  display: none;
}

.home-page .app-footer {
  display: none;
}

.app-nav .container {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.brand-logo img {
  display: block;
  width: min(240px, 48vw);
  max-height: 48px;
  object-fit: contain;
}

.admin-page .brand-logo img {
  width: min(260px, 56vw);
  max-height: 64px;
}

.brand-logo span {
  display: none;
  color: var(--ink);
  font-weight: 900;
}

.service-site-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-site-link span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.service-site-link img {
  display: block;
  width: min(170px, 34vw);
  max-height: 38px;
  object-fit: contain;
}

.app-footer {
  padding: 28px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.app-footer .container {
  display: flex;
  justify-content: flex-end;
}

.hero-band {
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(255, 90, 0, .12) 0%, rgba(255, 248, 242, .92) 58%, #f7f1e9 100%);
}

.hero-inner {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
  gap: 32px;
  align-items: center;
}

.home-hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 28px;
  padding-block: 32px 48px;
  text-align: center;
}

.home-page .hero-inner {
  min-height: auto;
}

.top-logo-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(1120px, 100%);
  margin-inline: auto;
}

.top-logo-hero > img {
  display: block;
  width: min(1120px, 100%);
  height: auto;
  object-fit: contain;
  translate: -28px 0;
  animation: soft-pop .55s ease both, float-gentle 4.8s ease-in-out .7s infinite;
}

.top-feature-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(1080px, calc(100vw - 32px));
  margin-inline: auto;
  margin-top: clamp(-120px, -7.2vw, -38px);
  animation: fade-up .45s ease .1s both;
}

.top-feature-chips span {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 8px 15px;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(31, 47, 55, .10);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 0 rgba(31, 47, 55, .08);
}

@media (min-width: 1040px) {
  .top-feature-chips {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .top-feature-chips span {
    padding-inline: 10px;
    font-size: .88rem;
  }
}

.top-cta-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 28px;
  width: min(900px, 94vw);
  margin-inline: auto;
  margin-top: 8px;
}

.top-logo-hero .top-start-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: min(360px, 42vw);
  min-height: 76px;
  padding: 20px 36px;
  color: #fff;
  border: 2px solid var(--navy);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ff7a24 0%, var(--brand) 100%);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0;
  box-shadow: 0 7px 0 var(--brand-dark), 0 18px 28px rgba(31, 47, 55, .18);
  animation: none;
}

.top-logo-hero .top-start-button span {
  position: relative;
  z-index: 1;
}

.top-logo-hero .top-start-button:hover {
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 5px 0 var(--brand-dark), 0 14px 22px rgba(31, 47, 55, .2);
  transform: translateY(-2px);
}

.top-logo-hero .top-start-button:active {
  box-shadow: 0 2px 0 var(--brand-dark), 0 8px 14px rgba(31, 47, 55, .18);
  transform: translateY(3px);
}

.service-detail-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: min(300px, 36vw);
  min-height: 80px;
  padding: 12px 28px 14px;
  color: var(--navy);
  background: transparent;
  border: 2px solid rgba(31, 47, 55, .28);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}

.service-detail-link span {
  font-size: 1rem;
  line-height: 1.25;
}

.service-detail-link img {
  display: block;
  width: min(210px, 32vw);
  max-height: 42px;
  object-fit: contain;
  animation: none;
  translate: none;
  transform: none;
}

.service-detail-link::after {
  content: none;
  color: var(--brand);
  flex: 0 0 auto;
}

.service-detail-link:hover {
  color: var(--navy);
  border-color: var(--green-dark);
  background: #fff;
  box-shadow: 0 4px 0 rgba(94, 157, 25, .18);
  transform: translateY(-2px);
}

.result-service-link {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 70px;
  margin: 24px 0 18px;
  padding: 14px 10px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.result-service-link img {
  width: min(210px, 100%);
  max-width: 100%;
  height: auto;
}

.result-service-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.result-inquiry-cta {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 16px 16px 18px;
  background: #fff8f2;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
}

.result-inquiry-lead {
  margin: 0;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 900;
  line-height: 1.5;
}

.result-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  line-height: 1.25;
  text-align: center;
}

.result-actions > .btn-primary,
.result-inquiry-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.result-inquiry-button {
  flex-direction: column;
  gap: 2px;
}

.result-inquiry-button span {
  display: block;
}

.result-actions > .btn-primary {
  grid-column: 1 / -1;
}

@media (min-width: 901px) and (max-width: 1039px) {
  .top-logo-hero > img {
    width: min(100%, 820px);
    translate: 0 0;
  }

  .top-feature-chips {
    width: min(760px, calc(100vw - 48px));
  }

  .top-cta-row {
    display: grid;
    width: min(520px, calc(100vw - 48px));
    gap: 14px;
  }

  .top-logo-hero .top-start-button,
  .service-detail-link {
    width: 100%;
    min-width: 0;
  }
}

.eyebrow {
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-inner h1 {
  max-width: 760px;
  color: var(--navy);
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 12px;
}

.hero-inner h1 span {
  display: block;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.75;
  margin: 0 auto 18px;
}

.hero-copy-block {
  max-width: 760px;
}

.hero-mark {
  justify-self: end;
  width: clamp(170px, 22vw, 280px);
}

.phone-frame {
  width: 100%;
  aspect-ratio: 9 / 15;
  display: grid;
  place-items: center;
  position: relative;
  background: #fff;
  border: clamp(10px, 4vw, 16px) solid #050505;
  border-radius: clamp(28px, 8vw, 42px);
  box-shadow:
    inset 0 0 0 clamp(6px, 1vw, 10px) var(--brand),
    0 clamp(14px, 2vw, 24px) clamp(28px, 4vw, 48px) rgba(0, 0, 0, .12);
}

.phone-frame span {
  position: absolute;
  top: clamp(14px, 2vw, 24px);
  width: clamp(46px, 7vw, 76px);
  height: clamp(8px, 1.2vw, 14px);
  border-radius: 999px;
  background: #050505;
}

.phone-frame strong {
  color: var(--brand);
  font-size: clamp(3rem, 16vw, 5rem);
  line-height: 1;
}

.phone-frame small {
  position: absolute;
  bottom: clamp(24px, 4vw, 44px);
  color: #111;
  font-weight: 900;
}

.hero-visual {
  width: min(520px, 92vw);
  margin-inline: auto;
  padding: 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(31, 47, 55, .10);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.feature-illo {
  display: block;
  width: min(170px, 100%);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 14px 18px rgba(34, 28, 24, 0.08));
}

.home-feature-grid {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-feature-card {
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 142px;
  padding: 14px;
  background: #fff;
  border: 3px solid rgba(31, 47, 55, .12);
  border-radius: 8px;
  box-shadow: 0 8px 0 rgba(31, 47, 55, .12);
  animation: fade-up .45s ease both;
}

.home-feature-card:nth-child(2) {
  animation-delay: .08s;
}

.home-feature-card:nth-child(3) {
  animation-delay: .16s;
}

.home-feature-card strong {
  font-size: .95rem;
  font-weight: 900;
}



.summary-panel,
.form-section,
.completion {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 0 rgba(31, 47, 55, .08);
}

.estimate-total,
.result-total {
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.result-side .estimate-total {
  margin: 4px 0 22px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 900;
  white-space: normal;
  overflow-wrap: anywhere;
}

.result-side .estimate-total .tax-note {
  display: block;
  margin-top: 4px;
  margin-left: 0;
  vertical-align: baseline;
}

.result-side,
.result-side > * {
  min-width: 0;
}

.tax-note {
  display: inline-block;
  margin-left: .28em;
  font-size: .46em;
  font-weight: 850;
  line-height: 1;
  vertical-align: .18em;
}

.step-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
}

.step-nav {
  align-self: start;
  position: sticky;
  top: 80px;
  display: grid;
  gap: 8px;
}

.step-nav span {
  padding: 10px 12px;
  border-left: 4px solid var(--brand);
  background: var(--paper);
  font-weight: 700;
}

.step-main {
  display: grid;
  gap: 20px;
}

.form-section h2,
.page-heading h1,
.admin-head h1,
.wizard-head h1 {
  font-weight: 800;
  margin-bottom: 12px;
}

.wizard-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.wizard-title-row h1 {
  margin-bottom: 0;
}

.wizard-title-row + p {
  margin-top: 12px;
}

.form-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.form-section-head h2 {
  margin: 0 0 4px;
}

.form-section-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.section-step {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: #10230b;
  background: var(--green);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 4px 0 var(--green-dark);
}

.wizard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.wizard-head p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
}

.wizard-form {
  display: grid;
  gap: 16px;
}

.custom-estimate-form {
  gap: 18px;
  padding-bottom: 96px;
}

.selected-estimate-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.selected-estimate-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 0 rgba(31, 47, 55, .06);
}

.selected-estimate-card img {
  display: block;
  width: 100%;
  max-width: 116px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
}

.selected-estimate-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.selected-estimate-card span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.selected-estimate-card strong {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.choice-grid,
.feature-grid,
.metric-grid {
  display: grid;
  gap: 12px;
}

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

.device-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.choice-card,
.feature-row,
.metric-grid > div {
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(31, 47, 55, .06);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease;
}

.choice-card:hover,
.feature-row:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 0 rgba(31, 47, 55, .10);
  transform: translateY(-2px);
}

.choice-card {
  display: grid;
  gap: 7px;
}

.package-card {
  grid-template-rows: auto auto auto auto auto 1fr auto;
  align-items: start;
}

.custom-screen-card {
  grid-template-columns: minmax(220px, 360px) minmax(280px, 360px);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px;
  cursor: default;
}

.custom-screen-card:hover {
  border-color: var(--line);
  box-shadow: 0 6px 0 rgba(31, 47, 55, .06);
  transform: none;
}

.custom-screen-head {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.custom-screen-card .choice-title,
.custom-screen-card .choice-price {
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.28;
}

.device-choice-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}

.device-choice-media {
  display: grid;
  place-items: center;
  min-width: 0;
}

.choice-visual-frame {
  display: grid;
  place-items: center;
  width: min(230px, 100%);
  aspect-ratio: 1 / 1;
  justify-self: center;
  overflow: hidden;
  background: var(--soft);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.device-choice-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.device-choice-copy .choice-title {
  font-size: 1.28rem;
  line-height: 1.2;
}

.device-choice-copy .choice-price {
  font-size: 1.08rem;
  line-height: 1.2;
}

.device-choice-visual {
  display: block;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  justify-self: center;
  object-fit: contain;
  border-radius: 8px;
}

.package-choice-visual {
  display: block;
  width: 100%;
  max-width: 230px;
  aspect-ratio: 1 / 1;
  justify-self: center;
  object-fit: contain;
  border-radius: 8px;
}

.choice-card input {
  inline-size: 18px;
  block-size: 18px;
}

.choice-card:has(input:checked),
.feature-row:has(input:checked) {
  border-color: var(--navy);
  background: #f3ffd9;
  box-shadow: 0 6px 0 var(--green-dark);
  transform: translateY(-2px);
}

.choice-title {
  font-size: 1.03rem;
  font-weight: 800;
}

.package-card .choice-title {
  color: var(--ink);
  font-size: 1.34rem;
  font-weight: 950;
  line-height: 1.16;
}

.choice-price {
  color: var(--brand-dark);
  font-weight: 800;
}

.parts-condition-note,
.screen-parts-limit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.45;
}

.parts-condition-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #fff8f2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.parts-definition-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 9px;
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.2;
  background: #ffffff;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.parts-definition-button:hover {
  color: var(--ink);
  background: #f3ffd9;
}

.result-parts-definition-button {
  flex: 0 0 auto;
  margin-left: auto;
}

.parts-modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(31, 47, 55, .22);
}

.parts-definition-copy {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.parts-definition-copy p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.7;
}

.parts-definition-image {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
}

.package-card .choice-price {
  min-height: 2.5em;
}

.package-card small {
  min-height: 3.3em;
  color: var(--muted);
}

.choice-detail,
.package-detail {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.package-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.choice-detail strong,
.package-detail strong {
  font-size: .88rem;
  font-weight: 900;
}

.package-feature-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 3px 10px;
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.2;
  background: #ffffff;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.package-feature-button:hover,
.package-feature-button:focus-visible {
  color: var(--ink);
  background: #f3ffd9;
}

.choice-detail ul,
.package-detail ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choice-detail li,
.package-detail li {
  position: relative;
  padding-left: 16px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.38;
}

.choice-detail li::before,
.package-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--green);
  border: 1px solid var(--green-dark);
  border-radius: 50%;
}

.package-detail li.package-detail-section {
  margin-top: 4px;
  padding-left: 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 900;
}

.package-detail li.package-detail-section::before {
  display: none;
}

.choice-example,
.package-example {
  align-self: end;
  min-height: 64px;
  margin: 2px 0 0;
  padding: 8px 10px;
  color: var(--navy);
  background: #fff8f2;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  font-size: .84rem;
  line-height: 1.42;
}

.package-features-modal {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(31, 47, 55, .22);
}

.package-feature-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-package-feature-table {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 5px 0 rgba(31, 47, 55, .07);
}

.package-feature-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, .8fr);
  min-height: 48px;
  border-top: 1px solid var(--line);
}

.package-feature-row:first-child {
  border-top: 0;
}

.package-feature-row > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.package-feature-row > div + div {
  border-left: 1px solid var(--line);
}

.package-feature-row-head > div {
  color: var(--navy);
  background: #f3ffd9;
  font-size: .9rem;
  font-weight: 900;
}

.package-feature-section {
  padding: 8px 12px;
  color: var(--brand-dark);
  font-size: .88rem;
  font-weight: 900;
  background: #fff8f2;
  border-top: 1px solid var(--line);
}

.package-feature-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

.package-feature-chip.is-create {
  color: #135a2a;
  background: #e8f7ec;
  border-color: #87c99a;
}

.package-feature-chip.is-search {
  color: #0f4f78;
  background: #e8f3fb;
  border-color: #8bbfe2;
}

.package-feature-chip.is-edit {
  color: #6b4a00;
  background: #fff4d6;
  border-color: #e4bd57;
}

.package-feature-chip.is-delete {
  color: #8a1f1f;
  background: #fdecec;
  border-color: #e7a1a1;
}

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

.custom-feature-block {
  display: grid;
  gap: 12px;
}

.custom-feature-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.28rem;
  font-weight: 900;
}

.custom-feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feature-guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 12px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 900;
}

.feature-guide-button:hover {
  color: var(--ink);
  background: #f3ffd9;
}

.custom-feature-block .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-category-list {
  display: grid;
  gap: 18px;
}

.feature-category {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px 12px 12px;
  border: 1px solid #bfd99a;
  border-radius: 8px;
  background: #f3ffd9;
}

.feature-category h3 {
  position: absolute;
  top: 0;
  left: 12px;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  background: #f3ffd9;
}

.feature-guide-modal {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(31, 47, 55, .22);
}

.feature-guide-lead {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 900;
  line-height: 1.7;
}

.feature-guide-steps {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 1.4rem;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.65;
}

.feature-guide-section {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.feature-guide-section h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 950;
}

.feature-guide-table {
  display: grid;
  overflow: hidden;
  width: min(620px, calc(100% - 22px));
  margin-left: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-guide-table > div {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.feature-guide-table.is-compact > div {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.feature-guide-table strong,
.feature-guide-table span {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.45;
}

.feature-guide-table strong {
  color: var(--navy);
  background: #f3ffd9;
  font-weight: 950;
}

.feature-guide-table span + span,
.feature-guide-table strong + strong {
  border-left: 1px solid var(--line);
}

.feature-guide-table > div:last-child span {
  border-bottom: 0;
}

.feature-guide-tag {
  display: inline-flex;
  margin: 1px 8px 1px 0;
  color: var(--navy);
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.feature-guide-tag.is-login {
  color: #4b8f19;
}

.feature-guide-tag.is-create {
  color: #0070c0;
}

.feature-guide-tag.is-edit {
  color: #00a651;
}

.feature-guide-tag.is-search {
  color: #d98a00;
}

.feature-guide-tag.is-delete {
  color: #e14b00;
}

.feature-guide-arrow {
  width: 0;
  height: 0;
  margin: 14px auto 2px;
  border-left: 46px solid transparent;
  border-right: 46px solid transparent;
  border-top: 14px solid #cfe5bf;
}

.feature-guide-input-example {
  display: grid;
  grid-template-columns: 26px 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: min(420px, calc(100% - 22px));
  margin-left: 22px;
  padding: 14px;
  background: #f3ffd9;
  border: 2px solid #bfd99a;
  border-radius: 8px;
  box-shadow: 0 5px 0 var(--green-dark);
}

.feature-guide-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  background: #0d6efd;
  border-radius: 5px;
  font-size: .85rem;
  font-weight: 950;
  outline: 2px dashed #ff3b30;
  outline-offset: 4px;
}

.feature-guide-plus {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: #fff1d7;
  border-radius: 8px;
  font-size: 1.45rem;
  font-weight: 950;
}

.feature-guide-input-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.feature-guide-input-copy > strong {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 950;
}

.feature-guide-input-copy small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.feature-guide-input-copy .feature-detail-button {
  justify-self: start;
}

.feature-guide-price {
  color: var(--brand) !important;
}

.feature-guide-quantity {
  align-self: end;
  display: grid;
  grid-template-columns: auto 56px;
  gap: 8px;
  align-items: center;
  outline: 2px dashed #ff3b30;
  outline-offset: 5px;
}

.feature-guide-quantity span {
  color: var(--ink);
  font-size: .86rem;
  font-weight: 850;
}

.feature-guide-quantity strong {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
}

.inquiry-form {
  display: grid;
  gap: 18px;
}

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

.privacy-mark-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #f8fbff;
  border: 2px solid #dbe8f5;
  border-radius: 8px;
}

.privacy-mark-box img {
  display: block;
  width: 68px;
  height: auto;
}

.privacy-mark-box a {
  display: block;
  grid-column: 2;
  grid-row: 1;
  width: fit-content;
}

.privacy-mark-box div {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  gap: 3px;
}

.privacy-mark-box strong {
  color: var(--navy);
  font-size: .95rem;
  font-weight: 900;
}

.privacy-mark-box span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.45;
}

.privacy-consent {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.4;
}

.privacy-consent input {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  accent-color: var(--brand);
}

.privacy-consent a {
  color: var(--brand);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.field-block {
  display: grid;
  gap: 8px;
}

.field-block .form-label {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
}

.required {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 4px;
  padding: 1px 7px;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  vertical-align: 1px;
}

.form-control,
.form-select {
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 90, 0, .12);
}

textarea.form-control {
  min-height: 150px;
}

.file-field {
  padding: 14px;
  background: #fff8f2;
  border: 2px dashed rgba(31, 47, 55, .18);
  border-radius: 8px;
}

.inquiry-summary {
  position: static !important;
  top: auto !important;
  margin-bottom: 28px;
  z-index: auto;
}

.inquiry-summary-visuals {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.inquiry-summary-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 5px 0 rgba(31, 47, 55, .06);
}

.inquiry-summary-card img {
  display: block;
  width: 86px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
}

.inquiry-summary-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.inquiry-summary-card span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.inquiry-summary-card strong {
  color: var(--navy);
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.inquiry-service-card {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.inquiry-service-card img {
  display: block;
  width: min(220px, 100%);
  height: auto;
}

.inquiry-service-card h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 950;
  line-height: 1.35;
}

.inquiry-service-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.65;
}

.inquiry-service-points {
  display: grid;
  gap: 8px;
}

.inquiry-service-points span {
  display: block;
  padding: 9px 11px;
  color: var(--navy);
  background: #fff8f2;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 900;
  line-height: 1.45;
}

.inquiry-service-site-link {
  margin: 0;
}

.inquiry-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.inquiry-summary-items {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.inquiry-summary-items strong {
  color: var(--navy);
  font-weight: 900;
}

.inquiry-summary-items span {
  display: block;
  padding: 9px 11px;
  color: var(--ink);
  background: #f3ffd9;
  border: 1px solid rgba(31, 47, 55, .10);
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 800;
}

.inquiry-summary-items .inquiry-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inquiry-summary-items .inquiry-summary-item span {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: inherit;
  overflow-wrap: anywhere;
}

.inquiry-summary-items .inquiry-summary-item strong {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-weight: 900;
}

.result-detail-card {
  display: grid;
  gap: 18px;
}

.print-estimate-sheet {
  display: none;
}

.print-flyer-sheet {
  display: none;
}

.result-item-list {
  display: grid;
  gap: 10px;
}

.result-item-head,
.result-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  text-align: left;
}

.result-item-head {
  padding: 0 12px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.result-item-head.has-price,
.result-item-row.has-price {
  grid-template-columns: minmax(0, 1fr) minmax(160px, .55fr) minmax(110px, auto);
}

.result-item-head.has-price span:last-child,
.result-item-row.has-price > strong {
  text-align: right;
}

.result-item-row {
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f3ffd9;
  border: 2px solid rgba(31, 47, 55, .10);
  border-radius: 8px;
  box-shadow: 0 5px 0 rgba(31, 47, 55, .07);
  font-weight: 900;
}

.result-item-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.result-item-row strong {
  color: var(--brand-dark);
  font-weight: 950;
  white-space: nowrap;
}

.result-item-row .result-item-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.25;
  white-space: normal;
}

.result-item-row small {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.45;
}

.result-item-row .result-item-condition {
  color: var(--ink);
  font-size: .86rem;
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.result-total-row {
  margin-top: 4px;
  background: #fff8f2;
  border-color: rgba(255, 90, 0, .24);
}

.feature-row {
  display: grid;
  grid-template-columns: 24px 34px 1fr auto;
  gap: 10px;
  align-items: start;
}

.custom-feature-block .feature-row {
  grid-template-columns: 22px 42px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 124px;
  gap: 10px;
  padding: 12px;
}

.custom-feature-block .feature-price {
  display: flex;
  grid-column: 2 / 4;
  align-self: end;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.custom-feature-block .feature-price > strong {
  grid-column: 2 / 4;
  justify-self: start;
  align-self: end;
  padding: 5px 10px;
  color: var(--brand-dark);
  background: var(--brand-pale);
  border-radius: 999px;
  font-size: 1.18rem;
  line-height: 1.2;
  white-space: nowrap;
}

.feature-quantity {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.feature-quantity .form-control {
  width: 58px;
  min-height: 34px;
  padding: 4px 6px;
  text-align: right;
  font-size: .92rem;
  font-weight: 900;
}

.feature-quantity .form-control:disabled {
  opacity: .45;
}

.custom-feature-block .feature-point-icon {
  width: 42px;
  height: 42px;
}

.custom-feature-block .feature-name {
  font-size: 1.18rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.custom-feature-block .feature-copy small {
  font-size: .78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.feature-detail-button {
  justify-self: start;
  margin-left: 0;
  min-height: 28px;
  padding: 3px 9px;
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.2;
  background: #ffffff;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.feature-copy .feature-detail-button {
  align-self: start;
}

.custom-feature-block .feature-copy .feature-detail-button {
  margin-top: 4px;
  margin-left: -52px;
}

.feature-detail-button:hover,
.feature-detail-button:focus-visible {
  color: var(--ink);
  background: #f3ffd9;
  outline: none;
}

.feature-detail-popover {
  position: fixed;
  z-index: 1080;
  width: min(320px, calc(100vw - 24px));
  padding: 14px;
  color: var(--ink);
  background: #fff3e8;
  border: 1px solid rgba(255, 90, 0, .22);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(31, 47, 55, .18);
}

.feature-detail-popover[hidden] {
  display: none;
}

.feature-detail-popover h2 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: .98rem;
  font-weight: 950;
  line-height: 1.35;
}

.feature-detail-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.feature-detail-list div {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 90, 0, .18);
}

.feature-detail-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.feature-detail-list dt {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
}

.feature-detail-list dd {
  margin: 0;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.5;
}

.feature-point-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.feature-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.feature-name {
  color: var(--ink);
  font-size: 1rem;
}

.feature-copy small {
  display: flex;
  align-items: start;
  gap: 6px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.help-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.included-work-note,
.license-note,
.custom-estimate-cta {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.included-work-note ul {
  display: grid;
  gap: 5px;
  margin: 2px 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.45;
}

.license-note strong,
.custom-estimate-cta p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.license-note-item {
  display: grid;
  gap: 4px;
}

.license-note-item + .license-note-item {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.license-note span,
.license-note small {
  color: var(--muted);
}

.license-note .click-official-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 42px;
  margin-top: 10px;
  padding: 8px 18px;
  color: var(--green-dark);
  text-decoration: none;
  background: #ffffff;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}

.license-note .click-official-link:hover,
.license-note .click-official-link:focus-visible {
  color: var(--green-dark);
  background: #f3ffd9;
  box-shadow: 0 4px 0 rgba(89, 143, 39, .18);
  transform: translateY(-2px);
}

.custom-estimate-cta {
  gap: 14px;
  margin: 24px 0 0;
  padding: 16px 16px 18px;
  background: #fff8f2;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
}

.custom-estimate-cta p {
  font-size: .95rem;
  font-weight: 900;
  line-height: 1.5;
}

.custom-estimate-cta .btn {
  min-height: 48px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.custom-screens {
  display: none;
  max-width: 240px;
}

.screen-input {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap;
}

.screen-input .form-control {
  flex: 0 0 190px;
  width: 190px;
  min-width: 190px;
  min-height: 58px;
  text-align: right;
  font-size: 1.45rem;
  font-weight: 900;
}

.screen-input span {
  font-weight: 800;
  white-space: nowrap;
}

.custom-screens.is-visible {
  display: block;
}

.result-strip {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  backdrop-filter: blur(8px);
}

.btn-primary {
  --bs-btn-color: #10230b;
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-color: #10230b;
  --bs-btn-hover-bg: #83ce2c;
  --bs-btn-hover-border-color: #83ce2c;
  --bs-btn-active-color: #10230b;
  --bs-btn-active-bg: #7cc427;
  --bs-btn-active-border-color: #7cc427;
}

.btn {
  border-radius: 8px;
  font-weight: 800;
  border-width: 2px;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.btn-primary {
  box-shadow: 0 4px 0 var(--green-dark);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-outline-dark {
  --bs-btn-color: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy);
  --bs-btn-hover-border-color: var(--navy);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.wizard-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 220px;
  width: min(220px, 42vw);
  min-height: 58px;
  box-sizing: border-box;
  padding: 14px 26px;
  font-size: 1.1rem;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.wizard-actions .btn.btn-lg {
  padding: 14px 26px;
  font-size: 1.1rem;
}

.form-inline-error {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--navy);
  background: #fff8f2;
  border: 2px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 6px 0 rgba(255, 90, 0, .18);
  font-weight: 900;
}

.form-inline-error.is-visible {
  display: flex;
  animation: soft-pop .2s ease both;
}

.form-inline-error-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #fff;
  background: var(--brand);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
  box-shadow: 0 3px 0 rgba(31, 47, 55, .18);
}

.form-inline-error-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.form-inline-error-copy strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.form-inline-error-copy span {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

.wizard-form.has-inline-error .choice-grid,
.wizard-form.has-inline-error .feature-grid {
  scroll-margin-top: 120px;
}

.estimate-status {
  margin-bottom: 18px;
  padding: 10px 14px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.05);
}

.app-nav .estimate-status {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.estimate-status-head {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.estimate-status-head span {
  color: var(--ink);
  font-size: .84rem;
  font-weight: 900;
}

.app-nav .estimate-status-head {
  display: none;
}

.progress-trail {
  display: grid;
  grid-template-columns: repeat(var(--step-count, 4), minmax(0, 1fr));
  gap: 0;
  min-width: 0;
}

.progress-step {
  display: grid;
  grid-template-rows: 24px auto;
  justify-items: center;
  gap: 5px;
  min-height: 42px;
  position: relative;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  min-width: 0;
  text-align: center;
}

.app-nav .progress-step {
  grid-template-rows: 34px auto;
  gap: 6px;
  min-height: 52px;
  font-size: .92rem;
}

a.progress-step {
  color: var(--ink);
  text-decoration: none;
}

a.progress-step:hover {
  color: var(--brand-dark);
}

.progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(50% + 12px);
  right: calc(-50% + 12px);
  top: 12px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.app-nav .progress-step:not(:last-child)::after {
  left: calc(50% + 17px);
  right: calc(-50% + 17px);
  top: 17px;
  height: 3px;
}

.progress-step.is-done {
  color: var(--ink);
}

.progress-step.is-done:not(:last-child)::after {
  background: var(--green);
}

.progress-step.is-active {
  color: var(--navy);
}

.progress-step.is-pending {
  color: #8d8d8d;
}

.progress-step.is-active .progress-step-label::before {
  content: "現在";
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-right: 5px;
  padding: 1px 6px;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  vertical-align: 1px;
}

.progress-step-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
  color: var(--muted);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
}

.app-nav .progress-step-number {
  width: 34px;
  height: 34px;
  font-size: .9rem;
}

.progress-step.is-done .progress-step-number {
  color: #10230b;
  background: var(--green);
  border-color: var(--navy);
}

.progress-step.is-active .progress-step-number {
  color: #10230b;
  background: #fff;
  border-color: var(--brand);
  animation: progress-pulse 1.8s ease-in-out infinite;
}

.app-nav .progress-step.is-active .progress-step-number {
  box-shadow: 0 0 0 5px rgba(255, 107, 0, .12);
}

.progress-step.is-pending .progress-step-number {
  color: #8d8d8d;
  background: #f7f4ef;
  border-color: var(--line);
}

.progress-step-label {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.app-nav .progress-step-label {
  font-size: .9rem;
  font-weight: 900;
}

.app-nav .progress-step:not(:last-child)::after {
  background: #d9ded7;
}

.app-nav .progress-step.is-done:not(:last-child)::after {
  background: var(--green);
}

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

.custom-price-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  width: min(1116px, calc(100vw - 24px));
  transform: translateX(-50%);
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 28px minmax(120px, 1fr) 28px minmax(120px, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .97);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 0 rgba(31, 47, 55, .06), 0 -12px 28px rgba(31, 41, 51, .08);
  backdrop-filter: blur(10px);
}

.custom-price-bar div {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.custom-price-bar .price-formula-symbol {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1;
  min-width: 0;
  padding-bottom: 5px;
  text-align: center;
  align-self: end;
}

.custom-price-bar span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
}

.custom-price-bar strong {
  color: var(--brand);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.1;
  white-space: nowrap;
}

.flow-line span {
  min-height: 64px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  position: relative;
  box-shadow: 0 10px 24px rgba(31, 41, 51, .05);
}

.flow-line span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--brand);
  transform: translateY(-50%);
  z-index: 1;
}

@media (max-width: 1400px) {
  .custom-feature-block .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inquiry-layout > [class*="col-lg-"] {
    width: 100%;
  }

  .inquiry-layout .sticky-lg-top {
    position: static !important;
    top: auto !important;
  }
}

.page-heading,
.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.page-heading p,
.admin-head p {
  color: var(--muted);
  margin: 0;
}

.required {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 700;
}

.narrow-page {
  max-width: 520px;
}

.completion {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

.metric-grid > div {
  cursor: default;
  background: var(--paper);
}

.metric-grid span {
  display: block;
  color: var(--muted);
}

.metric-grid strong {
  display: block;
  font-size: 2.25rem;
}

.admin-wide {
  max-width: 1680px;
}

.admin-history-table {
  min-width: 1280px;
}

.history-url-cell {
  max-width: 280px;
  word-break: break-all;
}

.history-step-list {
  display: grid;
  gap: 4px;
  margin: 0;
  min-width: 230px;
}

.history-step-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
}

.history-step-list dt,
.history-step-list dd {
  margin: 0;
}

.history-step-list dt {
  color: var(--muted);
  font-size: .78rem;
}

.history-step-list dd {
  font-weight: 700;
}

.detail-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 18px;
}

.detail-list dt {
  color: var(--muted);
}

.attachment-row {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.attachment-row .btn {
  width: fit-content;
}

.attachment-field {
  display: grid;
  gap: 2px;
}

.attachment-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.attachment-row small {
  color: var(--muted);
  word-break: break-all;
}

.estimate-items-detail {
  min-width: 260px;
}

.estimate-items-detail summary {
  color: var(--brand-dark);
  font-weight: 800;
  cursor: pointer;
}

.estimate-items-detail ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.estimate-items-detail li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  color: var(--muted);
  font-size: .88rem;
}

.estimate-items-detail li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.estimate-items-detail li strong {
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .app-nav .container {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .brand-logo {
    justify-content: center;
  }

  .brand-logo img {
    width: min(220px, 72vw);
  }

  .app-nav .estimate-status {
    width: 100%;
  }

  .app-nav .progress-trail {
    grid-template-columns: repeat(var(--step-count, 3), minmax(0, 1fr));
    gap: 0;
  }

  .app-nav .progress-step {
    grid-template-columns: none;
    grid-template-rows: 30px auto;
    justify-items: center;
    gap: 5px;
    min-height: 48px;
    font-size: .82rem;
    text-align: center;
  }

  .app-nav .progress-step-number {
    width: 30px;
    height: 30px;
    font-size: .82rem;
  }

  .app-nav .progress-step:not(:last-child)::after {
    left: calc(50% + 15px);
    right: calc(-50% + 15px);
    top: 15px;
    width: auto;
    height: 2px;
  }

  .app-footer .container {
    justify-content: center;
  }

  .service-site-link img {
    width: min(190px, 52vw);
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 44px;
  }

  .home-hero {
    min-height: auto;
    padding-block: 26px 38px;
    text-align: center;
  }

  .top-logo-hero {
    gap: 12px;
    translate: 0 0;
  }

  .top-logo-hero > img {
    width: min(96vw, 440px);
    translate: 0 0;
  }

  .top-feature-chips {
    gap: 7px;
    width: min(520px, calc(100vw - 48px));
  }

  .top-feature-chips span {
    height: 30px;
    padding: 6px 9px;
    font-size: .78rem;
    max-width: 100%;
  }

  .top-cta-row {
    display: grid;
    width: min(100%, 290px);
    gap: 12px;
    margin-top: 8px;
  }

  .top-logo-hero .top-start-button {
    width: 100%;
    min-width: 0;
    min-height: 68px;
    padding: 15px 18px;
    font-size: clamp(1.08rem, 4.8vw, 1.22rem);
  }

  .service-detail-link {
    width: min(100%, 290px);
    min-height: 66px;
    gap: 5px;
    padding-inline: 10px;
  }

  .service-detail-link span {
    font-size: .74rem;
    white-space: nowrap;
  }

  .service-detail-link img {
    width: min(180px, 50vw);
    max-height: 38px;
  }

  .result-service-link {
    width: 100%;
    min-height: 78px;
  }

  .hero-inner h1 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .hero-copy {
    font-size: .96rem;
  }

  .hero-visual {
    width: min(360px, 94vw);
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
    width: min(360px, 100%);
  }

  .home-feature-card {
    min-height: 128px;
  }

  .hero-mark {
    justify-self: center;
    width: clamp(140px, 52vw, 220px);
  }

  .step-layout,
  .choice-grid,
  .choice-grid.three,
  .feature-grid,
  .metric-grid,
  .flow-line {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 24px 34px 1fr;
  }

  .feature-row > strong:last-child {
    grid-column: 3;
  }

  .custom-screen-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .selected-estimate-visuals {
    grid-template-columns: 1fr;
  }

  .selected-estimate-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .selected-estimate-card img {
    max-width: 86px;
  }

  .custom-estimate-form {
    padding-bottom: 158px;
  }

  .custom-feature-block .feature-grid {
    grid-template-columns: 1fr;
  }

  .custom-feature-block .feature-row {
    grid-template-columns: 24px 42px 1fr;
    min-height: 0;
  }

  .custom-feature-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-guide-table > div,
  .feature-guide-table.is-compact > div {
    grid-template-columns: 1fr;
  }

  .feature-guide-table,
  .feature-guide-input-example {
    width: 100%;
    margin-left: 0;
  }

  .feature-guide-table span + span,
  .feature-guide-table strong + strong {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .feature-guide-input-example {
    grid-template-columns: 26px 42px minmax(0, 1fr);
  }

  .feature-guide-quantity {
    grid-column: 3;
    justify-self: start;
    margin-top: 8px;
  }

  .custom-feature-block .feature-price {
    grid-column: 2 / 4;
  }

  .flow-line span:not(:last-child)::after {
    right: auto;
    top: auto;
    bottom: -12px;
    width: 2px;
    height: 12px;
  }

  .step-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-strip,
  .estimate-status,
  .page-heading,
  .admin-head,
  .wizard-head,
  .wizard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .wizard-actions .btn-primary {
    order: 1;
  }

  .wizard-actions .btn-outline-dark {
    order: 2;
  }

  .wizard-actions .btn {
    flex: 0 0 auto;
    width: 100%;
    min-height: 58px;
    padding: 14px 20px;
  }

  .custom-price-bar {
    align-items: center;
    width: calc(100vw - 12px);
    grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr);
    gap: 3px;
    padding: 10px 6px;
  }

  .custom-price-bar div {
    min-width: 0;
  }

  .custom-price-bar .price-formula-symbol {
    display: block;
    min-width: 14px;
    padding-bottom: 3px;
    font-size: .95rem;
  }

  .custom-price-bar span {
    font-size: clamp(.58rem, 2.4vw, .68rem);
    white-space: nowrap;
  }

  .custom-price-bar strong {
    font-size: clamp(.86rem, 3.5vw, 1rem);
    white-space: nowrap;
  }

  .custom-price-bar div:last-child strong {
    font-size: clamp(1rem, 3.9vw, 1.14rem);
    font-weight: 950;
  }

  .estimate-status-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .progress-trail {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .progress-step {
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto;
    justify-items: start;
    gap: 10px;
    min-height: 38px;
    font-size: .86rem;
    text-align: left;
  }

  .progress-step:not(:last-child)::after {
    left: 14px;
    right: auto;
    top: 30px;
    width: 2px;
    height: 18px;
    transform: none;
  }

  .progress-step-number {
    width: 30px;
    height: 30px;
    font-size: .8rem;
  }

  .choice-card,
  .feature-row,
  .metric-grid > div {
    padding: 16px;
  }

  .form-section-head {
    align-items: flex-start;
  }

  .result-item-head.has-price {
    display: none;
  }

  .result-item-row.has-price {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .result-item-row.has-price > strong {
    text-align: left;
  }

  .inquiry-field-grid {
    grid-template-columns: 1fr;
  }

  .privacy-mark-box {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 12px;
  }

  .privacy-mark-box img {
    width: 56px;
  }

  .device-choice-visual,
  .package-choice-visual {
    max-width: 240px;
  }

  .device-choice-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .device-choice-visual {
    max-width: min(320px, 100%);
  }

  .device-choice-copy .choice-title {
    font-size: 1.32rem;
  }

  .device-choice-copy .choice-price {
    font-size: 1.08rem;
  }

  .choice-detail li,
  .package-detail li {
    font-size: .9rem;
    line-height: 1.45;
  }

  .package-feature-row {
    grid-template-columns: 1fr;
  }

  .package-feature-row > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .package-feature-row-head {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #fff !important;
    color: #111 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .app-nav,
  .no-print,
  .page-heading,
  .result-layout,
  .result-service-link,
  .custom-estimate-cta {
    display: none !important;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .py-4,
  .py-lg-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .print-estimate-sheet {
    display: block !important;
    width: 100%;
    max-height: 273mm;
    font-size: 10.5pt;
    line-height: 1.35;
  }

  .print-flyer-sheet {
    display: block !important;
    width: 100%;
    min-height: 273mm;
    box-sizing: border-box;
    padding-top: 2mm;
    page-break-before: always;
    break-before: page;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .print-estimate-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10mm;
    align-items: end;
    padding-bottom: 5mm;
    border-bottom: 2px solid #1f2f37;
  }

  .print-estimate-logo {
    display: block;
    width: 46mm;
    height: auto;
    margin-bottom: 9mm;
  }

  .print-estimate-head h1 {
    margin: 0;
    color: #f05a00;
    font-size: 22pt;
    font-weight: 900;
  }

  .print-estimate-total {
    min-width: 42mm;
    padding: 4mm 5mm;
    text-align: right;
    border: 1px solid #d8d1c8;
    border-radius: 2mm;
  }

  .print-estimate-total span,
  .print-estimate-meta span {
    display: block;
    color: #5f6b70;
    font-size: 8.5pt;
    font-weight: 800;
  }

  .print-estimate-total strong {
    color: #f05a00;
    font-size: 22pt;
    line-height: 1.1;
  }

  .print-estimate-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5mm;
    margin-top: 6mm;
  }

  .print-estimate-meta div {
    padding: 3.5mm 4mm;
    border: 1px solid #d8d1c8;
    border-radius: 2mm;
  }

  .print-estimate-meta strong {
    display: block;
    margin-top: 1mm;
    color: #1f2f37;
    font-size: 11pt;
  }

  .print-estimate-block {
    margin-top: 7mm;
  }

  .print-estimate-block h2 {
    margin: 0 0 3mm;
    color: #10230b;
    font-size: 13pt;
    font-weight: 900;
  }

  .print-estimate-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .print-estimate-table th,
  .print-estimate-table td {
    padding: 2.7mm 3mm;
    border: 1px solid #d8d1c8;
    vertical-align: top;
  }

  .print-estimate-table th {
    color: #1f2f37;
    background: #f7f1e9 !important;
    font-size: 9pt;
    text-align: left;
  }

  .print-estimate-table.has-price th:last-child,
  .print-estimate-table.has-price td:last-child {
    text-align: right;
  }

  .print-estimate-table td {
    color: #111;
    font-weight: 800;
    overflow-wrap: anywhere;
  }

  .print-estimate-table td strong {
    display: block;
    color: #111;
    font-size: 10pt;
    font-weight: 900;
  }

  .print-estimate-table td small {
    display: block;
    margin-top: 1mm;
    color: #4b5559;
    font-size: 8.5pt;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
  }

  .print-estimate-note {
    display: grid;
    gap: 3mm;
    margin-top: 7mm;
    padding: 4mm;
    border: 1px solid #d8d1c8;
    border-radius: 2mm;
  }

  .print-estimate-note-item {
    display: grid;
    gap: 1mm;
  }

  .print-estimate-note-item + .print-estimate-note-item {
    padding-top: 3mm;
    border-top: 0.4pt dashed #d8d1c8;
  }

  .print-estimate-note strong {
    color: #1f2f37;
    font-size: 10pt;
  }

  .print-estimate-note span,
  .print-estimate-note small {
    color: #4b5559;
    font-size: 9pt;
  }

  .print-flyer-hero {
    padding: 8mm 8mm 9mm;
    background: #fff7ef !important;
    border: 2px solid #1f2f37;
    border-radius: 3mm;
    text-align: center;
  }

  .print-flyer-hero img {
    display: block;
    width: 112mm;
    max-width: 100%;
    height: auto;
    margin: 0 auto 3mm;
  }

  .print-flyer-hero p {
    margin: 0;
    color: #1f2f37;
    font-size: 15pt;
    font-weight: 900;
    line-height: 1.45;
  }

  .print-flyer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4mm;
    margin-top: 7mm;
  }

  .print-flyer-grid div {
    min-height: 40mm;
    padding: 5mm;
    background: #ffffff !important;
    border: 1px solid #d8d1c8;
    border-radius: 3mm;
  }

  .print-flyer-grid strong {
    display: block;
    margin-bottom: 3mm;
    color: #f05a00;
    font-size: 13pt;
    font-weight: 900;
    line-height: 1.25;
  }

  .print-flyer-grid span {
    color: #24343c;
    font-size: 10pt;
    font-weight: 800;
  }

  .print-flyer-flow {
    margin-top: 8mm;
    padding: 6mm 7mm;
    border: 1px solid #d8d1c8;
    border-left: 4mm solid #94e239;
    border-radius: 3mm;
  }

  .print-flyer-flow h2 {
    margin: 0 0 4mm;
    color: #1f2f37;
    font-size: 15pt;
    font-weight: 900;
  }

  .print-flyer-flow ul {
    display: grid;
    gap: 3mm;
    margin: 0;
    padding-left: 5mm;
  }

  .print-flyer-flow li {
    color: #111;
    font-size: 11pt;
    font-weight: 800;
  }

  .print-flyer-cta {
    display: grid;
    gap: 2mm;
    margin-top: 8mm;
    padding: 6mm 7mm;
    color: #10230b;
    background: #f3ffd9 !important;
    border: 2px solid #5e9d19;
    border-radius: 3mm;
    text-align: center;
  }

  .print-flyer-cta strong {
    font-size: 15pt;
    font-weight: 900;
  }

  .print-flyer-cta span {
    color: #d94600;
    font-size: 13pt;
    font-weight: 900;
  }
}
