/* PRIVOZ MODX — request section; original GitHub styles + badge restoration */
#home-request {
  --orange: #ff681e;
  --orange-dark: #e95612;
  --header-height: 84px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
#home-request, #home-request * { box-sizing: border-box; }
#home-request input, #home-request button, #home-request textarea { font-family: inherit; }

/* ======================================================
   REQUEST / CONTACT FORM
====================================================== */

.request-section {
  position: relative;

  padding: 110px 0 120px;

  overflow: hidden;

  color: #ffffff;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 104, 30, 0.18) 0%,
      rgba(255, 104, 30, 0) 30%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(255, 104, 30, 0.08) 0%,
      rgba(255, 104, 30, 0) 28%
    ),
    linear-gradient(135deg, #252525 0%, #191919 60%, #101010 100%);
}

.request-container {
  width: calc(100% - 100px);
  max-width: 1450px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(320px, 0.75fr)
    minmax(0, 1.25fr);

  align-items: start;

  gap: 90px;
}

/* ======================================================
   CONTENT
====================================================== */

.request-content {
  position: sticky;

  top: calc(var(--header-height) + 45px);

  max-width: 520px;
}

.request-label {
  display: inline-block;

  margin-bottom: 24px;

  color: var(--orange);

  font-size: 12px;
  font-weight: 600;

  line-height: 1;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.request-title {
  margin: 0 0 30px;

  color: #ffffff;

  font-size: clamp(46px, 5vw, 72px);
  font-weight: 500;

  line-height: 1.05;

  letter-spacing: -0.05em;
}

.request-text {
  max-width: 500px;

  color: rgba(255, 255, 255, 0.68);

  font-size: 17px;

  line-height: 1.72;
}

.request-text p {
  margin: 0 0 20px;
}

.request-text p:last-child {
  margin-bottom: 0;
}

/* ======================================================
   FORM
====================================================== */

.request-form {
  position: relative;

  padding: 34px;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(12px);

  clip-path: polygon(
    24px 0,
    100% 0,
    100% calc(100% - 24px),
    calc(100% - 24px) 100%,
    0 100%,
    0 24px
  );
}

.request-form-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;
}

/* ======================================================
   FIELD
====================================================== */

.request-field {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.request-field-full {
  grid-column: 1 / -1;
}

.request-field label {
  color: rgba(255, 255, 255, 0.88);

  font-size: 13px;
  font-weight: 600;
}

.request-field label span {
  margin-left: 5px;

  color: rgba(255, 255, 255, 0.4);

  font-size: 11px;
  font-weight: 400;
}

.request-field input,
.request-field textarea {
  width: 100%;

  border: 1px solid rgba(255, 255, 255, 0.13);
  outline: 0;

  background: rgba(255, 255, 255, 0.07);

  color: #ffffff;

  font-family: "Plus Jakarta Sans", sans-serif;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.request-field input {
  height: 58px;

  padding: 0 18px;
}

.request-field textarea {
  min-height: 140px;

  padding: 17px 18px;

  resize: vertical;
}

.request-field input::placeholder,
.request-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.36);

  opacity: 1;
}

.request-field input:focus,
.request-field textarea:focus {
  border-color: rgba(255, 104, 30, 0.72);

  background: rgba(255, 255, 255, 0.09);

  box-shadow: 0 0 0 3px rgba(255, 104, 30, 0.08);
}

/* ======================================================
   FORM BOTTOM
====================================================== */

.request-form-bottom {
  margin-top: 26px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.request-form-note {
  max-width: 360px;

  margin: 0;

  color: rgba(255, 255, 255, 0.38);

  font-size: 11px;

  line-height: 1.5;
}

/* ======================================================
   SUBMIT
====================================================== */

.request-submit {
  min-height: 62px;

  padding: 0 30px 0 34px;

  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 20px;

  border: 0;

  background: var(--orange);

  color: #ffffff;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  clip-path: polygon(0 0, 88% 0, 100% 100%, 12% 100%);

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.request-submit:hover {
  background: var(--orange-dark);

  transform: translateY(-2px);

  box-shadow: 0 16px 35px rgba(255, 104, 30, 0.2);
}

.request-submit svg {
  width: 18px;
  height: 18px;

  flex: 0 0 auto;
}

.request-submit path {
  fill: none;

  stroke: currentColor;
  stroke-width: 1.5;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ======================================================
   DECORATIVE LINE
====================================================== */

.request-section::before {
  content: "";

  position: absolute;

  width: 420px;
  height: 1px;

  top: 85px;
  right: -70px;

  transform: rotate(-28deg);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 104, 30, 0.35),
    transparent
  );

  pointer-events: none;
}

/* ======================================================
   TABLET
====================================================== */

@media (max-width: 1120px) {
  .request-section {
    padding: 90px 0 100px;
  }

  .request-container {
    width: calc(100% - 50px);

    grid-template-columns: 1fr;

    gap: 50px;
  }

  .request-content {
    position: static;

    max-width: 700px;
  }
}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 768px) {
  .request-section {
    padding: 70px 0 80px;
  }

  .request-container {
    width: calc(100% - 32px);

    gap: 36px;
  }

  .request-label {
    margin-bottom: 18px;

    font-size: 10px;
  }

  .request-title {
    margin-bottom: 22px;

    font-size: clamp(38px, 11vw, 52px);
  }

  .request-text {
    font-size: 16px;

    line-height: 1.65;
  }

  .request-form {
    padding: 24px;
  }

  .request-form-grid {
    grid-template-columns: 1fr;
  }

  .request-field-full {
    grid-column: auto;
  }

  .request-form-bottom {
    flex-direction: column;
    align-items: stretch;

    gap: 20px;
  }

  .request-form-note {
    max-width: 100%;
  }

  .request-submit {
    width: 100%;

    min-height: 58px;
  }
}

