/* ============================================================
   Форма заявки на замену сцепления — лаймовая тема #a3e635
   Файл обслуживает только /form.php
   ============================================================ */

.clutch-page {
  background: var(--bg, #f4f6f9);
  padding: 40px 0 72px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.clutch-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Заголовок ---------- */
.clutch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid #e3e8ef;
}

.clutch-head__left { flex: 1 1 auto; min-width: 0; }
.clutch-head__right { flex: 0 0 auto; }

.clutch-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #65a30d;
  margin-bottom: 10px;
}

.clutch-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #101820;
  margin: 0 0 12px;
}

.clutch-subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: #69788a;
  margin: 0;
  max-width: 720px;
}

.clutch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #1b2735;
  color: #d1fae5;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- Плашка «Параметры» ---------- */
.clutch-prefill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: #101820;
  border-radius: 12px;
  margin-bottom: 28px;
  color: #cfd9e4;
}

.clutch-prefill__left { min-width: 0; flex: 1 1 auto; }

.clutch-prefill__label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c8a9b;
  margin-bottom: 4px;
}

.clutch-prefill__text { font-size: 14px; line-height: 1.5; color: #e7edf4; }
.clutch-prefill__text strong { color: #ffffff; font-weight: 600; }
.clutch-prefill__sep { color: #4b5563; margin: 0 6px; }

.clutch-prefill__price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #a3e635;
  font-weight: 700;
}

.clutch-prefill__mark {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a3e635;
}

/* ---------- Сообщения ---------- */
.clutch-message {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.clutch-message--ok {
  background: #ecfccb;
  border: 1px solid #bef264;
  color: #3f6212;
}

.clutch-message--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.clutch-message[hidden] { display: none; }

/* ---------- Форма ---------- */
.clutch-form {
  background: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.06);
}

.clutch-grid { display: grid; gap: 20px; }
.clutch-grid--2 { grid-template-columns: 1fr 1fr; margin-bottom: 20px; }

.clutch-field { margin-bottom: 20px; }
.clutch-field:last-of-type { margin-bottom: 24px; }

.clutch-label {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 8px;
}

.clutch-label .req { color: #dc2626; }

.clutch-input-wrap { position: relative; }

.clutch-form input[type="text"],
.clutch-form input[type="tel"],
.clutch-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 44px 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #101820;
  background: #f9fafb;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.clutch-form textarea {
  padding: 14px 16px;
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.clutch-form input[type="text"]:focus,
.clutch-form input[type="tel"]:focus,
.clutch-form textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #a3e635;
  box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.18);
}

.clutch-form input::placeholder,
.clutch-form textarea::placeholder { color: #9ca3af; }

.clutch-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clutch-form input:focus + .clutch-input-icon { color: #65a30d; }

.clutch-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* ---------- Цель обращения (чекбоксы) ---------- */
.clutch-goals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.clutch-goal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #101820;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  user-select: none;
}

.clutch-goal:hover { border-color: #cbd5e1; background: #ffffff; }

.clutch-goal input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: #a3e635;
  cursor: pointer;
  margin: 0;
}

.clutch-goal input[type="checkbox"]:checked ~ span { font-weight: 600; }

.clutch-goal:has(input:checked) {
  border-color: #a3e635;
  background: #f7fee7;
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.15);
}

/* ---------- Согласие ---------- */
.clutch-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
  cursor: pointer;
  border-top: 1px solid #e3e8ef;
  margin-top: 8px;
}

.clutch-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #a3e635;
  cursor: pointer;
}

.clutch-consent a { color: #65a30d; text-decoration: underline; }
.clutch-consent a:hover { color: #3f6212; }

/* ---------- Кнопка ---------- */
.clutch-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: #a3e635;
  color: #101820;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.clutch-submit:hover:not(:disabled) { background: #bef264; }
.clutch-submit:active:not(:disabled) { transform: translateY(1px); }
.clutch-submit:disabled { opacity: 0.75; cursor: wait; }

.clutch-submit__icon { flex: 0 0 auto; }
.clutch-submit.is-loading .clutch-submit__icon { display: none; }

.clutch-submit__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(16, 24, 32, 0.25);
  border-top-color: #101820;
  border-radius: 50%;
  animation: clutch-spin 0.7s linear infinite;
}

.clutch-submit.is-loading .clutch-submit__spinner { display: inline-block; }

@keyframes clutch-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .clutch-goals { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .clutch-head { flex-direction: column; }
  .clutch-title { font-size: 26px; }
  .clutch-prefill { flex-direction: column; align-items: flex-start; }
  .clutch-form { padding: 22px; border-radius: 12px; }
  .clutch-grid--2 { grid-template-columns: 1fr; }
  .clutch-submit { padding: 16px 20px; font-size: 14px; }
}
