.custom-request-shell {
  max-width: 1180px;
  margin: 24px auto 110px;
  padding: 72px clamp(22px, 5vw, 72px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 8%, rgba(198, 151, 69, 0.11), transparent 30%),
    var(--black-card);
}

.custom-request-intro {
  max-width: 760px;
  margin-bottom: 48px;
}

.custom-request-intro .section-title {
  margin-bottom: 18px;
}

.custom-request-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 42px;
  border-top: 1px solid var(--line);
}

.custom-request-progress span {
  position: relative;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 15px 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.custom-request-progress span::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 220ms ease;
}

.custom-request-progress span.is-current,
.custom-request-progress span.is-complete {
  color: var(--gold);
}

.custom-request-progress span.is-current::before,
.custom-request-progress span.is-complete::before {
  width: 100%;
}

.custom-request-form {
  position: relative;
}

.request-step > h3 {
  max-width: 760px;
  margin: 0 0 30px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.03;
  font-weight: 400;
}

.request-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.request-type-grid label {
  min-height: 84px;
  cursor: pointer;
}

.request-type-grid input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.request-type-grid span {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 18px;
  border: 1px solid rgba(198, 151, 69, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--ivory-soft);
  font-size: 18px;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.request-type-grid label:hover span {
  border-color: rgba(214, 176, 108, 0.62);
  background: rgba(198, 151, 69, 0.055);
  transform: translateY(-1px);
}

.request-type-grid input:focus-visible + span {
  outline: 2px solid rgba(224, 190, 127, 0.72);
  outline-offset: 3px;
}

.request-type-grid input:checked + span {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(198, 151, 69, 0.16), rgba(198, 151, 69, 0.055));
  box-shadow: inset 0 0 0 1px rgba(224, 190, 127, 0.14);
  color: #e0be7f;
}

.request-field-grid,
.branch-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.request-field,
.request-choice-group {
  display: grid;
  align-content: start;
  gap: 9px;
}

.request-field-wide,
.request-choice-group-wide {
  grid-column: 1 / -1;
}

.request-field > span,
.request-choice-group legend {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.request-field input,
.request-field select,
.request-field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #0c0c0c;
  color: var(--ivory);
  font: inherit;
}

.request-field textarea {
  min-height: 150px;
  resize: vertical;
}

.request-field input:focus,
.request-field select:focus,
.request-field textarea:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.upload-field {
  --upload-champagne: #d8ccb6;
  --upload-champagne-muted: #b9ae9b;
}

