/* ============================================================
   Страница заявки (/zayavka) — использует общие переменные
   и компоненты из style.css (кнопки, топбар, шрифты и т.д.)
   ============================================================ */

.zayavka-main{
  padding:120px 0 80px;
  min-height:70vh;
}

.zayavka-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--ff-mono);
  font-size:13px;
  color:var(--text-dim);
  margin-bottom:28px;
  transition:color .2s ease;
}
.zayavka-back:hover, .zayavka-back:active{ color:var(--brass-bright); }
.zayavka-back svg{ width:15px; height:15px; }

.zayavka-head{
  max-width:600px;
  margin-bottom:40px;
}
.zayavka-head p{
  color:var(--text-dim);
  margin-top:14px;
  font-size:16px;
}

.zayavka-card{
  max-width:640px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-l);
  padding:34px;
  box-shadow:var(--shadow);
}

.field-group{
  margin-bottom:22px;
  position:relative;
}
.field-group:last-of-type{ margin-bottom:0; }

.field-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:22px;
}
.field-row .field-group{
  margin-bottom:0;
}

.field-label{
  display:flex;
  align-items:baseline;
  gap:6px;
  font-family:var(--ff-mono);
  font-size:12.5px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--text-dim);
  margin-bottom:8px;
}
.field-label .optional{
  color:var(--text-faint);
  text-transform:none;
  letter-spacing:0;
  font-size:12px;
}
.field-label .required-mark{
  color:var(--brass-bright);
}

.field-input,
.field-textarea{
  width:100%;
  background:var(--bg-soft);
  border:1px solid var(--line);
  border-radius:var(--radius-s);
  padding:13px 16px;
  color:var(--text);
  font-family:var(--ff-body);
  font-size:15px;
  transition:border-color .2s ease, background .2s ease;
}
.field-input::placeholder,
.field-textarea::placeholder{
  color:var(--text-faint);
}
.field-input:focus,
.field-textarea:focus{
  outline:none;
  border-color:var(--brass-dim);
  background:var(--surface-2);
}
.field-input:invalid:not(:placeholder-shown){
  border-color:var(--danger);
}
.field-textarea{
  resize:vertical;
  min-height:100px;
  line-height:1.5;
}

/* Поле-«селект» (марка/модель) со стрелочкой в стиле выпадающего списка */
.select-field{
  position:relative;
}
.select-field .field-input{
  cursor:pointer;
  padding-right:42px;
}
.select-chevron{
  position:absolute;
  top:50%;
  right:14px;
  width:18px;
  height:18px;
  transform:translateY(-50%);
  color:var(--text-faint);
  pointer-events:none;
  transition:transform .2s ease, color .2s ease;
}
.select-field .field-input:focus + .select-chevron{
  color:var(--brass-bright);
  transform:translateY(-50%) rotate(180deg);
}

/* Автодополнение */
.autocomplete-list{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  margin-top:4px;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:var(--radius-s);
  max-height:260px;
  overflow-y:auto;
  z-index:20;
  display:none;
  box-shadow:var(--shadow);
}
.autocomplete-list.open{ display:block; }
.autocomplete-list li{
  display:flex;
  align-items:center;
  gap:13px;
  padding:9px 16px;
  font-size:14.5px;
  color:var(--text);
  cursor:pointer;
  transition:background .15s ease;
}
.autocomplete-list li:hover,
.autocomplete-list li.active{
  background:rgba(198,162,80,.14);
  color:var(--brass-bright);
}
.brand-badge{
  flex-shrink:0;
  width:40px;
  height:40px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--ff-display);
  font-size:13px;
  font-weight:600;
  letter-spacing:.01em;
  color:#14161a;
  background:var(--brass-bright);
  overflow:hidden;
}
.brand-logo-chip{
  background:none;
  padding:6px;
  color:var(--text-dim);
  transition:color .15s ease;
}
.brand-logo-chip img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.brand-logo-chip svg{
  width:100%;
  height:100%;
  display:block;
  fill:currentColor;
}
.autocomplete-list li:hover .brand-logo-chip,
.autocomplete-list li.active .brand-logo-chip{
  color:var(--brass-bright);
}
.autocomplete-list li + li{
  border-top:1px solid var(--line-soft);
}

