/* Scoped styles for the /cut-order confirmation form.
   Do not restyle the site header, banners, menu, or footer. */

.cut-order-page {
  --gold: #B88A2E;
  --gold-soft: #E9D7A6;
  --gold-deep: #80611f;
  --ivory: #FAFAF7;
  --charcoal: #1F2937;
  --ink: #1d1d1f;
  --quiet: #646468;
  --rule: #dcdcdf;
  --paper: #fff;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, "Yu Mincho", "Hiragino Mincho ProN", serif;
  background: var(--ivory);
  color: var(--ink);
}

.cut-order-page .form-hero {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--gold-soft) 30%, white), var(--ivory));
  padding: 36px 0 20px;
}

.cut-order-page .form-hero-inner,
.cut-order-page .form-wrap,
.cut-order-page .faq-wrap {
  width: calc(100% - 40px);
  max-width: 720px;
  margin-inline: auto;
}

.cut-order-page .eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  background: linear-gradient(to right, #f3e8ff, #dbeafe);
  color: #6b21a8;
  font-size: 13px;
  font-weight: 600;
}

.cut-order-page .form-hero h1 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 16px;
  line-break: strict;
  word-break: keep-all;
}

.cut-order-page .form-hero h1 span {
  color: var(--gold);
}

.cut-order-page .lead {
  margin: 0;
  color: #4b5563;
  font-size: 1rem;
}

.cut-order-page .form-wrap {
  padding: 8px 0 24px;
}

.cut-order-page .panel {
  background: var(--paper);
  border: 1px solid var(--gold-soft);
  box-shadow: 0 10px 28px #00000012;
  padding: 22px 18px 24px;
}

.cut-order-page .progress {
  margin-bottom: 20px;
}

.cut-order-page .progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--quiet);
  margin-bottom: 8px;
}

.cut-order-page .progress-label strong {
  color: var(--ink);
  font-weight: 600;
}

.cut-order-page .progress-track {
  height: 4px;
  background: #eeeae2;
}

.cut-order-page .progress-fill {
  height: 100%;
  background: var(--gold);
  width: 0;
  transition: width 0.2s ease;
}

.cut-order-page .step-dots {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.cut-order-page .step-dots span {
  font-size: 11px;
  color: var(--quiet);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.cut-order-page .step-dots span.current {
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 600;
}

.cut-order-page .step-dots span.done {
  color: var(--gold-deep);
}

.cut-order-page h2.step-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-break: strict;
  word-break: keep-all;
}

.cut-order-page .step-help {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 0.95rem;
}

.cut-order-page .choice-grid {
  display: grid;
  gap: 8px;
}

.cut-order-page .choice {
  display: block;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 12px 14px;
  text-align: left;
  min-height: 48px;
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: inherit;
  border-radius: 0;
}

.cut-order-page .choice:hover {
  border-color: var(--gold);
}

.cut-order-page .choice[aria-pressed="true"],
.cut-order-page .choice.is-selected {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold-soft) 40%, white);
  box-shadow: inset 3px 0 0 var(--gold);
  font-weight: 600;
}

.cut-order-page .choice small {
  display: block;
  font-weight: 400;
  color: var(--quiet);
  font-size: 12px;
  margin-top: 2px;
}

.cut-order-page .field {
  margin-top: 16px;
}

.cut-order-page .field label,
.cut-order-page .field .label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cut-order-page .field .hint {
  font-weight: 400;
  color: var(--quiet);
}

.cut-order-page input[type="text"],
.cut-order-page textarea,
.cut-order-page select {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 0;
  padding: 12px 12px;
  min-height: 48px;
  font: inherit;
  color: inherit;
}

.cut-order-page textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

.cut-order-page input:focus,
.cut-order-page textarea:focus,
.cut-order-page select:focus,
.cut-order-page .choice:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.cut-order-page .length-list {
  display: grid;
  gap: 16px;
}

.cut-order-page .length-block .part-name {
  font-weight: 700;
  margin-bottom: 8px;
}

.cut-order-page .length-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cut-order-page .length-options .choice {
  font-size: 13px;
  text-align: center;
  padding: 10px 8px;
  white-space: nowrap;
}

.cut-order-page .actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.cut-order-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  width: 100%;
  font-family: inherit;
  text-decoration: none;
  border-radius: 0;
}

.cut-order-page .btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.cut-order-page .btn-gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.cut-order-page .btn-gold:disabled,
.cut-order-page .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cut-order-page .btn-outline {
  background: #fff;
  border-color: var(--gold);
  color: var(--gold-deep);
}

.cut-order-page .btn-ghost {
  background: #fff;
  border-color: #b9b9bd;
  color: var(--ink);
  font-weight: 500;
}

.cut-order-page .err {
  color: #9b1c1c;
  font-size: 13px;
  margin: 8px 0 0;
  min-height: 1.2em;
}

.cut-order-page .order-box {
  background: var(--ivory);
  border: 1px solid var(--gold-soft);
  padding: 16px 14px;
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 12px;
}

.cut-order-page .photo-note {
  background: color-mix(in srgb, var(--gold-soft) 35%, white);
  border: 1px solid var(--gold-soft);
  padding: 12px 14px;
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.cut-order-page .assumptions {
  margin-top: 20px;
  font-size: 12px;
  color: var(--quiet);
}

.cut-order-page .assumptions summary {
  cursor: pointer;
  font-weight: 600;
  color: #4b5563;
}

.cut-order-page .copied {
  text-align: center;
  font-size: 13px;
  color: #166534;
  min-height: 1.3em;
  margin: 4px 0 0;
}

.cut-order-page .faq-wrap {
  padding: 8px 0 56px;
}

.cut-order-page .faq-wrap h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.cut-order-page .faq-item {
  border-top: 1px solid var(--rule);
  padding: 16px 0;
}

.cut-order-page .faq-item:last-child {
  border-bottom: 1px solid var(--rule);
}

.cut-order-page .faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.cut-order-page .faq-item p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .cut-order-page .form-hero h1 {
    font-size: 2.25rem;
  }
  .cut-order-page .panel {
    padding: 32px 28px;
  }
  .cut-order-page .actions {
    flex-direction: row;
  }
  .cut-order-page .actions .btn {
    width: auto;
    flex: 1;
  }
  .cut-order-page .form-hero-inner,
  .cut-order-page .form-wrap,
  .cut-order-page .faq-wrap {
    width: calc(100% - 48px);
  }
}

body:not([data-step="0"]) .cut-order-page .form-hero {
  padding: 16px 0 4px;
}

body:not([data-step="0"]) .cut-order-page .form-hero .lead {
  display: none;
}

body:not([data-step="0"]) .cut-order-page .form-hero h1 {
  font-size: 1.35rem;
  margin-bottom: 0;
}