/* ======================================================
   SMALL MOBILE
====================================================== */

@media (max-width: 430px) {
  .request-form {
    padding: 20px;
  }

  .request-field input {
    height: 54px;
  }

  .request-field textarea {
    min-height: 125px;
  }
}

/* Missing in previous version: shared section badge from original full style.css */
#home-request .request-label {
  min-height: 35px;
  margin-bottom: 24px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid rgba(255, 104, 30, 0.18);
  background: rgba(255, 104, 30, 0.08);
  color: #ff681e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
}
#home-request .request-status {
  margin: 14px 0 0;
  color: #ffbea1;
  font-size: 13px;
  line-height: 1.5;
}
#home-request .request-status:empty { display: none; }
@media (max-width: 1120px) { #home-request { --header-height: 72px; } }
@media (max-width: 600px) { #home-request { --header-height: 66px; } }


/* Request form: standalone eForm validation and anti-spam */
#home-request .request-errors { margin:0 0 18px; padding:12px 16px; color:#ffd0bb; background:rgba(255,104,30,.10); border:1px solid rgba(255,104,30,.28); font-size:14px; line-height:1.5; }
#home-request .request-errors:empty { display:none; }
#home-request .request-consent { display:flex; align-items:flex-start; gap:12px; color:rgba(255,255,255,.72); font-size:13px; line-height:1.55; grid-column:1/-1; }
#home-request .request-consent input { width:18px; height:18px; min-height:0; flex:0 0 18px; margin-top:2px; accent-color:#ff681e; }
#home-request .request-consent a { color:#fff; text-decoration:underline; }
#home-request .request-captcha { display:flex; gap:12px; align-items:center; flex-wrap:wrap; grid-column:1/-1; }
#home-request .request-captcha img { display:block; max-width:180px; height:auto; background:#fff; }
#home-request .request-captcha input { width:180px; height:48px; padding:0 14px; color:#fff; border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.07); }
#home-request .request-captcha label { color:rgba(255,255,255,.83); font-size:13px; }
#home-request .request-hp { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
#home-request .request-success { padding:36px; color:#fff; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.13); }
#home-request .request-success h3 { margin:0 0 12px; font-size:28px; font-weight:500; }
#home-request .request-success p { margin:0; color:rgba(255,255,255,.76); line-height:1.6; }
#home-request .request-submit:disabled { opacity:.65; cursor:wait; }
@media(max-width:768px){ #home-request .request-success {padding:24px;} }


/* ======================================================
   REQUEST FORM — spacing and visible errors (2026-10-29)
   Layout only: eForm and AJAX logic are unchanged.
====================================================== */

/* Move eForm validation from the form's beginning to just
   above the submit area, without moving the HTML node. */
#home-request #homeRequestForm {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
#home-request #homeRequestForm > .request-form-grid { order: 10; }
#home-request #homeRequestForm > .request-consent {
  order: 20;
  margin: 26px 0 20px;
  padding: 0 0 0 2px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.65;
}
#home-request #homeRequestForm > .request-consent input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
}
#home-request #homeRequestForm > .request-captcha {
  order: 30;
  margin: 0 0 14px;
  min-height: 78px;
}
#home-request #homeRequestForm > .request-hp { order: 35; }
#home-request #homeRequestForm > .request-validation {
  order: 40;
  margin: 14px 0 8px;
  padding: 14px 17px 14px 44px;
  position: relative;
  color: #ffe4db;
  background: rgba(202, 53, 35, 0.2);
  border: 1px solid rgba(255, 113, 84, 0.64);
  border-left: 4px solid #ff765a;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
  overflow-wrap: anywhere;
}
#home-request #homeRequestForm > .request-validation::before {
  content: "!";
  position: absolute;
  top: 14px;
  left: 15px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #ffb5a4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
#home-request #homeRequestForm > .request-validation:empty,
#home-request #homeRequestForm > .request-validation[hidden] {
  display: none !important;
}
#home-request #homeRequestForm > .request-form-bottom {
  order: 50;
  margin-top: 18px;
}
#home-request #homeRequestForm > .request-status { order: 60; }

/* Space between the consent text, the CAPTCHA and the button */
@media (max-width: 768px) {
  #home-request #homeRequestForm > .request-consent {
    margin-top: 22px;
    margin-bottom: 18px;
  }
  #home-request #homeRequestForm > .request-validation {
    padding: 12px 14px 12px 40px;
    font-size: 13px;
  }
  #home-request #homeRequestForm > .request-validation::before {
    left: 12px;
    top: 12px;
  }
}

/* Скрываем пустые сообщения */
#home-request .request-validation[hidden],
#home-request .request-validation:empty {
  display: none !important;
}

/* Оформление сообщения с ошибкой */
#home-request .request-validation:not([hidden]) {
  position: relative;
  margin: 24px 0 20px;
  padding: 15px 18px 15px 46px;

  background: rgba(255, 104, 30, 0.12);
  border: 1px solid rgba(255, 104, 30, 0.65);
  border-left: 4px solid #ff681e;

  color: #ffd4c3;
  font-size: 14px;
  line-height: 1.6;

  border-radius: 4px;
}

#home-request .request-validation:not([hidden])::before {
  content: "!";
  position: absolute;
  left: 15px;
  top: 15px;

  width: 20px;
  height: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #ff8851;
  border-radius: 50%;

  color: #ff8851;
  font-size: 13px;
  font-weight: 700;
}