@font-face {
  font-family: 'Heading Now';
  src: url('/clientes/assets/heading-now.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/clientes/assets/poppins-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/clientes/assets/poppins-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --pink: #ea98af;
  --bone: #f4eae9;
  --coral: #e97a6f;
  --blue: #1e4f70;
  --brown: #bf6c58;
  --green: #5ca370;
  --ink: #242124;
  --muted: #69636a;
  --line: #dccdcc;
  --error: #a63a3a;
  --white: #fff;
}

* {
  box-sizing: border-box;
}
.bot-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 12%, rgba(234, 152, 175, 0.22), transparent 26rem),
    linear-gradient(145deg, #fff 0%, var(--bone) 100%);
  color: var(--ink);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}
.page-shell {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 52px);
}
.form-card {
  overflow: hidden;
  border: 1px solid rgba(30, 79, 112, 0.12);
  border-radius: 32px;
  background: var(--pink);
  box-shadow: 0 24px 80px rgba(74, 49, 57, 0.14);
}
.brand-header {
  padding: clamp(24px, 6vw, 48px) clamp(24px, 7vw, 58px) 34px;
  color: var(--blue);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  margin-bottom: 26px;
}
.logo-surface {
  display: grid;
  width: 74px;
  height: 92px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 16px;
  background: var(--bone);
}
.logo-surface img {
  display: block;
  width: 58px;
  height: auto;
  max-height: 76px;
}
.slogan {
  color: var(--white);
  background: var(--blue);
  padding: 4px 9px;
  border-radius: 8px;
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  letter-spacing: -0.02em;
}
.eyebrow,
.step-kicker {
  display: block;
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-header .eyebrow {
  color: #000;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 7px;
  font-family: 'Heading Now', Impact, sans-serif;
  font-size: clamp(2.55rem, 8vw, 4.1rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.brand-header > p:last-child {
  max-width: 43rem;
  margin-bottom: 0;
  color: #000;
}
.form-surface,
.success-surface {
  border-radius: 32px 32px 0 0;
  background: var(--white);
}
.form-surface {
  padding: clamp(24px, 6vw, 48px) clamp(24px, 7vw, 58px) clamp(32px, 7vw, 62px);
}

.progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 40px;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  color: #827b80;
  cursor: pointer;
}
.progress-step:disabled {
  cursor: default;
}
.progress-step span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--bone);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 600;
}
.progress-step strong {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.progress-step.is-active {
  color: var(--blue);
}
.progress-step.is-active span {
  background: var(--blue);
  color: var(--white);
}
.progress-step.is-complete span {
  background: rgba(92, 163, 112, 0.16);
  color: var(--green);
}
.progress-line {
  height: 1px;
  background: var(--line);
}
.section-heading {
  margin-bottom: 30px;
}
.section-heading h2,
.success-surface h2 {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
}
.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}
.compact-heading {
  margin-bottom: 20px;
}
.compact-heading h3 {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 600;
}
.compact-heading p {
  font-size: 0.82rem;
}

