.sc-custom-order {
  --sc-ivory: #F8F5F2;
  --sc-blush: #EBC9C8;
  --sc-rose: #D9767A;
  --sc-gold: #D4B483;
  --sc-charcoal: #1F1F1F;
  --sc-muted: #6F6662;
  --sc-white: #FFFFFF;
  --sc-line: rgba(212, 180, 131, 0.32);
  --sc-shadow: 0 18px 52px rgba(31, 31, 31, 0.08);
  color: var(--sc-charcoal);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 72px) 16px;
  font-family: Manrope, Arial, sans-serif;
}

.sc-custom-order *,
.sc-custom-order *::before,
.sc-custom-order *::after {
  box-sizing: border-box;
}

.sc-custom-order__intro {
  max-width: 690px;
  margin: 0 auto 34px;
  text-align: center;
}

.sc-custom-order__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--sc-rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sc-custom-order__eyebrow::before {
  content: "♡";
  color: var(--sc-rose);
}

.sc-custom-order__intro h1,
.sc-how h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--sc-charcoal);
  font-weight: 600;
  letter-spacing: 0;
}

.sc-custom-order__intro h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
}

.sc-custom-order__intro p:not(.sc-custom-order__eyebrow) {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--sc-muted);
  font-size: 16px;
  line-height: 1.75;
}

.sc-custom-order__notice {
  max-width: 860px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  text-align: center;
}

.sc-custom-order__notice--success {
  background: rgba(235, 201, 200, 0.36);
  border: 1px solid rgba(217, 118, 122, 0.24);
  color: #8f3f44;
}

.sc-custom-order__notice--error {
  background: #fff2f2;
  border: 1px solid rgba(217, 118, 122, 0.35);
  color: #9d2d32;
}

.sc-custom-order__form {
  max-width: 980px;
  margin: 0 auto;
}

.sc-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.sc-progress li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--sc-muted);
  font-size: 12px;
  text-align: center;
}

.sc-progress li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--sc-line);
  z-index: 0;
}

.sc-progress li:first-child::before {
  display: none;
}

.sc-progress span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--sc-line);
  border-radius: 50%;
  background: var(--sc-white);
  font-weight: 800;
  transition: 0.2s ease;
}

.sc-progress strong {
  font-size: 12px;
  font-weight: 700;
}

.sc-progress li.is-active,
.sc-progress li.is-complete {
  color: var(--sc-rose);
}

.sc-progress li.is-active span,
.sc-progress li.is-complete span {
  background: var(--sc-rose);
  border-color: var(--sc-rose);
  color: var(--sc-white);
  box-shadow: 0 8px 18px rgba(217, 118, 122, 0.22);
}

.sc-step {
  display: none;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--sc-line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--sc-white), rgba(248, 245, 242, 0.76));
  box-shadow: var(--sc-shadow);
}

.sc-step.is-active {
  display: block;
}

.sc-step h2 {
  margin: 0 0 22px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

.sc-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sc-card-option {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.sc-card-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sc-card-option__box {
  position: relative;
  display: flex;
  min-height: 118px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px;
  border: 1px solid rgba(31, 31, 31, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sc-card-option__box:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 118, 122, 0.52);
  box-shadow: 0 12px 26px rgba(217, 118, 122, 0.09);
}

.sc-card-option input:checked + .sc-card-option__box {
  border-color: var(--sc-rose);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 201, 200, 0.18));
  box-shadow: 0 14px 30px rgba(217, 118, 122, 0.12);
}

.sc-card-option__label {
  display: block;
  color: var(--sc-charcoal);
  font-weight: 800;
  line-height: 1.25;
}

.sc-card-option__sub {
  display: block;
  margin-top: 2px;
  color: var(--sc-muted);
  font-size: 12px;
  line-height: 1.35;
}

.sc-card-option__check {
  position: absolute;
  top: -9px;
  right: -8px;
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sc-rose);
  box-shadow: 0 6px 14px rgba(217, 118, 122, 0.28);
}

.sc-card-option__check::before {
  content: "✓";
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--sc-white);
  font-size: 13px;
  font-weight: 900;
}

.sc-card-option input:checked + .sc-card-option__box .sc-card-option__check {
  display: block;
}

.sc-custom-order__icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.sc-field {
  display: block;
  margin: 0 0 20px;
}

.sc-field > input,
.sc-field > select,
.sc-field > textarea,
.sc-admin-settings input,
.sc-admin-settings textarea {
  width: 100%;
}

