.flat-form {
  --flat-ink: #202522;
  --flat-muted: #6f766f;
  --flat-line: #dce2dc;
  --flat-paper: #f7f8f5;
  --flat-accent: #bd8b4e;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 52px);
  color: var(--flat-ink);
  background: #fff;
  font-family: inherit;
  box-shadow: 0 14px 50px rgba(28, 39, 30, 0.08);
}
.flat-form * {
  box-sizing: border-box;
}
.flat-form__intro {
  max-width: 610px;
  margin-bottom: 36px;
}
.flat-eyebrow {
  margin: 0 0 9px;
  color: var(--flat-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.flat-form h2,
.flat-form h3,
.flat-form p {
  margin-top: 0;
}
.flat-form h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin-bottom: 12px;
}
.flat-form__intro > p:last-child,
.flat-section-heading p {
  color: var(--flat-muted);
  line-height: 1.55;
}
.flat-progress {
  margin: 0 0 42px;
}
.flat-progress-track {
  height: 2px;
  background: var(--flat-line);
}
.flat-progress-bar {
  width: 0;
  height: 100%;
  background: var(--flat-accent);
  transition: width 0.35s ease;
}
.flat-progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: -10px;
}
.flat-progress-step {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #a4aaa4;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.flat-progress-step b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--flat-line);
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
}
.flat-progress-step.is-done {
  color: var(--flat-ink);
}
.flat-progress-step.is-done b {
  background: var(--flat-accent);
  border-color: var(--flat-accent);
  color: #fff;
}
.flat-step {
  display: none;
}
.flat-step.is-active {
  display: block;
  animation: flat-in 0.3s ease;
}
.flat-section-heading {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin: 0 0 18px;
}
.flat-section-heading--next {
  margin-top: 40px;
}
.flat-section-heading > span {
  padding-top: 4px;
  color: var(--flat-accent);
  font-size: 12px;
  font-weight: 700;
}
.flat-section-heading h3 {
  font-size: 20px;
  margin-bottom: 5px;
}
.flat-section-heading p {
  margin-bottom: 0;
  font-size: 14px;
}
.flat-section-heading em,
.flat-form label em {
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  color: var(--flat-muted);
}
.flat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.flat-grid--two {
  grid-template-columns: repeat(2, 1fr);
}
.flat-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
.flat-grid--collections {
  grid-template-columns: repeat(3, 1fr);
}
.flat-form .flat-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 100%;
  padding: 12px;
  border: 1px solid var(--flat-line);
  border-radius: 2px;
  background: #fff;
  color: var(--flat-ink);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.flat-form .flat-option:hover {
  border-color: #aeb7ae;
  transform: translateY(-2px);
}
.flat-form .flat-option.is-selected {
  border-color: var(--flat-accent);
  box-shadow: inset 0 0 0 1px var(--flat-accent);
}
.flat-option img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: contain;
}
.flat-option strong {
  font-size: 14px;
  line-height: 1.25;
}
.flat-option small {
  color: var(--flat-muted);
  font-size: 11px;
  line-height: 1.35;
}
.flat-option--text {
  justify-content: center;
  min-height: 92px;
  padding: 18px;
}
.flat-option--collection {
  padding: 0;
  gap: 0;
}
.flat-option--collection img {
  aspect-ratio: 1.33;
  object-fit: cover;
}
.flat-option--collection strong {
  padding: 12px 14px;
}
.flat-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.flat-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.flat-form input:not([type="file"]),
.flat-form textarea {
  width: 100%;
  border: 1px solid var(--flat-line);
  border-radius: 0;
  padding: 13px;
  background: #fff;
  color: var(--flat-ink);
  font: inherit;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.flat-form input:focus,
.flat-form textarea:focus {
  border-color: var(--flat-accent);
  box-shadow: 0 0 0 3px rgba(189, 139, 78, 0.12);
}
.flat-form label > span {
  float: right;
  color: var(--flat-muted);
  font-weight: 400;
}
.flat-swatch-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.flat-form .flat-swatch {
  padding: 5px;
  gap: 6px;
}
.flat-swatch img {
  aspect-ratio: 1;
  object-fit: cover;
}
.flat-swatch span {
  align-self: center;
  font-size: 10px;
}
.flat-upload {
  display: flex;
  align-items: center;
  min-height: 150px;
  padding: 25px;
  border: 1px dashed #aeb7ae;
  background: var(--flat-paper);
  text-align: center;
  cursor: pointer;
}
.flat-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.flat-upload__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--flat-ink);
  border-radius: 50%;
  font-size: 18px;
}
.flat-upload small {
  color: var(--flat-muted);
  font-weight: 400;
}
.flat-file-name {
  font-size: 12px;
  color: var(--flat-accent);
}
.flat-file-name.is-error {
  color: #a53b32;
}
.flat-fields--contact {
  grid-template-columns: repeat(2, 1fr);
}
.flat-field--wide {
  grid-column: 1/-1;
}
.flat-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
}
.flat-form .flat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 20px;
  border: 1px solid var(--flat-ink);
  background: var(--flat-ink);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    opacity 0.2s;
}
.flat-form .flat-btn:hover {
  background: #3d453f;
}
.flat-form .flat-btn--ghost {
  background: #fff;
  color: var(--flat-ink);
}
.flat-form .flat-btn--ghost:hover {
  background: var(--flat-paper);
}
.flat-form .flat-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.has-error {
  border-color: #b33e36 !important;
}
.flat-grid.has-error,
.flat-swatch-grid.has-error {
  padding: 4px;
  border: 1px solid #b33e36;
}
.flat-form input.has-error {
  border-color: #b33e36;
}
.flat-status {
  margin: 24px 0 0;
  padding: 0;
  font-size: 14px;
}
.flat-status.is-success,
.flat-status.is-error {
  padding: 13px 15px;
}
.flat-status.is-success {
  background: #edf6ee;
  color: #286331;
}
.flat-status.is-error {
  background: #fff0ee;
  color: #9f342e;
}
@keyframes flat-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 680px) {
  .flat-form {
    padding: 24px 18px;
  }
  .flat-progress-step i {
    display: none;
  }
  .flat-grid,
  .flat-grid--collections,
  .flat-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }
  .flat-grid--shapes .flat-option small {
    display: none;
  }
  .flat-swatch-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .flat-fields,
  .flat-fields--contact {
    grid-template-columns: 1fr;
  }
  .flat-section-heading h3 {
    font-size: 18px;
  }
  .flat-nav .flat-btn {
    flex: 1;
  }
}
@media (max-width: 390px) {
  .flat-grid,
  .flat-grid--two,
  .flat-grid--collections,
  .flat-grid--three {
    grid-template-columns: 1fr;
  }
  .flat-swatch-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
