/* =====================================================================
 * KABALON V2 Lead Form — styling
 * Adapted from SpeedX form, themed with KABALON gold (#C89543) + ink (#121216)
 * ===================================================================== */

.form-section {
  background: linear-gradient(135deg, #0f1e38 0%, #1f3864 100%);
  padding: 56px 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.form-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(200, 149, 67, .18) 0%, transparent 60%);
  pointer-events: none;
}

.lead-form-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(180deg, #FBFAF6, #F4F0E5);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35), 0 4px 12px rgba(15, 30, 56, .25);
  color: #18202d;
}

.lead-form-card .form-card__head .eyebrow {
  background: linear-gradient(180deg, #ECD08C, #C89543);
  color: #121216;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 16px;
}
.lead-form-card .form-card__head h2 {
  font-size: 1.4rem;
  line-height: 1.2;
  text-align: center;
  color: #0f1e38;
  margin-bottom: 8px;
  font-weight: 800;
}
.lead-form-card .form-card__note {
  font-size: 14px;
  text-align: center;
  color: #4A5568;
  margin-bottom: 22px;
  line-height: 1.55;
}

.lead-form-card .form-field { margin-bottom: 14px; position: relative; }
.lead-form-card .form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #18202d;
}
.lead-form-card .form-field input,
.lead-form-card .form-field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid #d6d2c8;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  font-family: inherit;
  color: #18202d;
  transition: border-color .22s, box-shadow .22s, background .22s;
  -webkit-appearance: none;
  appearance: none;
}
.lead-form-card .form-field select {
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%2318202d'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 14px center;
  padding-right: 38px;
}
.lead-form-card .form-field input:focus,
.lead-form-card .form-field select:focus {
  outline: none;
  border-color: #C89543;
  box-shadow: 0 0 0 3px rgba(200, 149, 67, .22);
}
.lead-form-card .form-field:focus-within label { color: #a07526; }

/* Use-case chips: 6 categories for KABALON kitchen sinks */
.lf-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lf-chip {
  position: relative;
  cursor: pointer;
  font-size: 13px;
  padding: 12px 10px;
  border: 1.5px solid #d6d2c8;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  color: #18202d;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  min-height: 48px;
  transition: all .15s ease;
}
.lf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.lf-chip:hover { border-color: #C89543; }
.lf-chip:has(input:checked) {
  background: linear-gradient(180deg, #ECD08C, #C89543);
  border-color: #C89543;
  color: #121216;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(200, 149, 67, .35);
}

/* Submit button — KABALON orange CTA */
.lead-form-card .lf-submit {
  width: 100%;
  height: 54px;
  margin-top: 8px;
  background: var(--orange, #ea580c);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(234, 88, 12, .32);
  transition: transform .2s, box-shadow .2s, background .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lead-form-card .lf-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(234, 88, 12, .42);
  background: #c2410c;
}
.lead-form-card .lf-submit:disabled { opacity: .65; cursor: not-allowed; }

/* Reward strip + fine print (existing classes from PHP, just refine) */
.lead-form-card .form-reward {
  display: flex; align-items: center; gap: 10px;
  background: #faf1dd;
  border: 1px dashed #C89543;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.lead-form-card .form-reward__icon { font-size: 22px; flex-shrink: 0; }
.lead-form-card .form-reward strong { color: #a07526; }

.lead-form-card .form-fine {
  text-align: center;
  color: #606880;
  font-size: 11px;
  margin-top: 14px;
  line-height: 1.55;
}

/* Success / error states */
.lead-form__success {
  text-align: center;
  padding: 16px 0;
}
.lead-form__success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ECD08C, #C89543);
  color: #121216;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(200, 149, 67, .4);
}
.lead-form__success h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #0f1e38;
  font-weight: 800;
}
.lead-form__success p {
  font-size: 14.5px;
  color: #4A5568;
  line-height: 1.55;
  margin: 0;
}

.lead-form__error {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #991b1b;
  font-size: 13.5px;
  text-align: center;
  font-weight: 500;
}

/* Form field shake when invalid (set by lead-form.js) */
.form-field.lf-shake input,
.form-field.lf-shake select {
  animation: lf-shake 380ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
  border-color: #ea580c !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, .2) !important;
}
@keyframes lf-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* Mobile tuning */
@media (max-width: 680px) {
  .form-section { padding: 36px 14px; }
  .lead-form-card { padding: 22px 18px; }
  .lead-form-card .form-card__head h2 { font-size: 1.2rem; }
  .lead-form-card .form-card__note { font-size: 13px; }
  .lf-chips { grid-template-columns: 1fr; }
  .lf-chip { font-size: 14px; min-height: 50px; }
  .lead-form-card .lf-submit { font-size: 15px; height: 52px; }
}

/* Honor reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .lead-form-card .lf-submit,
  .lf-chip,
  .form-field.lf-shake input,
  .form-field.lf-shake select {
    transition: none !important;
    animation: none !important;
  }
}
