.page-contact main .breadcrumb {
  margin-inline-start: clamp(20px, 3.2vw, 40px);
  padding-inline-start: 0;
  border-radius: 2.5px;
  color: #9b9b9b;
}

.page-contact .breadcrumb__link { color: var(--brand); text-decoration: none; }
.page-contact .breadcrumb__link:hover { color: var(--brand-deep); text-decoration: underline; }

.contact-form {
  --field-edge: #b6c8d7;
  --field-error: #c91535;
  --field-valid: #2e8b57;
  padding-block: clamp(3.5px, .9vw, 10px) 50px;
}

.contact-form > .container { width: min(1200px, 100% - 32px); padding: 0; }
.contact-form .form { width: min(920px, 100% - 20px); color: var(--brand); }
.contact-form .input__row { display: flex; flex-direction: column; margin-block: 0 20px; }

.contact-form .input__label {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-block-end: 8px;
  padding: 4px 5px;
  border-radius: 3px;
  background: var(--brand);
  color: white;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  text-align: start;
  text-transform: uppercase;
}

.contact-form .input__label span { color: inherit; }
.contact-form .form :is(.input__data, .textarea) {
  min-height: 0;
  padding: 12px 16px;
  border: 2px solid var(--surface);
  border-radius: 10px;
  background: white;
  color: #111;
  box-shadow: 0 4px 12px rgb(44 97 150 / 4%);
  font: inherit;
  font-size: 16px;
  line-height: 1.15;
  transition: border-color .2s, box-shadow .2s;
}

.contact-form .form :is(.input__data, .textarea)::placeholder {
  color: var(--brand);
  font-size: clamp(9.5px, 3.2vw, 14.2px);
  line-height: 1.42;
  opacity: 1;
}

.contact-form .form .textarea { min-height: 320px; padding: 16px; resize: vertical; }

.contact-form .form :is(.input__data, .textarea, .z-contact-select__button):focus-visible,
.contact-form .z-contact-select__option:focus-visible {
  outline: 3px solid #ffcf33;
  outline-offset: 2.4px;
  box-shadow: 0 0 0 5.7px rgb(255 255 255 / 90%), 0 0 0 8.7px var(--brand);
}

.contact-form .form :is(.input__data, .textarea).is-invalid {
  border-color: var(--field-error);
  background: #fff7f8;
  box-shadow: 0 0 0 3.5px rgb(201 21 53 / 14%), 0 8px 20px rgb(201 21 53 / 8%);
}

.contact-form .form :is(.input__data, .textarea).is-valid {
  border-color: var(--field-valid);
  background: #fbfffd;
  box-shadow: 0 0 0 2.4px rgb(46 139 87 / 10%), 0 6px 16px rgb(44 97 150 / 6%);
}

.contact-form .form-feedback {
  margin: 6px 0 0;
  margin-inline-start: 10px;
  color: #ff005c;
  font-size: 10px;
  text-transform: uppercase;
}

.contact-form .contact-optional-grid { margin: 2px 0 22px; }
.contact-form .contact-optional-field { margin-block: 0; }
.contact-form .input-checkbox__row { margin: 0 0 4px; color: var(--brand); font-size: 14px; }
.contact-form .input__data-check {
  width: 24px;
  height: 24px;
  margin: 0;
  margin-inline-end: 8px;
  vertical-align: -5px;
}

.contact-form .input-checkbox__row.is-invalid {
  margin: 3.5px 0 5.5px;
  padding: 7px 9px;
  border: 2px solid var(--field-error);
  border-radius: 8px;
  background: #fff1f3;
  color: #731225;
  box-shadow: 0 0 0 2.2px rgb(201 21 53 / 9%);
}

.contact-form .divider {
  height: 1px;
  margin: 16px auto 20px;
  background: var(--surface);
}

.contact-form .contact-message-help {
  margin-block-end: 12px;
  padding: 15.5px 17.5px;
  padding-inline-start: 19.5px;
  border: 2px solid var(--field-edge);
  border-inline-start: 8px solid var(--brand);
  border-radius: 10px;
  background: linear-gradient(var(--surface), #fbfdff);
  color: var(--brand-deep);
  box-shadow: 0 9px 25px rgb(44 97 150 / 11%);
  font-size: 14.2px;
  line-height: 1.48;
}

.contact-form .contact-message-help p { margin-block: 0 6.5px; }
.contact-form .contact-message-help p:first-child { color: var(--brand); font-weight: 800; }
.contact-form .contact-message-help ul { margin-block: 0 7px; padding-inline-start: 16.5px; }
.contact-form .contact-message-help li { margin-block: 2.2px; }
.contact-form .contact-message-note { color: var(--brand); font-size: 12.2px; }

.contact-form .message-rule {
  margin-block-start: 9px;
  padding: 10px 12px;
  border: 2px solid var(--field-error);
  border-radius: 9px;
  background: #fff1f3;
  color: #8d0f24;
  box-shadow: 0 0 0 2.8px rgb(201 21 53 / 10%);
  font-size: 13.4px;
  font-weight: 800;
  line-height: 1.35;
}

.contact-form .message-rule.is-ok {
  border-color: var(--field-valid);
  background: #f0fff6;
  color: #145c34;
  box-shadow: none;
}

.contact-form .z-contact-select { position: relative; }
.contact-form .contact-intent-row.is-select-open { position: relative; z-index: 10; }
.contact-form .z-contact-select__button,
.contact-form .z-contact-select__option {
  display: block;
  width: 100%;
  background: white;
  color: #111;
  font: inherit;
  line-height: 1.25;
  text-align: start;
  cursor: pointer;
}

.contact-form .z-contact-select__button {
  position: relative;
  min-height: 58px;
  padding: 11.5px 17.5px;
  padding-inline-end: 44px;
  border: 2px solid var(--field-edge);
  border-radius: 10px;
  box-shadow: 0 5.5px 16px rgb(44 97 150 / 12%);
  font-size: 11.8px;
}

.contact-form .z-contact-select__button::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 16px;
  width: 7.2px;
  height: 7.2px;
  border: solid var(--brand);
  border-width: 0 1.4px 1.4px 0;
  content: "";
  transform: translateY(-62%) rotate(45deg);
  transition: transform .18s ease;
}