.upload-card {
  position: relative;
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(216, 204, 182, 0.46);
  border-radius: 12px;
  background: rgba(216, 204, 182, 0.025);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.upload-card:hover {
  border-color: rgba(216, 204, 182, 0.72);
  background: rgba(216, 204, 182, 0.055);
}

.upload-card:focus-within {
  outline: 2px solid var(--upload-champagne);
  outline-offset: 3px;
  border-color: var(--upload-champagne);
}

#inspiration-files {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-card-title {
  color: var(--upload-champagne);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.upload-card small {
  color: var(--upload-champagne-muted);
  font-size: 13px;
  line-height: 1.45;
}

.upload-list:not(:empty) {
  grid-column: 1 / -1;
  padding: 10px 0 10px 14px;
  border-left: 1px solid rgba(216, 204, 182, 0.68);
  background: transparent;
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.request-field small,
.request-choice-group small {
  color: var(--muted);
  font-size: 13px;
}

.request-choice-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.request-choice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.request-choice-list label {
  cursor: pointer;
}

.request-choice-list input {
  position: absolute;
  opacity: 0;
}

.request-choice-list span {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(198, 151, 69, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.014);
  color: var(--ivory-soft);
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.request-choice-list label:hover span {
  border-color: rgba(214, 176, 108, 0.62);
  background: rgba(198, 151, 69, 0.055);
  transform: translateY(-1px);
}

.request-choice-list input:focus-visible + span {
  outline: 2px solid rgba(224, 190, 127, 0.72);
  outline-offset: 3px;
}

.request-choice-list input:checked + span {
  border-color: var(--gold);
  color: #e0be7f;
  background: linear-gradient(135deg, rgba(198, 151, 69, 0.16), rgba(198, 151, 69, 0.055));
  box-shadow: inset 0 0 0 1px rgba(224, 190, 127, 0.14);
}

.request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.request-actions .button {
  min-width: 150px;
  margin: 0;
}

.request-actions .button[hidden] {
  display: none;
}

.request-actions .request-cancel {
  min-width: auto;
  margin-right: auto;
  padding-inline: 8px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.request-actions .request-cancel:hover,
.request-actions .request-cancel:focus-visible {
  border-color: transparent;
  background: transparent;
  color: #d6b06c;
  text-decoration-color: currentColor;
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ivory);
}

.product-context {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 34px;
  padding: 15px;
  border: 1px solid var(--gold);
  background: rgba(198, 151, 69, 0.06);
}

.product-context[hidden] {
  display: none;
}

.product-context img {
  width: 104px;
  height: 104px;
  padding: 8px;
  object-fit: contain;
  background: #f4f1eb;
}

.product-context h3,
.product-context p {
  margin: 3px 0 7px;
}

.request-next-steps {
  margin-top: 28px;
  padding: 22px;
  border-left: 2px solid var(--gold);
  background: #0b0b0b;
}

.request-next-steps h4 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 500;
}

.request-next-steps p {
  margin: 0;
  color: var(--ivory-soft);
}

.request-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 24px;
  color: var(--ivory-soft);
}

.request-consent input {
  margin-top: 5px;
  accent-color: var(--gold);
}

.custom-request-alert,
.request-result {
  margin: 0 0 26px;
  padding: 16px 18px;
  border-left: 2px solid #bf6258;
  background: rgba(191, 98, 88, 0.09);
  color: var(--ivory);
}

.request-result {
  margin: 28px 0 0;
  border-color: var(--gold);
  background: rgba(198, 151, 69, 0.08);
}

.request-result h3 {
  margin-top: 0;
  color: var(--gold);
}

.upload-list {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.custom-request-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.product-custom-request {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--black-card);
}

.product-custom-request h2 {
  margin: 0 0 8px;
  font-size: 25px;
  font-weight: 500;
}

.product-custom-request p {
  margin: 0 0 15px;
  color: var(--ivory-soft);
  font-size: 16px;
}

.product-custom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.product-custom-actions .button {
  width: auto;
  min-width: 190px;
  margin: 0;
  text-align: center;
}

.product-custom-actions .button-secondary {
  border: 1px solid var(--gold);
}

@media (max-width: 760px) {
  .custom-request-shell {
    margin: 0 15px 72px;
    padding: 48px 18px;
  }

  .custom-request-progress span {
    justify-content: center;
  }

  .custom-request-progress b {
    display: none;
  }

  .request-type-grid,
  .request-field-grid,
  .branch-fields {
    grid-template-columns: 1fr;
  }

  .request-field-wide,
  .request-choice-group-wide {
    grid-column: auto;
  }

  .upload-card {
    padding: 18px;
  }

  .request-type-grid span {
    min-height: 62px;
    font-size: 17px;
  }

  .product-context {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
  }

  .product-context img {
    width: 78px;
    height: 78px;
  }

  .request-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .request-actions .button {
    min-width: 0;
  }

  .request-actions .request-cancel {
    grid-column: 1;
    grid-row: 1;
    margin-right: 0;
    justify-self: start;
  }

  #request-back {
    grid-column: 2;
    grid-row: 1;
  }

  #request-next,
  #request-submit {
    grid-column: 1 / -1;
  }

  .product-custom-actions {
    display: grid;
  }

  .product-custom-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-request-progress span::before,
  .request-type-grid span {
    transition: none;
  }
}
