.order-project { min-height: calc(100svh - 72px); }

.order-project__hero {
  display: grid;
  min-height: calc(100svh - 72px);
  align-items: center;
  padding: clamp(44px, 7vw, 100px) 0;
}

.order-project__container { width: min(100% - 128px, 760px); }

.order-project__heading { margin-bottom: clamp(26px, 3vw, 40px); text-align: left; }
.order-project__heading h1 { max-width: none; font-size: clamp(1.7rem, 3.1vw, 3rem); letter-spacing: -.035em; line-height: 1; text-wrap: nowrap; white-space: nowrap; }

.order-project__form {
  border: 1px solid var(--color-border);
  background: #0d0d10;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .18);
}

.order-project__form .wpcf7-form {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--color-border);
}

.order-project__form .order-project__field,
.order-project__form > .wpcf7 > form > p {
  min-width: 0;
  margin: 0;
  background: #0d0d10;
}

.order-project__form .wpcf7-form-control-wrap { display: block; }
.order-project__form br { display: none; }
.order-project__form .order-project__field > p { margin: 0; line-height: 0; }

.order-project__contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border);
}
.order-project__contact-grid .order-project__field { background: #0d0d10; }
.order-project__contact-grid input:not([type="checkbox"]):not([type="submit"]) { min-height: 96px; padding-block: 29px; }

.order-project__form .wpcf7-form > p > label {
  display: grid;
  gap: 7px;
  padding: 13px 19px 0;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.order-project__form .wpcf7-form > p > label br { display: none; }

.order-project__form input:not([type="checkbox"]):not([type="submit"]),
.order-project__form select,
.order-project__form textarea {
  width: 100%;
  min-height: 62px;
  padding: 17px 19px;
  border: 0;
  border-radius: 0;
  outline: 1px solid transparent;
  outline-offset: -1px;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  transition: background-color 160ms ease, color 160ms ease, outline-color 160ms ease;
}

.order-project__form input:not([type="checkbox"]):not([type="submit"])::placeholder,
.order-project__form textarea::placeholder { color: var(--color-text-muted); opacity: 1; }
.order-project__form textarea { height: 144px; min-height: 144px; resize: vertical; }

.order-project__form input:not([type="checkbox"]):not([type="submit"]):hover,
.order-project__form textarea:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.order-project__form input:not([type="checkbox"]):not([type="submit"]):focus,
.order-project__form textarea:focus { outline-color: var(--color-accent); background: color-mix(in srgb, var(--color-text) 6%, transparent); }

.order-project__service-picker { margin: 0; padding: 20px 19px 19px; border: 0; background: #0d0d10; }
.order-project__service-label { margin-bottom: 12px; color: var(--color-text-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.25; text-transform: uppercase; }
.order-project__service-picker .wpcf7-radio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-border); }
.order-project__service-picker .wpcf7-list-item { min-width: 0; margin: 0; background: #0d0d10; }
.order-project__service-picker .wpcf7-list-item label { position: relative; display: flex; min-height: 70px; align-items: center; padding: 14px 42px 14px 17px; cursor: pointer; }
.order-project__service-picker input[type="radio"] { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); }
.order-project__service-picker .wpcf7-list-item-label { color: var(--color-text); font-size: 14px; font-weight: 700; line-height: 1.25; transition: color 160ms ease; }
.order-project__service-picker .wpcf7-list-item label::before {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--color-text-muted);
  content: "";
  transform: translateY(-50%);
  transition: background-color 160ms ease, border-color 160ms ease;
}
.order-project__service-picker .wpcf7-list-item label::after {
  position: absolute;
  top: calc(50% - 3px);
  right: 20px;
  width: 7px;
  height: 4px;
  border-bottom: 1.5px solid var(--color-on-accent);
  border-left: 1.5px solid var(--color-on-accent);
  content: "";
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px) scale(.7);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}
.order-project__service-picker .wpcf7-list-item label:has(input[type="radio"]:checked) { background: color-mix(in srgb, var(--color-accent) 12%, #0d0d10); }
.order-project__service-picker .wpcf7-list-item label:has(input[type="radio"]:checked)::before { border-color: var(--color-accent); background: var(--color-accent); }
.order-project__service-picker .wpcf7-list-item label:has(input[type="radio"]:checked)::after { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.order-project__service-picker .wpcf7-list-item label:has(input[type="radio"]:checked) .wpcf7-list-item-label { color: var(--color-accent); }
.order-project__service-picker .wpcf7-list-item input[type="radio"]:focus-visible + .wpcf7-list-item-label { outline: 1px solid var(--color-accent); outline-offset: 5px; }
@media (hover: hover) and (pointer: fine) { .order-project__service-picker .wpcf7-list-item label:hover { background: color-mix(in srgb, var(--color-text) 4%, #0d0d10); } }

.order-project__field--file { padding: 0; }
.order-project__file-button { position: relative; display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 19px; background: var(--color-accent); color: var(--color-on-accent); cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.order-project__file-button::after { width: 12px; height: 12px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; content: ""; transform: rotate(45deg); transition: transform 160ms var(--ease-out); }
.order-project__file-button input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.order-project__file-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.order-project__file-hint { display: block; margin-top: 4px; color: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .order-project__file-button:hover { background: var(--color-accent-hover); } .order-project__file-button:hover::after { transform: translateX(4px) rotate(45deg); } }
.order-project__file-button:has(input[type="file"]:focus-visible) { outline: 2px solid var(--color-on-accent); outline-offset: -3px; }

.order-project__field--consent { padding: 0; }
.order-project__field--consent .wpcf7-list-item { margin: 0; }
.order-project__field--consent .wpcf7-list-item label { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); min-height: 72px; align-items: stretch; cursor: pointer; }
.order-project__field--consent input[type="checkbox"] { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); }
.order-project__field--consent .wpcf7-list-item-label { display: flex; grid-column: 2; min-width: 0; align-items: center; padding: 13px 19px; border-left: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 12px; font-weight: 500; line-height: 1.45; white-space: nowrap; }
.order-project__field--consent .wpcf7-list-item label::before {
  position: absolute;
  top: 50%;
  left: 21px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-text-muted);
  content: "";
  transform: translateY(-50%);
  transition: background-color 160ms ease, border-color 160ms ease;
}
.order-project__field--consent .wpcf7-list-item label::after {
  position: absolute;
  top: calc(50% - 3px);
  left: 25px;
  width: 7px;
  height: 4px;
  border-bottom: 1.5px solid var(--color-on-accent);
  border-left: 1.5px solid var(--color-on-accent);
  content: "";
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px) scale(.7);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}
.order-project__field--consent .wpcf7-list-item label:has(input[type="checkbox"]:checked)::before { border-color: var(--color-accent); background: var(--color-accent); }
.order-project__field--consent .wpcf7-list-item label:has(input[type="checkbox"]:checked)::after { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.order-project__field--consent input[type="checkbox"]:focus-visible + .wpcf7-list-item-label { outline: 1px solid var(--color-accent); outline-offset: -1px; }
.order-project__field--consent .wpcf7-list-item-label a { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 3px; }
.order-project__field--consent .wpcf7-list-item-label a { margin-left: .3em; }

.order-project__form > .wpcf7 > form > p:has(.order-project__submit),
.order-project__form > .wpcf7 > form > p:has(.wpcf7-submit) { position: relative; line-height: 0; }
.order-project__form input.order-project__submit,
.order-project__form input.wpcf7-submit {
  display: block;
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 0;
  background: #0d0d10;
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.order-project__form input.order-project__submit:hover,
.order-project__form input.wpcf7-submit:hover { background: var(--color-accent); color: var(--color-on-accent); transform: translateY(-1px); }
.order-project__form input.order-project__submit:active,
.order-project__form input.wpcf7-submit:active { transform: scale(.99); }
.order-project__form .wpcf7-spinner { display: none !important; }
.order-project__form .wpcf7-not-valid-tip { display: none !important; }
.order-project__form .wpcf7-response-output { margin: 1px 0 0 !important; padding: 13px 19px !important; border: 1px solid var(--color-accent) !important; background: #0d0d10; color: var(--color-text-muted); font-size: 13px; line-height: 1.45; }

.order-project__form input.wpcf7-not-valid,
.order-project__form select.wpcf7-not-valid,
.order-project__form textarea.wpcf7-not-valid {
  outline: 1px solid #ff4d4f;
  outline-offset: -1px;
  background: color-mix(in srgb, #ff4d4f 12%, transparent);
}
.order-project__service-picker .wpcf7-radio.wpcf7-not-valid { border-color: #ff4d4f; }
.order-project__field--consent:has(.wpcf7-not-valid) { outline: 1px solid #ff4d4f; outline-offset: -1px; }

@media (max-width: 767px) {
  .order-project__hero { padding-block: 48px 64px; align-items: start; }
  .order-project__container { width: min(100% - 40px, 760px); }
  .order-project__heading { margin-bottom: 26px; }
  .order-project__heading h1 { font-size: clamp(1.55rem, 8vw, 2.25rem); }
  .order-project__form input:not([type="checkbox"]):not([type="submit"]), .order-project__form select, .order-project__form textarea { min-height: 58px; padding: 16px; }
  .order-project__form textarea { height: 136px; min-height: 136px; }
  .order-project__contact-grid input:not([type="checkbox"]):not([type="submit"]) { min-height: 72px; padding-block: 20px; }
  .order-project__form .wpcf7-form > p > label { padding-inline: 16px; }
  .order-project__contact-grid { grid-template-columns: 1fr; }
  .order-project__service-picker .wpcf7-radio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-project__service-picker { padding: 16px; }
  .order-project__service-picker .wpcf7-list-item label { min-height: 72px; padding-inline: 14px 34px; }
  .order-project__service-picker .wpcf7-list-item label::before { right: 16px; }
  .order-project__service-picker .wpcf7-list-item label::after { right: 19px; }
  .order-project__file-button { min-height: 96px; padding-inline: 16px; }
  .order-project__field--consent .wpcf7-list-item label { grid-template-columns: 54px minmax(0, 1fr); min-height: 76px; }
  .order-project__field--consent .wpcf7-list-item-label { padding-inline: 16px; font-size: 11px; white-space: normal; }
  .order-project__field--consent .wpcf7-list-item label::before { left: 19px; }
  .order-project__field--consent .wpcf7-list-item label::after { left: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .order-project__form *, .order-project__form *::before, .order-project__form *::after { transition-duration: .01ms !important; }
}

.order-project-success { min-height: calc(100svh - 72px); }
.order-project-success__hero { display: grid; min-height: calc(100svh - 72px); align-items: center; padding-block: clamp(88px, 12vw, 168px); }
.order-project-success__container { display: grid; width: min(100% - 128px, 920px); grid-template-columns: minmax(84px, .34fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 74px); align-items: stretch; }
.order-project-success__marker { position: relative; display: flex; min-height: 100%; justify-content: center; }
.order-project-success__marker::before { width: 1px; background: var(--color-border); content: ''; }
.order-project-success__marker span { position: absolute; width: 12px; height: 12px; margin-top: clamp(74px, 9vw, 112px); border: 2px solid var(--color-accent); border-radius: 50%; background: var(--color-bg); box-shadow: 0 0 0 8px var(--color-bg); }
.order-project-success__content { max-width: 650px; }
.order-project-success__content h1 { margin: 0; font-size: clamp(2.7rem, 6.2vw, 6rem); letter-spacing: -.045em; line-height: .9; text-wrap: balance; }
.order-project-success__content p { max-width: 43ch; margin: clamp(24px, 3vw, 36px) 0 0; color: var(--color-text-muted); font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.55; }
.order-project-success__action { display: inline-flex; min-height: 72px; align-items: center; gap: 44px; margin-top: clamp(34px, 4vw, 52px); padding-inline: 34px; border-radius: 0; color: #fff; background: var(--color-accent); font-size: 16px; }
.order-project-success__action span { font-size: 22px; line-height: 1; transition: transform 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .order-project-success__action:hover { background: var(--color-accent-hover); } .order-project-success__action:hover span { transform: translateX(5px); } }
@media (max-width: 767px) {
  .order-project-success__hero { min-height: calc(100svh - 64px); padding-block: 72px; align-items: start; }
  .order-project-success__container { width: min(100% - 40px, 920px); grid-template-columns: 24px minmax(0, 1fr); gap: 20px; }
  .order-project-success__marker span { width: 10px; height: 10px; margin-top: 62px; box-shadow: 0 0 0 6px var(--color-bg); }
  .order-project-success__content h1 { font-size: clamp(2.6rem, 14vw, 4.4rem); }
  .order-project-success__content p { margin-top: 22px; font-size: 1rem; }
  .order-project-success__action { width: 100%; min-height: 64px; justify-content: space-between; padding-inline: 24px; gap: 28px; margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { .order-project-success__action span { transition-duration: .01ms; } }