.contact-form .z-contact-select.is-open .z-contact-select__button {
  border-color: #ffc928;
  box-shadow: 0 0 0 2.4px rgb(255 201 40 / 32%), 0 6.5px 18px rgb(44 97 150 / 16%);
}

.contact-form .z-contact-select.is-open .z-contact-select__button::after { transform: translateY(-25%) rotate(225deg); }
.contact-form .z-contact-select__button.is-invalid { border-color: #e73356; }

.contact-form .z-contact-select__list {
  position: absolute;
  inset-block-start: calc(100% + 5.5px);
  inset-inline: 0;
  max-height: min(300px, 100vh - 80px);
  padding: 5.5px;
  overflow: auto;
  border: 1px solid var(--field-edge);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px rgb(35 79 124 / 22%);
}

.contact-form .z-contact-select__option {
  min-height: 44px;
  padding: 9px 11.5px;
  border: 0;
  border-radius: 5.5px;
  font-size: 11.2px;
}

.contact-form .z-contact-select__option:is(:hover, :focus, .is-selected) {
  background: var(--surface);
  color: var(--brand);
}

.contact-form .z-contact-select__option.is-selected { font-weight: 800; }
.contact-form .cf-turnstile { min-height: 73.2px; }
.contact-form .cf-turnstile iframe { max-width: 100%; }

.contact-form #submit-button {
  padding: 13px 26px;
  border: 1px solid rgb(44 97 150 / 90%);
  border-radius: 999px;
  background:
    radial-gradient(ellipse 70% 40% at 30% 0%, rgb(255 255 255 / 36%), transparent),
    linear-gradient(#3f86d0, var(--brand) 30%, #1e5f9b);
  color: white;
  box-shadow: inset 0 1px rgb(255 255 255 / 58%), inset 0 -2px rgb(0 0 0 / 16%),
    0 3.6px .5px rgb(21 82 132 / 42%), 0 8.2px 14.5px rgb(44 97 150 / 28%);
  text-shadow: 0 1px rgb(0 0 0 / 18%);
}

.contact-form #submit-button:disabled { opacity: .9; cursor: default; }

.page-contact #loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgb(255 255 255 / 80%);
}

.page-contact .loader-wrap {
  position: relative;
  inset-block-start: 50%;
  width: 131px;
  height: 25px;
  margin-inline: auto;
  overflow: hidden;
  background: white;
  clip-path: url("#myClip");
}

.page-contact .loader-wrap::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: linear-gradient(0deg, var(--brand) 54%, rgb(44 97 150 / 53%) 83%, var(--brand) 96%);
  content: "";
  animation: contact-loader 1.5s infinite alternate-reverse;
}

@keyframes contact-loader { from { width: 100%; } to { width: 0; } }

.contact-form #alert { display: none; }
.contact-form #alert:is(.contact-validation-alert, .contact-info-alert) {
  display: block;
  margin: 20px 0 16px;
  padding: 21px 23px;
  border: 1px solid var(--field-edge);
  border-radius: 11px;
  background: var(--surface);
  color: var(--brand);
  text-align: start;
}

.contact-form #alert.contact-validation-alert {
  border: 3px solid var(--field-error);
  border-inline-start-width: 9px;
  background: #fff0f2;
  color: #731225;
  box-shadow: 0 10px 30px rgb(201 21 53 / 18%), 0 0 0 3.2px rgb(201 21 53 / 8%);
}

.contact-form #alert .feedback-msg-subtitle { margin: 0; font-size: 18.5px; font-weight: 900; line-height: 1.25; }
.contact-validation-list { margin: 10px 0 0; padding-inline-start: 22px; font-size: 14.5px; font-weight: 700; line-height: 1.55; }
.contact-validation-list li + li { margin-block-start: 3.5px; }
.contact-form #alert p:last-child { margin-block-end: 0; }

