:root {
  --request-orange: #f05a24;
  --request-black: #0b0c0b;
  --request-paper: #f4f3ee;
  --request-line: #b8b7b0;
}
.request-page {
  background: var(--request-paper);
  color: var(--request-black);
}
.request-page header nav a[aria-current="page"] {
  color: var(--request-orange);
}
.request-page main {
  overflow: visible;
}
.request-hero {
  padding: 100px max(24px, 7vw) 85px;
  background: var(--request-black);
  color: #fff;
  border-bottom: 7px solid var(--request-orange);
}
.request-hero .label {
  color: var(--request-orange);
}
.request-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 7vw;
  align-items: end;
  margin-top: 34px;
}
.request-hero h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.06em;
}
.request-hero h1 em {
  color: var(--request-orange);
  font-style: normal;
}
.request-hero-grid > div p {
  font-size: 16px;
  line-height: 2;
}
.request-code {
  margin-top: 25px;
  font-size: 11px !important;
  letter-spacing: 0.14em;
  color: #a9aaa5;
}
.request-form {
  border: 0;
  padding: 0;
}
.request-form input,
.request-form textarea {
  font-family: var(--sans);
}
.service-select {
  padding: 85px max(24px, 7vw);
  border-bottom: 1px solid var(--request-line);
}
.step-heading {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 38px;
}
.step-heading > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--request-black);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 4px solid var(--request-orange);
}
.step-heading .label {
  margin: 0 0 5px;
}
.step-heading h2 {
  margin: 0;
  font-size: clamp(32px, 3.3vw, 48px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.035em;
}
.service-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--request-black);
  border-left: 1px solid var(--request-black);
}
.service-tabs label {
  position: relative;
  margin: 0;
}
.service-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.service-tabs span {
  display: flex;
  min-height: 118px;
  padding: 24px;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--request-black);
  border-bottom: 1px solid var(--request-black);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.service-tabs b {
  font-size: 20px;
}
.service-tabs small {
  font-size: 10px;
  letter-spacing: 0.12em;
}
.service-tabs input:checked + span {
  background: var(--request-black);
  color: #fff;
  box-shadow: inset 0 -6px var(--request-orange);
}
.service-tabs input:focus-visible + span {
  outline: 3px solid var(--request-orange);
  outline-offset: -5px;
}
.estimator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 6vw;
  padding: 90px max(24px, 7vw) 120px;
  align-items: start;
}
.config-column {
  min-width: 0;
}
.service-panel {
  animation: panel-in 0.35s ease both;
}
.service-panel[hidden] {
  display: none;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.option-group {
  margin: 0 0 54px;
  padding: 0;
  border: 0;
}
.option-group legend {
  width: 100%;
  padding: 0 0 14px;
  border-bottom: 3px solid var(--request-black);
  font-size: 18px;
  font-weight: 800;
}
.choice-card,
.check-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin: 0;
  padding: 20px 4px;
  border-bottom: 1px solid var(--request-line);
  cursor: pointer;
  position: relative;
}
.choice-card input,
.check-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-mark {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border: 2px solid var(--request-black);
  border-radius: 50%;
  position: relative;
}
.choice-card input:checked ~ .choice-mark:after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--request-orange);
  border-radius: 50%;
}
.choice-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.choice-copy b,
.check-card b {
  font-size: 16px;
}
.choice-copy small,
.check-card small {
  display: block;
  max-width: 580px;
  font-size: 13px;
  line-height: 1.8;
  color: #595b57;
}
.choice-card > strong,
.check-card > strong {
  padding-top: 1px;
  font-size: 15px;
  white-space: nowrap;
}
.choice-card:has(input:checked),
.check-card:has(input:checked) {
  background: #fff9f5;
}
.choice-card:focus-within,
.check-card:focus-within {
  outline: 3px solid var(--request-orange);
  outline-offset: -3px;
}
.check-card {
  grid-template-columns: 28px minmax(0, 1fr) auto;
}
.check-card:before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 2px solid var(--request-black);
}
.check-card:has(input:checked):before {
  background: var(--request-orange);
  box-shadow: inset 0 0 0 3px var(--request-paper);
}
.field-note {
  margin: 14px 4px 0;
  font-size: 12px;
  line-height: 1.8;
  color: #666861;
}
.conditional-field {
  margin: 16px 0;
  padding: 20px;
  background: #e8e7e0;
  border-left: 5px solid var(--request-orange);
  animation: panel-in 0.25s ease both;
}
.conditional-field[hidden] {
  display: none;
}
.conditional-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.conditional-field label small {
  font-size: 11px;
  font-weight: 500;
  color: #65665f;
}
.number-control {
  display: grid;
  grid-template-columns: 46px 72px 46px;
  width: max-content;
  border: 1px solid var(--request-black);
}
.number-control button {
  border: 0;
  background: var(--request-black);
  color: #fff;
  font-size: 21px;
  cursor: pointer;
}
.number-control input {
  height: 44px;
  padding: 0;
  border: 0;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}