.field-hint{
  margin-top:6px;
  font-size:12.5px;
  color:var(--text-faint);
}

.zayavka-submit{
  margin-top:30px;
}

.zayavka-note{
  margin-top:14px;
  font-size:13px;
  color:var(--text-faint);
  line-height:1.5;
}

.form-sent-note{
  display:none;
  margin-top:18px;
  padding:14px 16px;
  background:rgba(90,171,116,.12);
  border:1px solid rgba(90,171,116,.35);
  border-radius:var(--radius-s);
  color:#8fdca9;
  font-size:14px;
}
.form-error-note{
  background:rgba(164,85,63,.12);
  border-color:rgba(164,85,63,.4);
  color:var(--danger-bright);
}

@media (max-width:640px){
  .zayavka-main{ padding:96px 0 60px; }
  .zayavka-card{ padding:24px 20px; }
  .field-row{ grid-template-columns:1fr; gap:22px; margin-bottom:22px; }
}

/* Honeypot-поле — скрыто от людей (не через display:none, чтобы простые боты,
   игнорирующие такие свойства, всё равно его не видели, но некоторые примитивные
   скрипты, которые НЕ читают CSS вообще, всё равно его заполнят). */
.honeypot-field{
  position:absolute;
  left:-9999px;
  top:-9999px;
  height:0;
  width:0;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
}

.attach-trigger{
  justify-content:flex-start;
  gap:10px;
}
.attach-trigger svg{ width:18px; height:18px; flex-shrink:0; }

.attach-list{
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.attach-item{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--bg-soft);
  border:1px solid var(--line);
  border-radius:var(--radius-s);
  padding:9px 12px;
}
.attach-item-name{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13.5px;
  color:var(--text);
}
.attach-item-size{
  flex-shrink:0;
  font-family:var(--ff-mono);
  font-size:11.5px;
  color:var(--text-faint);
}
.attach-item-remove{
  flex-shrink:0;
  width:24px;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:50%;
  background:transparent;
  color:var(--text-faint);
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.attach-item-remove:hover{
  background:rgba(164,85,63,.15);
  color:var(--danger-bright);
}
.attach-item-remove svg{ width:14px; height:14px; }

.attach-error{
  margin-top:8px;
  font-size:12.5px;
  color:var(--danger-bright);
}

.consent-field{ margin-bottom:0; }
.consent-label{
  display:flex;
  align-items:flex-start;
  gap:10px;
  cursor:pointer;
  font-size:13px;
  line-height:1.5;
  color:var(--text-dim);
}
.consent-label input[type="checkbox"]{
  flex-shrink:0;
  width:18px;
  height:18px;
  margin-top:1px;
  accent-color:var(--brass);
  cursor:pointer;
}

.captcha-wrap{
  margin-top:26px;
}
.captcha-hint{
  color:var(--danger-bright);
  margin-top:8px;
}

.link-brass{ color:var(--brass-bright); }

.zayavka-foot{ padding:40px 0; }
.zayavka-foot-links{ display:flex; gap:14px; flex-wrap:wrap; }

/* Текстовые страницы (политика конфиденциальности и т.п.), переиспользуют
   .zayavka-card как контейнер, но с обычным текстом вместо полей формы. */
.policy-content{
  color:var(--text-dim);
  font-size:15px;
  line-height:1.65;
}
.policy-content p{ margin:0 0 16px; }
.policy-content ul{
  margin:0 0 16px;
  padding-left:20px;
}
.policy-content li{ margin-bottom:6px; }
.policy-content h2{
  font-family:var(--ff-display);
  font-size:19px;
  text-transform:uppercase;
  letter-spacing:.01em;
  color:var(--text);
  margin:32px 0 14px;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.policy-content h2:first-child{ margin-top:0; padding-top:0; border-top:none; }
.policy-content strong{ color:var(--text); }

.field-note{
  font-size:13px;
  line-height:1.5;
  color:var(--text-dim);
  background:var(--bg-soft);
  border:1px solid var(--line);
  border-radius:var(--radius-s);
  padding:12px 14px;
  margin:-6px 0 22px;
}