.contact-result-open { overflow: hidden; }
.contact-form #alert.contact-response-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 2147482000;
  display: block;
  width: min(840px, 100vw - 30px);
  max-height: calc(100dvh - 30px);
  padding: clamp(38px, 4vw, 50px) clamp(18px, 4vw, 44px) 28px;
  overflow: auto;
  border: 1px solid rgb(21 87 36 / 22%);
  border-radius: 18px;
  background: linear-gradient(145deg, #d9f9e4, #edfff3 54%, #d3f5de);
  color: #155724;
  box-shadow: 0 30px 90px rgb(0 34 20 / 32%), 0 0 0 9999px rgb(4 22 18 / 42%);
  text-align: center;
  transform: translate(-50%, -50%);
  animation: contact-confirmation-enter .12s cubic-bezier(.18, .84, .26, 1) both;
}

.contact-response-close, .contact-response-timer {
  position: absolute;
  border: 1px solid rgb(21 87 36 / 22%);
  border-radius: 99px;
  background: rgb(255 255 255 / 62%);
  color: #155724;
  font-weight: 900;
}

.contact-response-close { inset: 12.5px 12.5px auto auto; width: 43px; height: 43px; font-size: 29px; line-height: 1; cursor: pointer; }
.contact-response-timer { inset: 15.5px auto auto 13.5px; min-height: 32px; padding: 5.2px 10px; font-size: 12px; line-height: 1.5; }
.contact-response-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 50px;
  margin-block-end: 8.5px;
  color: #a8ea6d;
  font-size: 50px;
  font-weight: 950;
  line-height: 1;
  -webkit-text-stroke: 2.6px #071408;
  paint-order: stroke fill;
  transform: rotate(-6deg);
  animation: contact-check-enter .16s cubic-bezier(.18, .84, .26, 1) both,
    contact-check-pulse 2.4s ease-in-out .42s infinite;
}
.contact-response-modal .feedback-msg-title { margin: 8.5px auto; font-size: clamp(23.5px, 2.75vw, 37px); line-height: 1.12; font-weight: 900; }
.contact-form #alert.contact-response-modal .feedback-msg-subtitle { margin: 0 auto 14px; font-weight: 500; }
.contact-response-modal .nb { width: min(680px, 100%); margin: 0 auto 18px; padding: 15.5px 18.5px; border: 1px solid rgb(21 87 36 / 14%); border-radius: 12px; background: rgb(255 255 255 / 42%); text-align: start; }
.contact-response-modal .feedback-msg-list { padding-inline-start: 17px; }
.contact-response-modal .feedback-msg-item { margin: 3.6px 0; padding: 3.4px 5.5px; border: 2px solid transparent; border-radius: 11px; font-size: clamp(12.2px, 1vw, 15.6px); font-weight: 850; line-height: 1.35; }
.contact-response-modal :is(.feedback-msg-p, .feedback-msg-p-last) { font-size: clamp(13.5px, 1.15vw, 17.2px); line-height: 1.36; }
.contact-response-modal .is-glowing {
  border-color: rgb(91 198 112 / 42%);
  border-radius: 11px;
  background: rgb(255 255 255 / 84%);
  box-shadow: 0 0 0 2.5px rgb(46 174 78 / 15%), 0 0 26px rgb(46 174 78 / 32%);
  text-shadow: 0 0 12px rgb(46 174 78 / 28%);
}
.contact-response-modal :is(.feedback-msg-subtitle, .feedback-msg-p, .feedback-msg-p-last).is-glowing { padding: 5px 10px; }

@keyframes contact-confirmation-enter {
  from { opacity: 0; transform: translate(-50%, -47%) scale(.985); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes contact-check-enter {
  from { opacity: 0; transform: scale(.78) rotate(-12deg); }
  to { opacity: 1; transform: scale(1) rotate(-6deg); }
}

@keyframes contact-check-pulse {
  0%, 100% { filter: drop-shadow(0 7px 10px rgb(21 87 36 / 12%)); }
  50% { filter: drop-shadow(0 9.5px 13.5px rgb(21 87 36 / 26%)); }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact .loader-wrap::after,
  .contact-form #alert.contact-response-modal,
  .contact-response-check { animation: none; }
}

@media (max-width: 700px) {
  .page-contact main .breadcrumb { min-height: 22.4px; margin-inline-start: 15.5px; }
  .contact-form { padding-block-start: 2px; }
  .contact-form .contact-optional-grid { gap: 12px; }
  .contact-form .form .textarea { min-height: 260px; }
  .contact-form .contact-message-help { padding: 12px 13px; font-size: 12.4px; }
  .contact-form .z-contact-select__button { min-height: 52px; padding-block: 10px; padding-inline: 12.5px 38px; font-size: 10.5px; }
  .contact-form .z-contact-select__list { max-height: min(240px, 100vh - 60px); }
  .contact-form .z-contact-select__option { min-height: 40px; font-size: 10.2px; }
  .contact-form #alert.contact-validation-alert { padding: 16px 15px; }
  .contact-form #alert.contact-response-modal { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); padding: 50px 12px 17px; border-radius: 12px; }
  .contact-response-modal .feedback-msg-title { font-size: 20.5px; }
  .contact-form #alert.contact-response-modal .feedback-msg-subtitle { font-size: 14.2px; }
}