.field {
  margin-bottom: 23px;
}
.no-margin {
  margin-bottom: 0;
}
.name-grid,
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field label,
.choice-field legend {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
}
.field label > span,
.choice-field legend > span {
  color: var(--brown);
}
.field input:not([type='radio']):not([type='checkbox']),
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdfd;
  color: var(--ink);
  font-size: 1rem;
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}
.field select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%),
    linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 23px,
    calc(100% - 14px) 23px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 79, 112, 0.12);
}
.field input[aria-invalid='true'],
.field select[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--error);
}
.field small,
.choice-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}
.field-error {
  display: block;
  margin-top: 6px;
  color: var(--error);
  font-size: 0.78rem;
}
.field-error:empty {
  display: none;
}
.choice-field {
  min-width: 0;
  padding: 0;
  border: 0;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice-card {
  display: flex !important;
  align-items: center;
  min-height: 58px;
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdfd;
  color: var(--ink) !important;
  cursor: pointer;
}
.choice-card:has(input:checked) {
  border-color: var(--blue);
  background: rgba(30, 79, 112, 0.06);
  box-shadow: 0 0 0 2px rgba(30, 79, 112, 0.08);
}
.choice-card input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0 11px 0 0;
  accent-color: var(--blue);
}
.choice-card span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 400;
}
.choice-card:has(
    input[data-guided='doughMode'][value='same'],
    input[data-guided='fillingScope'][value='same'],
    input[data-guided='fillingMode'][value='single'],
    input[data-guided='topperChoice'][value='no']
  ):not(:has(input:checked)) {
  border-color: var(--pink);
}
.choice-card:has(
    input[data-guided='doughMode'][value='same'],
    input[data-guided='fillingScope'][value='same'],
    input[data-guided='fillingMode'][value='single'],
    input[data-guided='topperChoice'][value='no']
  )
  span {
  font-weight: 600;
}
.choice-card strong {
  display: block;
  color: var(--blue);
  font-weight: 600;
}
.choice-card small {
  margin-top: 1px;
}
.compact-choice {
  margin-top: 4px;
}
.panel-soft,
.helper-card,
.form-notice {
  margin: 8px 0 26px;
  padding: 20px;
  border-radius: 16px;
  background: var(--bone);
}
.input-prefix,
.money-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdfd;
}
.input-prefix:focus-within,
.money-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 79, 112, 0.12);
}
.input-prefix > span,
.money-input > span {
  padding-left: 14px;
  color: var(--muted);
  font-weight: 600;
}
.input-prefix input,
.money-input input {
  min-width: 0;
  border: 0 !important;
  box-shadow: none !important;
}

.catalog-state {
  padding: 18px;
  border-radius: 14px;
  background: var(--bone);
  color: var(--blue);
  text-align: center;
}
.catalog-state.is-error {
  color: var(--error);
}
.guided-builder {
  display: grid;
  gap: 18px;
}
.guided-section {
  padding: clamp(18px, 4vw, 24px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdfd;
  box-shadow: 0 8px 26px rgba(74, 49, 57, 0.045);
}
.guided-heading {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 22px;
}
.guided-heading > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
}
.guided-heading h3 {
  margin: 1px 0 2px;
  color: var(--blue);
  font-size: 1.08rem;
  font-weight: 600;
}
.guided-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.guided-groups {
  display: grid;
  gap: 14px;
}
.guided-group {
  padding: 18px;
  border-left: 4px solid var(--pink);
  border-radius: 0 14px 14px 0;
  background: var(--bone);
}
.guided-group + .guided-group {
  margin-top: 2px;
}
.guided-group h4 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
}
.guided-group .field:last-child,
.extra-fields .field {
  margin-bottom: 0;
}
.question-help {
  margin: -3px 0 12px;
  color: var(--muted);
  font-size: 0.76rem;
}
.inline-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.inline-check input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}
.extra-fields {
  margin-top: 16px;
}
.filling-entries {
  display: grid;
  gap: 12px;
}
.filling-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(90px, 0.55fr) minmax(130px, 0.8fr);
  gap: 12px;
}
.filling-entry .field {
  margin-bottom: 0;
}
.layer-note {
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 0.76rem;
}
.gender-reveal-field {
  margin-top: 18px;
  padding: 18px;
  border-left: 4px solid var(--coral);
  background: rgba(233, 122, 111, 0.08);
}
.gender-reveal-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.line-items {
  display: grid;
  gap: 18px;
}
.line-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdfd;
  box-shadow: 0 8px 26px rgba(74, 49, 57, 0.05);
}
.line-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.line-card-head strong {
  display: block;
  color: var(--blue);
  font-size: 1rem;
}
.line-kind {
  display: block;
  margin-bottom: 1px;
  color: var(--brown);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.remove-line {
  align-self: flex-start;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--error);
  font-size: 0.77rem;
  cursor: pointer;
}
.compact-grid .field {
  margin-bottom: 18px;
}
.add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 20px;
}
.chip-button {
  padding: 9px 12px;
  border: 1px solid rgba(30, 79, 112, 0.2);
  border-radius: 999px;
  background: rgba(30, 79, 112, 0.05);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.helper-card {
  display: grid;
  gap: 2px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.83rem;
}
.helper-card strong {
  color: var(--blue);
}
.file-summary {
  margin: 11px 0 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
}
.file-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bone);
  color: var(--blue);
  font-size: 0.78rem;
}
.file-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-item small {
  margin: 0;
  white-space: nowrap;
}
.remove-file {
  padding: 3px 0;
  border: 0;
  background: none;
  color: var(--error);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.remove-file:focus-visible {
  outline: 2px solid rgba(30, 79, 112, 0.35);
  outline-offset: 3px;
}

.review-card {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}
.review-card section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.review-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  background: var(--bone);
  color: var(--blue);
  font-size: 0.88rem;
}
.review-change {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.review-card dl {
  margin: 0;
  padding: 5px 16px;
}
.review-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(220, 205, 204, 0.7);
}
.review-row:last-child {
  border-bottom: 0;
}
.review-row dt {
  color: var(--muted);
  font-size: 0.75rem;
}
.review-row dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}
.review-lines {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 16px 16px 34px;
}
.review-lines li {
  padding-left: 3px;
  font-size: 0.82rem;
}
.review-lines strong,
.review-lines span,
.review-lines small {
  display: block;
}
.review-lines span,
.review-lines small {
  color: var(--muted);
}
.review-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-color: rgba(30, 79, 112, 0.24) !important;
  background: rgba(30, 79, 112, 0.05);
}
.review-total h3 {
  padding: 0;
  background: transparent;
}
.review-total > strong {
  color: var(--blue);
  font-size: 1.25rem;
}
.confirm-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdfd;
  color: var(--ink);
  font-size: 0.85rem;
  cursor: pointer;
}
.confirm-check:has(input:checked) {
  border-color: var(--blue);
  background: rgba(30, 79, 112, 0.04);
}
.confirm-check input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}
.form-notice {
  margin: 20px 0 0;
  color: var(--blue);
  font-size: 0.8rem;
}