.sc-field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: var(--sc-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sc-field__label .sc-custom-order__icon {
  width: 20px;
  height: 20px;
}

.sc-field input[type="text"],
.sc-field input[type="tel"],
.sc-field input[type="email"],
.sc-field input[type="date"],
.sc-field select,
.sc-field textarea {
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid rgba(31, 31, 31, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sc-charcoal);
  font: 600 14px/1.4 Manrope, Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sc-field textarea {
  min-height: 96px;
  resize: vertical;
}

.sc-field input:focus,
.sc-field select:focus,
.sc-field textarea:focus {
  border-color: var(--sc-rose);
  box-shadow: 0 0 0 4px rgba(217, 118, 122, 0.12);
}

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

.sc-field--check {
  display: flex;
  align-items: center;
  min-height: 52px;
  margin-top: 25px;
  padding: 13px 14px;
  border: 1px solid rgba(31, 31, 31, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  cursor: pointer;
}

.sc-field--check input {
  width: 18px;
  height: 18px;
  margin: 0 10px 0 0;
  accent-color: var(--sc-rose);
}

.sc-field--check span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sc-field--check .sc-custom-order__icon {
  width: 22px;
  height: 22px;
}

.sc-upload {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 22px;
  border: 1px dashed rgba(212, 180, 131, 0.72);
  border-radius: 14px;
  background: rgba(248, 245, 242, 0.72);
  text-align: center;
  cursor: pointer;
}

.sc-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sc-upload span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.sc-upload small {
  color: var(--sc-muted);
  font-size: 12px;
}

.sc-pill-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sc-pill-group label {
  cursor: pointer;
}

.sc-pill-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sc-pill-group span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 31, 31, 0.12);
  border-radius: 999px;
  background: var(--sc-white);
  font-weight: 800;
}

.sc-pill-group input:checked + span {
  border-color: var(--sc-rose);
  background: rgba(235, 201, 200, 0.42);
  color: #8f3f44;
}

.sc-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 22px;
  color: var(--sc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.sc-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--sc-rose);
}

.sc-step__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.sc-button {
  display: inline-flex;
  min-width: 160px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 8px;
  font: 800 14px/1 Manrope, Arial, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sc-button--primary {
  border: 0;
  background: linear-gradient(135deg, #f06b76, var(--sc-rose));
  color: var(--sc-white);
  box-shadow: 0 12px 28px rgba(217, 118, 122, 0.24);
}

.sc-button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(217, 118, 122, 0.3);
}

.sc-button--outline {
  border: 1px solid rgba(212, 180, 131, 0.68);
  background: var(--sc-white);
  color: var(--sc-charcoal);
}

.sc-field.has-error input,
.sc-field.has-error select,
.sc-field.has-error textarea,
.sc-option-grid.has-error .sc-card-option__box,
.sc-pill-group.has-error span,
.sc-consent.has-error span {
  border-color: var(--sc-rose);
  box-shadow: 0 0 0 4px rgba(217, 118, 122, 0.1);
}

.sc-how {
  max-width: 980px;
  margin: 34px auto 0;
  text-align: center;
}

.sc-how h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.sc-how h2::after {
  content: "♡";
  display: block;
  width: 80px;
  margin: 10px auto 22px;
  border-top: 1px solid var(--sc-line);
  color: var(--sc-rose);
  font: 16px/0 Manrope, Arial, sans-serif;
}

.sc-how__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sc-how__item {
  display: flex;
  min-height: 158px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 22px 16px;
  border: 1px solid rgba(212, 180, 131, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
}

.sc-how__item .sc-custom-order__icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(235, 201, 200, 0.34);
}

.sc-how__item strong {
  font-size: 13px;
  line-height: 1.3;
}

.sc-how__item span {
  color: var(--sc-muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .sc-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .sc-custom-order {
    padding: 28px 12px 40px;
  }

  .sc-custom-order__intro {
    margin-bottom: 22px;
  }

  .sc-custom-order__intro h1 {
    font-size: 38px;
  }

  .sc-custom-order__intro p:not(.sc-custom-order__eyebrow) {
    font-size: 14px;
    line-height: 1.65;
  }

  .sc-progress {
    gap: 6px;
    margin-bottom: 18px;
  }

  .sc-progress span {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .sc-progress li::before {
    top: 14px;
  }

  .sc-progress strong {
    font-size: 10px;
  }

  .sc-step {
    padding: 16px;
    border-radius: 14px;
  }

  .sc-step h2 {
    margin-bottom: 14px;
    font-size: 17px;
  }

  .sc-option-grid {
    gap: 10px;
  }

  .sc-card-option__box {
    min-height: 76px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 11px;
    padding: 12px;
    text-align: left;
  }

  .sc-card-option__copy {
    min-width: 0;
  }

  .sc-card-option__label {
    font-size: 13px;
  }

  .sc-card-option__sub {
    font-size: 11px;
  }

  .sc-custom-order__icon {
    width: 26px;
    height: 26px;
  }

  .sc-field-grid,
  .sc-pill-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sc-field--check {
    margin-top: 0;
  }

  .sc-step__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sc-button {
    width: 100%;
    min-height: 48px;
  }

  .sc-how {
    margin-top: 28px;
  }

  .sc-how__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sc-how__item {
    min-height: auto;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    justify-items: start;
    padding: 14px;
    text-align: left;
  }

  .sc-how__item span {
    grid-column: 2;
  }
}

@media (max-width: 420px) {
  .sc-option-grid {
    grid-template-columns: 1fr;
  }
}
