#offer-page {
  container: offer-page / inline-size;
  --of-orange: var(--orange, #ff6600);
  --of-ink: #25272a;
  --of-muted: #545a60;
  --of-line: #d6d9dc;
}
#offer-page [hidden] {
  display: none !important;
}
#offer-form,
#offer-success {
  max-width: 780px;
  margin-inline: auto;
  color: var(--of-ink);
}
.of-intro {
  max-width: 64ch;
  margin-bottom: clamp(20px, 2.1vw, 28px);
  color: var(--muted);
}
.of-progress {
  margin-bottom: 16px;
}
.of-progress-line,
.of-photo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.of-progress-line strong {
  font-size: 0.95rem;
}
.of-progress-line span,
.of-photo-head,
.of-free,
.of-hint,
#of-photo-status,
#power-conversion {
  font-size: 0.87rem;
  color: var(--of-muted);
  line-height: 1.45;
}
.of-progress ol {
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}
.of-progress li {
  height: 5px;
  min-width: 0;
  flex: 1;
  background: #dadde0;
  border-radius: 4px;
}
.of-progress li.of-done,
.of-progress li[aria-current] {
  background: var(--of-orange);
}
.of-card {
  border: 1px solid var(--of-line);
  background: #fff;
  border-radius: 16px;
  padding: clamp(16px, 3.5vw, 34px);
  box-shadow: 0 4px 20px rgba(27, 32, 37, 0.045);
}
.of-step > h2,
#offer-success h2 {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.of-step > p {
  line-height: 1.45;
}
.of-step > .of-field,
.of-step > [data-show],
.of-step > .of-question,
.of-step > .of-details {
  margin-block: 16px;
}
.of-grid,
.of-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.of-grid > *,
.of-field,
.of-photo {
  min-width: 0;
}
.of-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.of-field > label,
.of-question legend {
  font-weight: 600;
}
.of-spaced {
  margin-top: 16px;
}
.of-field input,
.of-field textarea,
.of-field select,
.of-unit select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #aeb3b8;
  border-radius: 9px;
  font: inherit;
  font-size: 1rem;
  color: var(--of-ink);
  background: #fff;
}
.of-field select {
  padding-right: 1.5em;
}
.of-field textarea {
  resize: vertical;
}
.of-field input:disabled,
.of-field select:disabled {
  color: #5d646a;
  background: #f1f2f3;
}
.of-field input[type='month'] {
  min-height: 46px;
}
.of-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5rem;
  gap: 6px;
}
#power-conversion:empty {
  display: none;
}
.of-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  line-height: 1.4;
  padding-block: 8px;
}
.of-check input {
  accent-color: #303234;
  width: 19px;
  height: 19px;
  margin: 0.12em 0 0;
  flex: none;
}
.of-compact {
  font-size: 0.87rem;
  color: var(--of-muted);
}
.of-question {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.of-question legend {
  padding: 0;
  margin-bottom: 8px;
}
.of-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.of-options label {
  flex: 1;
  min-width: max-content;
  position: relative;
  cursor: pointer;
}
.of-options input,
.of-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.of-options span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid #aeb3b8;
  border-radius: 9px;
  box-sizing: border-box;
  background: #fff;
  font-size: 0.95rem;
}
.of-options input:checked + span {
  background: #fff1e5;
  box-shadow: inset 0 0 0 1px #a74400;
  border-color: #a74400;
  font-weight: bold;
}
#offer-form :is(input, select, textarea, button, summary, a):focus-visible,
.of-options input:focus-visible + span,
.of-picker:focus-within {
  outline: 3px solid #215b91;
  outline-offset: 2px;
}
.of-details {
  border-top: 1px solid var(--of-line);
  padding-top: 8px;
}
.of-details > summary {
  padding-block: 8px;
  cursor: pointer;
  font-weight: 600;
}
.of-details[open] > summary {
  margin-bottom: 8px;
}
.of-photo-head {
  padding-block: 5px 12px;
}
.of-photo-head span:first-child {
  font-weight: 700;
  color: var(--of-ink);
}
.of-photos {
  gap: 10px;
}
.of-photo {
  border: 1px dashed #9aa1a6;
  border-radius: 12px;
  padding: 8px;
}
.of-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 104px;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.of-picker svg {
  color: #4c5358;
}
.of-picker small {
  display: block;
  line-height: 1.3;
  color: var(--of-muted);
  margin-top: 3px;
}
.of-photo:has(.of-thumb) .of-picker {
  min-height: 46px;
}
.of-photo:has(.of-thumb) .of-picker svg {
  display: none;
}
.of-thumb {
  display: grid;
  gap: 4px;
  margin-bottom: 5px;
}
.of-thumb img {
  width: 100%;
  height: 105px;
  border-radius: 7px;
  object-fit: contain;
  background: #f3f4f4;
}
.of-thumb button,
.of-review-edit {
  background: none;
  border: 0;
  padding: 6px 2px;
  min-height: 36px;
  color: #343a40;
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
}
.of-actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--of-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.of-actions button {
  min-height: 46px;
  padding: 10px 21px;
  font: inherit;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
}
.of-primary {
  margin-left: auto;
  border: 1px solid transparent;
  background: var(--of-orange);
  color: #151719;
}
.of-back {
  border: 1px solid #aeb3b8;
  color: #25282b;
  background: #fff;
}
.of-actions :disabled {
  opacity: 0.65;
  cursor: progress;
}
.of-free {
  text-align: right;
  margin: 8px 0 0;
}
.of-feedback,
.of-inline-error,
.of-photo-error {
  color: #922017;
  line-height: 1.4;
}
.of-feedback {
  border-radius: 8px;
  padding: 10px;
  margin-top: 16px;
  background: #fff1f0;
}
.of-inline-error,
.of-photo-error {
  margin: 3px 0;
  font-size: 0.86rem;
}
.of-field [aria-invalid='true'] {
  border-color: #9f261c;
}
.of-trap {
  position: absolute;
  inset-inline-start: -10000px;
}
.of-review-group {
  padding: 14px 0;
  border-top: 1px solid var(--of-line);
}
.of-review-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.of-review-head h3 {
  margin: 0;
  font-size: 1.02rem;
}
.of-review-group dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 5px 8px;
  font-size: 0.9rem;
  margin: 7px 0;
}
.of-review-group dt {
  color: var(--of-muted);
}
.of-review-group dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.of-review-pics {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.of-review-pics figure {
  margin: 0;
  max-width: 70px;
}
.of-review-pics img {
  width: 65px;
  height: 50px;
  object-fit: contain;
  background: #f3f4f4;
  border-radius: 4px;
}
.of-review-pics figcaption {
  font-size: 0.7rem;
  line-height: 1.2;
}
.of-ack {
  border-top: 1px solid var(--of-line);
  padding-top: 15px;
  margin-top: 6px;
}
#offer-success {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .of-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  .of-card {
    border-radius: 12px;
  }
  .of-progress-line span {
    font-size: 0.75rem;
  }
  .of-options {
    gap: 4px;
  }
  .of-options span {
    font-size: 0.87rem;
    padding-inline: 6px;
  }
  .of-photo {
    padding: 4px;
  }
  .of-picker {
    min-height: 112px;
    padding: 4px;
  }
  .of-picker strong {
    font-size: 0.92rem;
  }
  .of-picker small {
    font-size: 0.76rem;
  }
  .of-actions button {
    padding-inline: 14px;
  }
}