.form-alert {
  margin-bottom: 24px;
  padding: 13px 15px;
  border: 1px solid rgba(166, 58, 58, 0.28);
  border-radius: 12px;
  background: rgba(166, 58, 58, 0.08);
  color: #7f2d2d;
  font-size: 0.88rem;
}
.button {
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    opacity 120ms ease;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button:focus-visible {
  outline: 3px solid rgba(30, 79, 112, 0.3);
  outline-offset: 3px;
}
.button:disabled {
  cursor: wait;
  opacity: 0.68;
}
.button-primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(30, 79, 112, 0.17);
}
.button-secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
}
.button-wide {
  width: 100%;
  margin-top: 4px;
}
.button-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 12px;
  margin-top: 30px;
}
.success-surface {
  display: grid;
  min-height: 480px;
  padding: 66px 28px 72px;
  place-items: center;
  align-content: center;
  text-align: center;
}
.success-mark {
  display: grid;
  width: 74px;
  height: 74px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(92, 163, 112, 0.15);
  color: var(--green);
}
.success-surface .eyebrow {
  margin-bottom: 5px;
}
.success-surface h2 {
  font-size: 2rem;
}
.success-surface > p:not(.eyebrow) {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.03rem;
}
.success-note {
  max-width: 31rem;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bone);
  color: var(--blue);
  font-size: 0.84rem;
}
[hidden] {
  display: none !important;
}

.quotation-reopen {
  margin: 0 0 22px;
}
.quotation-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 32px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 22px 80px rgba(30, 79, 112, 0.23);
}
.quotation-dialog::backdrop {
  background: rgba(30, 49, 61, 0.55);
}

