body {
  background: var(--off);
}

site-header,
site-footer {
  display: block;
}

.mill-requirement.section {
  min-height: 100vh;
  padding-top: clamp(185px, 14vw, 270px);
  background:
    radial-gradient(circle at 12% 18%, rgba(120, 190, 234, 0.14), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fbfaf6 100%);
}

.mill-requirement-heading {
  margin-bottom: clamp(48px, 5.5vw, 90px);
}

.mill-requirement-heading .eyebrow {
  margin-bottom: clamp(18px, 1.7vw, 28px);
  color: #d48700;
}

.mill-requirement-heading h1 {
  font-size: clamp(2.6rem, 4.3vw, 4.7rem);
  font-weight: 300;
  line-height: 1.03;
  max-width: 1350px;
  margin-inline: auto;
  text-wrap: balance;
}

.mill-requirement-heading .lead {
  max-width: 1120px;
}

.mill-form-panel {
  overflow: hidden;
  border-radius: clamp(28px, 3vw, 58px);
  background: #06365c;
  color: #fff;
  box-shadow: 0 28px 80px rgba(2, 29, 51, 0.13);
}

.mill-form-header {
  padding: clamp(45px, 5vw, 78px) clamp(24px, 5vw, 80px) clamp(35px, 4vw, 58px);
  background: #02182c;
  text-align: center;
}

.mill-form-header h2 {
  margin-bottom: 12px;
  color: #d6b17d;
  font-family: var(--header-font);
  font-size: clamp(2.6rem, 4.3vw, 4.7rem);
  font-weight: 300;
  line-height: 1.08;
}

.mill-form-header p {
  max-width: 900px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.35rem);
}

.mill-form-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: clamp(22px, 2.3vw, 32px) clamp(28px, 4vw, 68px);
  background: #347dad;
  list-style: none;
}

.mill-form-progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0%;
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.85rem, 1.1vw, 1.18rem);
  font-weight: 400;
}

.mill-form-progress li:last-child {
  flex: 0 0 auto;
}

.mill-form-progress li:not(:last-child)::after {
  content: "";
  flex: 1 1 auto;
  min-width: 1rem;
  height: 1px;
  margin: 0 clamp(12px, 2vw, 36px);
  background: rgba(224, 183, 119, 0.85);
}

.mill-form-progress li b {
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mill-form-progress li > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid #d9b171;
  border-radius: 50%;
  color: #e0b777;
  font-size: 0.9rem;
  font-weight: 600;
}

.mill-form-progress li.is-active > span,
.mill-form-progress li.is-done > span {
  background: #e0b777;
  color: #082842;
}

.mill-form {
  padding: clamp(50px, 5.2vw, 90px) clamp(25px, 7vw, 120px) clamp(45px, 5vw, 80px);
}

.mill-form-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.mill-form-step[hidden] {
  display: none;
}

.mill-form-step legend {
  width: 100%;
  margin-bottom: 8px;
  color: #deb27a;
  text-align: center;
  font-size: clamp(1.8rem, 2.3vw, 2.65rem);
  font-weight: 500;
}

.mill-form-step-intro {
  margin: 0 0 clamp(40px, 4vw, 62px);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-size: clamp(1rem, 1.25vw, 1.3rem);
}

.mill-fields {
  display: grid;
  gap: clamp(24px, 2.6vw, 42px) clamp(22px, 3vw, 46px);
}

.mill-fields > label {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.mill-fields > label > span:first-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.98rem, 1vw, 1.12rem);
}

.mill-fields label b {
  color: #e7b8be;
}

.mill-fields input:not([type="checkbox"]):not([type="file"]),
.mill-fields select,
.mill-fields textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 11px;
  outline: 0;
  background: #f5f5f5;
  color: #111;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mill-fields input:not([type="checkbox"]):not([type="file"]),
.mill-fields select {
  min-height: 64px;
  padding: 0 20px;
}

.mill-fields textarea {
  resize: vertical;
  min-height: 130px;
  padding: 18px 20px;
}

.mill-fields :is(input, select, textarea):focus {
  border-color: #e0b777;
  box-shadow: 0 0 0 4px rgba(224, 183, 119, 0.2);
}

.mill-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding-top: 4px;
}

.mill-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.mill-check input,
.mill-consent input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: #e0b777;
}

.mill-file-field {
  position: relative;
}

.mill-file-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.mill-file-label {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed rgba(224, 183, 119, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-align: center;
  cursor: pointer;
}

.mill-file-field:focus-within .mill-file-label {
  box-shadow: 0 0 0 4px rgba(224, 183, 119, 0.2);
}

.mill-consent {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.mill-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 30px;
  margin-top: clamp(40px, 4vw, 65px);
}

.mill-form-actions button {
  min-width: min(100%, 290px);
  min-height: 64px;
  padding: 14px 32px;
  border: 0;
  border-radius: 999px;
  background: #dab17b;
  color: #052541;
  font: inherit;
  font-size: clamp(1.05rem, 1.25vw, 1.32rem);
  cursor: pointer;
}

.mill-form-actions .mill-back {
  min-width: auto;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
}

.mill-step-count {
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
}

.mill-form-success {
  padding: clamp(75px, 8vw, 140px) clamp(24px, 8vw, 140px);
  text-align: center;
}

.mill-form-success h2 {
  margin-bottom: 18px;
  color: #deb27a;
  font-family: var(--header-font);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 300;
}

.mill-form-success p {
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.25vw, 1.35rem);
}

@media (min-width: 950px) {
  .mill-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mill-field-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 650px) and (max-width: 949px) {
  .mill-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mill-field-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 950px) {
  .mill-form-progress {
    padding-inline: 14px;
  }

  .mill-form-progress li,
  .mill-form-progress li:last-child {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
    text-align: center;
    flex: 1 1 33.333% !important;
    width: 33.333% !important;
    max-width: 33.333% !important;
  }

  .mill-form-progress li:not(:last-child)::after {
    position: absolute;
    top: 16px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    margin: 0;
  }

  .mill-form-progress li b {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .mill-requirement.section {
    padding-top: 145px;
  }

  .mill-requirement-heading h1 {
    line-height: 1;
  }

  .mill-form-progress li b {
    font-size: 0.72rem;
  }
}

@media (max-width: 599px) {
  .mill-form-progress {
    padding-inline: 9px;
  }

  .mill-form-progress li > span {
    width: 28px;
    height: 28px;
  }

  .mill-form-progress li:not(:last-child)::after {
    top: 14px;
    left: calc(50% + 16px);
    width: calc(100% - 32px);
  }

  .mill-form-progress li b {
    font-size: 0.62rem;
  }

  .mill-form-actions {
    flex-direction: column;
  }

  .mill-form-actions button {
    width: 100%;
  }

  .mill-step-count {
    order: -1;
  }
}