.number-control input::-webkit-inner-spin-button {
  appearance: none;
}
.conditional-field .number-control {
  margin-top: 14px;
}
.conditional-field > input {
  margin-top: 12px;
}
.base-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 38px;
  padding: 22px;
  background: var(--request-black);
  color: #fff;
  border-left: 7px solid var(--request-orange);
}
.base-price span {
  font-size: 16px;
}
.base-price strong {
  font-size: 24px;
}
.quantity-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--request-line);
}
.quantity-row b {
  font-size: 16px;
}
.quantity-row small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}
.design-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--request-black);
  border-left: 1px solid var(--request-black);
}
.design-grid legend {
  grid-column: 1/-1;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--request-black);
}
.design-choice {
  position: relative;
  margin: 0;
}
.design-choice input {
  position: absolute;
  opacity: 0;
}
.design-choice span {
  display: flex;
  min-height: 92px;
  padding: 20px;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--request-black);
  border-bottom: 1px solid var(--request-black);
  cursor: pointer;
}
.design-choice b {
  font-size: 16px;
}
.design-choice strong {
  font-size: 14px;
}
.design-choice input:checked + span {
  background: var(--request-black);
  color: #fff;
  box-shadow: inset 5px 0 var(--request-orange);
}
.design-choice input:focus-visible + span {
  outline: 3px solid var(--request-orange);
  outline-offset: -5px;
}
.design-other {
  grid-column: 1/-1;
  margin: 18px;
}
.estimate {
  position: sticky;
  top: 100px;
  padding: 26px;
  background: var(--request-black);
  color: #fff;
  border-top: 6px solid var(--request-orange);
}
.estimate .label {
  margin: 0;
  color: var(--request-orange);
}
.estimate-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding: 12px 0 22px;
  border-bottom: 1px solid #ffffff30;
}
.estimate-head h2 {
  margin: 0;
  font-size: 26px;
}
.estimate-head span {
  font-size: 11px;
  color: #c9c9c3;
}
.estimate-lines {
  padding: 18px 0;
}
.estimate-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  font-size: 12px;
  color: #cbcbc6;
}
.estimate-line span:last-child {
  text-align: right;
  color: #fff;
}
.estimate dl {
  margin: 0;
  border-top: 1px solid #ffffff30;
}
.estimate dl div {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #ffffff20;
  font-size: 13px;
}
.estimate dl dd {
  margin: 0;
  font-weight: 700;
}
.estimate-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 24px 0;
}
.estimate-total span {
  font-size: 13px;
}
.estimate-total strong {
  font-size: 30px;
  color: var(--request-orange);
}
.estimate-caution {
  margin: 0;
  padding: 15px;
  background: #ffffff0d;
  font-size: 11px;
  line-height: 1.9;
  color: #c2c2bd;
}
.customer-section {
  margin-top: 90px;
  padding-top: 70px;
  border-top: 7px solid var(--request-black);
}
.customer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.customer-grid label {
  display: block;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.customer-grid label b {
  color: var(--request-orange);
}
.customer-grid label em {
  font-size: 11px;
  font-style: normal;
  color: #696a65;
}
.customer-grid input,
.customer-grid textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px 15px;
  border: 1px solid var(--request-line);
  border-radius: 0;
  background: #fff;
  color: var(--request-black);
  font-size: 15px;
  line-height: 1.5;
}
.customer-grid input {
  min-height: 50px;
}
.customer-grid textarea {
  min-height: 140px;
  resize: vertical;
}
.customer-grid .full {
  grid-column: 1/-1;
}
.payment-note {
  margin: 42px 0 30px;
  padding: 25px;
  border: 1px solid var(--request-black);
  border-left: 7px solid var(--request-orange);
}
.payment-note h3 {
  margin: 0 0 13px;
  font-size: 18px;
}
.payment-note ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
}
.agreement {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 25px;
  font-size: 13px;
  cursor: pointer;
}
.agreement input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--request-orange);
}
.request-submit {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border: 0;
  background: var(--request-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.request-submit:hover {
  background: var(--request-black);
  transform: translateY(-2px);
}
.request-submit b {
  font-size: 22px;
}
.request-page :where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--request-orange);
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .estimator-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 35px;
  }
  .request-hero-grid {
    grid-template-columns: 1fr 280px;
  }
}
@media (max-width: 820px) {
  .request-hero {
    padding: 75px 24px 65px;
  }
  .request-hero-grid {
    grid-template-columns: 1fr;
  }
  .request-hero-grid > div {
    max-width: 550px;
  }
  .service-select {
    padding: 65px 20px;
  }
  .service-tabs {
    grid-template-columns: 1fr;
  }
  .service-tabs span {
    min-height: 82px;
    padding: 18px;
  }
  .estimator-layout {
    display: flex;
    padding: 70px 20px 90px;
    flex-direction: column;
  }
  .config-column {
    width: 100%;
  }
  .estimate {
    position: static;
    order: 2;
    width: 100%;
    margin-top: 55px;
  }
  .customer-section {
    margin-top: 70px;
  }
  .customer-grid {
    grid-template-columns: 1fr;
  }
  .customer-grid .full {
    grid-column: 1;
  }
  .design-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .request-hero h1 {
    font-size: 9.4vw;
  }
  .request-hero h1 em {
    display: inline;
    white-space: nowrap;
  }
  .step-heading {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }
  .step-heading > span {
    width: 36px;
    height: 36px;
  }
  .step-heading h2 {
    font-size: 30px;
  }
  .choice-card,
  .check-card {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 2px;
  }
  .choice-card > strong,
  .check-card > strong {
    grid-column: 2;
    padding-top: 3px;
  }
  .quantity-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .design-grid {
    grid-template-columns: 1fr;
  }
  .design-grid legend,
  .design-other {
    grid-column: 1;
  }
  .customer-section {
    padding-top: 55px;
  }
  .estimate-total strong {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-panel,
  .conditional-field {
    animation: none;
  }
  .request-submit,
  .service-tabs span,
  .capture img {
    transition: none;
  }
}

/* =========================================================
   Portfolio design alignment
   Keeps the estimator structure and behavior unchanged.
   ========================================================= */
.request-page {
  --request-orange: #ff5a1f;
  --request-black: #111;
  --request-paper: #f4f2ed;
  --request-line: rgba(17, 17, 17, 0.24);
  background: var(--request-paper);
}
.request-page header {
  border-bottom-color: rgba(244, 242, 237, 0.18);
}
.request-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(90px, 12vw, 165px) var(--pad) clamp(70px, 9vw, 120px);
  border-bottom: 1px solid var(--request-line);
  background: var(--request-paper);
  color: var(--request-black);
}
.request-hero::before {
  content: none;
}
.request-hero::after {
  content: "ESTIMATE / CREATIVE DIRECTION";
  position: absolute;
  right: var(--pad);
  bottom: 20px;
  z-index: -1;
  color: rgba(17, 17, 17, 0.26);
  font:
    600 10px "Barlow Condensed",
    sans-serif;
  letter-spacing: 0.2em;
}
.request-hero-grid {
  display: block;
  margin-top: 28px;
}
.request-hero h1 {
  font:
    600 clamp(42px, 6.2vw, 94px) / 0.9 "Barlow Condensed",
    "Noto Sans JP",
    sans-serif;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.request-hero h1 em {
  display: inline;
  color: var(--request-orange);
}
.request-hero-grid > div {
  width: min(100%, 370px);
  margin: 48px 0 0 auto;
  padding-left: 22px;
  border-left: 2px solid var(--request-orange);
}
.request-hero-grid > div p {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.9;
}
.request-code {
  color: #777 !important;
  font-family: "Barlow Condensed", sans-serif;
}
.service-select {
  padding: clamp(75px, 10vw, 130px) var(--pad);
  background: var(--request-paper);
}
.step-heading {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
}
.step-heading > span {
  width: 48px;
  height: 48px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  border-bottom-width: 5px;
}
.step-heading h2 {
  font:
    700 clamp(36px, 4.5vw, 68px) / 0.95 "Barlow Condensed",
    "Noto Sans JP",
    sans-serif;
  letter-spacing: -0.045em;
}
.service-tabs {
  box-shadow: 12px 14px 0 rgba(255, 90, 31, 0.14);
}
.service-tabs span {
  background: var(--request-paper);
}
.estimator-layout {
  position: relative;
  padding: clamp(80px, 10vw, 135px) var(--pad);
  background: var(--request-paper);
}
.service-panel,
.customer-section {
  padding: clamp(28px, 4vw, 55px);
  border: 1px solid var(--request-line);
  background: var(--request-paper);
  box-shadow: 12px 14px 0 rgba(17, 17, 17, 0.07);
}
.customer-section {
  margin-top: 70px;
  border-top: 7px solid var(--request-black);
}
.option-group legend {
  font-family: "Barlow Condensed", "Noto Sans JP", sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.choice-card,
.check-card,
.quantity-row {
  transition:
    transform 0.22s ease,
    background 0.22s ease;
}
.choice-card:hover,
.check-card:hover,
.quantity-row:hover {
  background: #fff;
  transform: translateX(5px);
}
.estimate {
  top: 105px;
  border: 1px solid rgba(244, 242, 237, 0.18);
  border-top: 7px solid var(--request-orange);
  box-shadow:
    13px 15px 0 rgba(255, 90, 31, 0.2),
    0 32px 70px rgba(17, 17, 17, 0.24);
}
.estimate-head h2,
.estimate-total strong {
  font-family: "Barlow Condensed", "Noto Sans JP", sans-serif;
}
.customer-grid input,
.customer-grid textarea {
  border-color: var(--request-line);
  background: #fff;
}
.customer-grid input:focus,
.customer-grid textarea:focus {
  border-color: var(--request-orange);
  outline: 0;
  box-shadow: inset 4px 0 var(--request-orange);
}
.request-submit {
  min-height: 64px;
  font-family: "Barlow Condensed", "Noto Sans JP", sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
}
@media (max-width: 1000px) {
  .request-hero h1 {
    font-size: 5.7vw;
  }
}
@media (max-width: 820px) {
  .request-hero {
    padding-right: 20px;
    padding-left: 20px;
  }
  .request-hero-grid {
    display: block;
  }
  .request-hero h1 {
    font-size: 8.2vw;
  }
  .request-hero-grid > div {
    max-width: 550px;
    margin-top: 35px;
  }
  .service-panel,
  .customer-section {
    padding: 30px 22px;
    box-shadow: 8px 10px 0 rgba(17, 17, 17, 0.07);
  }
  .estimate {
    box-shadow: 9px 11px 0 rgba(255, 90, 31, 0.18);
  }
}
@media (max-width: 560px) {
  .request-hero h1 {
    font-size: 8.7vw;
  }
  .step-heading h2 {
    font-size: 35px;
  }
}