.customer-dialog {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.customer-dialog button {
  margin-top: 12px;
  min-height: 44px;
  width: 100%;
}
.customer-dialog input,
.customer-dialog textarea {
  font-size: 16px;
}
.customer-saved-details {
  background: #f4eae9;
  padding: 16px;
  border-radius: 12px;
}
.customer-saved-details dt {
  font-weight: 600;
  color: #1e4f70;
}
.customer-saved-details dd {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
#customer-code {
  letter-spacing: 6px;
  font-size: 24px;
}
.quotation-spinner {
  display: inline-block;
  width: 42px;
  height: 42px;
  margin: 4px auto 18px;
  border: 4px solid var(--pink);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: quotation-spin 1s linear infinite;
}
.quotation-spinner-small {
  width: 18px;
  height: 18px;
  margin: 0 9px 0 0;
  border-width: 2px;
  vertical-align: middle;
}
.processing-dialog h2 {
  margin-bottom: 14px;
}
@keyframes quotation-spin {
  to {
    transform: rotate(360deg);
  }
}
.quotation-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
  font-size: 1.8rem;
  cursor: pointer;
}
.quotation-close:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.quotation-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: var(--pink);
  color: var(--blue);
}
.quotation-dialog .eyebrow {
  color: var(--blue);
}
.quotation-dialog h2 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
}
.quotation-dialog > p {
  margin-bottom: 16px;
}
#quotation-description {
  font-size: 0.9rem;
  color: var(--muted);
}
.quotation-number {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bone);
  color: var(--blue);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.quotation-status {
  min-height: 1.5em;
  font-size: 0.84rem;
  color: var(--blue);
}
.quotation-status.is-error {
  color: var(--error);
}
.quotation-dialog .quotation-help {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.quotation-file-form {
  display: grid;
  gap: 10px;
}

@media (max-width: 700px) {
  .progress-step strong {
    display: none;
  }
  .progress {
    gap: 7px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 0;
  }
  .form-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .brand-header {
    padding: 24px 24px 28px;
  }
  .brand-lockup {
    min-height: 70px;
    margin-bottom: 22px;
  }
  .logo-surface {
    width: 58px;
    height: 70px;
    border-radius: 13px;
  }
  .logo-surface img {
    width: 44px;
    max-height: 58px;
  }
  h1 {
    font-size: 2.55rem;
  }
  .form-surface,
  .success-surface {
    border-radius: 28px 28px 0 0;
  }
  .form-surface {
    min-height: 610px;
    padding: 26px 22px 38px;
  }
  .progress {
    margin-bottom: 30px;
  }
  .progress-step span {
    width: 25px;
    height: 25px;
  }
  .choice-grid,
  .name-grid,
  .split-grid,
  .button-row {
    grid-template-columns: 1fr;
  }
  .filling-entry {
    grid-template-columns: 1fr;
  }
  .button-secondary {
    order: 2;
  }
  .panel-soft,
  .line-card {
    padding: 17px;
  }
  .file-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .file-item small {
    grid-column: 1;
  }
  .remove-file {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .review-row {
    grid-template-columns: 105px 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Keep the exact price field and its explanation visible after validation. */
.field:has([aria-invalid='true']) {
  outline: 2px solid var(--error);
  outline-offset: 6px;
  border-radius: 8px;
  scroll-margin-block: 32px;
}
.guided-field-error:empty {
  display: none;
}
.agreement-reminder {
  padding: 16px;
  border-left: 4px solid var(--pink);
  background: var(--bone);
  color: var(--blue);
}
.guided-group .field:has([aria-invalid='true']) {
  margin-bottom: 14px;
}

.form-tutorial {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--pink);
  border-radius: 16px;
  background: var(--bone);
}
.form-tutorial h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.form-tutorial p {
  margin: 8px 0;
  font-size: 0.88rem;
  line-height: 1.6;
}
.form-tutorial a,
.tutorial-disclosure summary {
  color: var(--blue);
  font-weight: 600;
}
.tutorial-disclosure summary {
  padding: 12px 0;
  cursor: pointer;
}
.tutorial-disclosure summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.tutorial-video {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 9 / 16;
  margin: 12px auto;
  border-radius: 12px;
}
