@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600&display=swap');

/* ── Base ── */
.atb-form * { box-sizing: border-box; }
.atb-form {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #0F172A;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  overflow: hidden;
  margin-bottom: 32px;
}

/* ── Progress ── */
.atb-progress {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
}
.atb-progress-step { display:flex; align-items:center; gap:10px; flex:1; }
.atb-step-indicator {
  width:38px; height:38px; border-radius:50%;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.45);
  display:flex; align-items:center; justify-content:center;
  font-family:'Sora',sans-serif; font-size:14px; font-weight:700;
  border:2px solid rgba(255,255,255,.25);
  transition:all .3s; flex-shrink:0;
}
.atb-progress-step.active .atb-step-indicator {
  background:#fff; border-color:#fff; color:#1A56DB;
  box-shadow:0 0 0 4px rgba(255,255,255,.2); font-weight:800;
}
.atb-progress-step.completed .atb-step-indicator {
  background:#0E9F6E; border-color:#0E9F6E; color:#fff; font-size:0;
}
.atb-progress-step.completed .atb-step-indicator::after { content:'\2713'; font-size:14px; }
.atb-step-label { font-size:12px; font-weight:500; color:rgba(255,255,255,.5); white-space:nowrap; }
.atb-progress-step.active .atb-step-label { color:#fff; font-weight:600; }
.atb-progress-step.completed .atb-step-label { color:rgba(255,255,255,.8); }
.atb-progress-line { flex:1; height:2px; background:rgba(255,255,255,.15); margin:0 12px; border-radius:2px; }

/* ── Step panes ── */
.atb-step { padding:20px 24px; animation:atbFadeIn .25s ease; }
@keyframes atbFadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

/* ── Hero heading (Step 1) ── */
.atb-step-hero { margin-bottom:14px; }
.atb-hero-title {
  font-family:'Sora',sans-serif; font-size:19px; font-weight:800;
  color:#0F172A; margin:0 0 2px; letter-spacing:-.3px;
}
.atb-hero-sub { font-size:13px; color:#64748B; margin:0; }
.atb-step-title {
  font-family:'Sora',sans-serif; font-size:17px; font-weight:700;
  margin:0 0 14px; color:#0F172A;
}

/* ── Labels & inputs ── */
.atb-label {
  display:block; font-size:13px; font-weight:600; color:#475569;
  margin-bottom:5px; letter-spacing:.1px;
}
.atb-req { color:#E02424; }
.atb-hint-optional { font-size:11px; font-weight:400; color:#94A3B8; margin-left:4px; }

.atb-input, .atb-textarea, .atb-select {
  width:100%; padding:9px 12px;
  border:1.5px solid #E2E8F0; border-radius:9px;
  font-family:'DM Sans',sans-serif; font-size:14px; color:#0F172A;
  background:#fff; transition:border-color .15s, box-shadow .15s;
  outline:none; -webkit-appearance:none; appearance:none;
}
.atb-select { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:36px; }
.atb-input:focus, .atb-textarea:focus, .atb-select:focus {
  border-color:#1A56DB; box-shadow:0 0 0 3px rgba(26,86,219,.1);
}
.atb-input.atb-error { border-color:#E02424; background:#FFF8F8; }
.atb-textarea { resize:vertical; }

input[type="date"].atb-input, input[type="time"].atb-input {
  min-height:40px; cursor:pointer; color:#0F172A; display:block;
}
input[type="date"].atb-input::-webkit-date-and-time-value { text-align:left; min-width:120px; }

/* ── Grid rows ── */
.atb-row-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.atb-field-wrap { margin-bottom:0; }
.atb-full { margin-bottom:12px; }
.atb-row-2.atb-datetime-row, .atb-row-2.atb-contact-row { grid-template-columns:1fr 1fr !important; }

/* ── Service cards ── */
.atb-service-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:4px; }
.atb-service-card { cursor:pointer; display:block; }
.atb-service-card input { display:none; }
.atb-service-inner {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:10px 8px; border:1.5px solid #E2E8F0; border-radius:10px;
  font-size:12px; font-weight:500; text-align:center; color:#475569;
  transition:all .15s; background:#F8FAFC;
}
.atb-service-icon { font-size:20px; }
.atb-service-card input:checked + .atb-service-inner {
  border-color:#1A56DB; background:#EFF6FF; color:#1A56DB;
  box-shadow:0 0 0 3px rgba(26,86,219,.1);
}
.atb-service-card:hover .atb-service-inner { border-color:#94A3B8; }

/* ── Service-specific fields ── */
.atb-svc-fields { margin-top:10px; padding-top:10px; border-top:1px solid #F1F5F9; }

/* ── Yes/No toggle ── */
.atb-yesno { display:flex; gap:10px; }
.atb-yn-card { cursor:pointer; display:block; flex:1; }
.atb-yn-card input { display:none; }
.atb-yn-card span {
  display:flex; align-items:center; justify-content:center;
  padding:9px 14px; border:1.5px solid #E2E8F0; border-radius:9px;
  font-size:14px; font-weight:500; color:#475569; background:#F8FAFC;
  transition:all .15s; gap:6px;
}
.atb-yn-card input:checked + span {
  border-color:#1A56DB; background:#EFF6FF; color:#1A56DB;
  box-shadow:0 0 0 3px rgba(26,86,219,.1);
}

/* ── Counter ── */
.atb-counter { display:flex; align-items:center; }
.atb-counter-btn {
  width:36px; height:40px; border:1.5px solid #E2E8F0; background:#F8FAFC;
  cursor:pointer; font-size:18px; color:#475569; transition:all .15s; flex-shrink:0;
}
.atb-counter-btn:first-child { border-radius:9px 0 0 9px; }
.atb-counter-btn:last-child  { border-radius:0 9px 9px 0; }
.atb-counter-btn:hover { background:#E2E8F0; color:#0F172A; }
.atb-counter-val {
  flex:1; text-align:center; border-radius:0; border-left:none; border-right:none;
  -moz-appearance:textfield; appearance:textfield;
}
.atb-counter-val::-webkit-outer-spin-button,
.atb-counter-val::-webkit-inner-spin-button { -webkit-appearance:none; }
.atb-lug-49plus span {
  font-size:13px; padding:8px 14px; border-radius:8px;
  border:1.5px dashed #CBD5E1; background:#F8FAFC; color:#475569;
  justify-content:flex-start; margin-top:8px;
}
.atb-lug-49plus input:checked + span { border-color:#1A56DB; color:#1A56DB; background:#EFF6FF; }

/* ── Vehicle Carousel ── */
.atb-carousel-wrap { position:relative; display:flex; align-items:center; gap:8px; }
.atb-carousel-viewport { flex:1; overflow:hidden; border-radius:12px; }
.atb-carousel-track {
  display:flex; gap:12px; transition:transform .35s cubic-bezier(.4,0,.2,1);
  will-change:transform;
}
.atb-carousel-slide { flex:0 0 200px; }

.atb-carousel-arrow {
  width:36px; height:36px; border-radius:50%; border:1.5px solid #E2E8F0;
  background:#fff; cursor:pointer; font-size:16px; color:#1A56DB;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:all .15s; box-shadow:0 1px 4px rgba(0,0,0,.08);
}
.atb-carousel-arrow:hover { background:#1A56DB; color:#fff; border-color:#1A56DB; }
.atb-carousel-arrow:disabled { opacity:.3; cursor:default; }

.atb-vehicle-card { cursor:pointer; display:block; height:100%; }
.atb-vehicle-card input { display:none; }
.atb-vehicle-inner {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:12px 8px 10px; border:1.5px solid #E2E8F0; border-radius:12px;
  text-align:center; transition:all .2s; background:#F8FAFC; height:100%;
}
.atb-vehicle-img { width:100%; max-width:140px; height:80px; object-fit:contain; border-radius:6px; margin-bottom:2px; }
.atb-vehicle-icon { font-size:32px; margin-bottom:4px; }
.atb-vehicle-name { font-size:13px; font-weight:700; color:#1E293B; line-height:1.3; font-family:'Sora',sans-serif; }
.atb-vehicle-sub  { font-size:11px; color:#64748B; font-style:italic; }
.atb-vehicle-cap  { font-size:11px; color:#94A3B8; line-height:1.4; }
.atb-vehicle-card input:checked + .atb-vehicle-inner {
  border-color:#1A56DB; background:#EFF6FF;
  box-shadow:0 0 0 3px rgba(26,86,219,.12);
}
.atb-vehicle-card input:checked + .atb-vehicle-inner .atb-vehicle-name { color:#1A56DB; }

.atb-carousel-dots { display:flex; justify-content:center; gap:6px; margin-top:12px; flex-wrap:wrap; }
.atb-dot {
  width:8px; height:8px; border-radius:50%; background:#CBD5E1;
  cursor:pointer; transition:all .2s;
}
.atb-dot.active { background:#1A56DB; width:20px; border-radius:4px; }
.atb-vehicle-selected-name {
  text-align:center; font-size:13px; font-weight:600; color:#1A56DB;
  margin-top:8px; padding:6px 12px; background:#EFF6FF; border-radius:8px;
}

/* ── Distance row ── */
.atb-distance-row {
  display:flex; align-items:center; gap:10px; padding:10px 14px;
  background:#F0FDF4; border:1px solid #BBF7D0; border-radius:9px;
  margin-bottom:16px; font-size:13px;
}
.atb-distance-label { color:#166534; font-weight:600; }
.atb-distance-value { color:#0F172A; font-weight:700; }

/* ── Email check ── */
.atb-email-check { font-size:12px; margin-top:5px; min-height:18px; }
.atb-email-check.valid   { color:#0E9F6E; }
.atb-email-check.invalid { color:#E02424; }

/* ── Phone wrap ── */
.atb-phone-wrap { display:flex; gap:0; }
.atb-phone-code {
  width:150px !important; flex-shrink:0; border-radius:9px 0 0 9px !important;
  border-right:none !important; font-size:13px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 8px center; padding-right:24px;
}
.atb-phone-num { border-radius:0 9px 9px 0 !important; flex:1; }

/* ── Navigation ── */
.atb-step-nav { display:flex; margin-top:16px; padding-top:14px; border-top:1px solid #F1F5F9; gap:10px; }
.atb-nav-right { justify-content:flex-end; }
.atb-nav-both  { justify-content:space-between; }

.atb-btn-step, .atb-btn-submit {
  display:inline-flex; align-items:center; gap:8px; padding:12px 24px;
  border-radius:10px; font-family:'DM Sans',sans-serif; font-size:14px;
  font-weight:600; cursor:pointer; border:none; transition:all .15s; white-space:nowrap;
}
.atb-btn-next { background:#1A56DB; color:#fff; }
.atb-btn-next:hover { background:#1348c0; transform:translateX(2px); }
.atb-btn-back { background:#F1F5F9; color:#475569; }
.atb-btn-back:hover { background:#E2E8F0; transform:translateX(-2px); }
.atb-btn-submit { background:#1A56DB; color:#fff; font-size:15px; padding:14px 28px; }
.atb-btn-submit:hover { background:#1348c0; transform:translateY(-1px); box-shadow:0 4px 16px rgba(26,86,219,.4); }
.atb-btn-submit:disabled { opacity:.7; cursor:not-allowed; transform:none; }
.atb-btn-submit.atb-sent { background:#0E9F6E; cursor:default; transform:none; }

@keyframes atbSpin { to{transform:rotate(360deg)} }
.atb-spinner { animation:atbSpin .8s linear infinite; }

/* ── Captcha ── */
.atb-captcha-wrap { margin-bottom:20px; }
.atb-math-captcha { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.atb-captcha-question {
  font-family:'Sora',sans-serif; font-size:18px; font-weight:600; color:#0F172A;
  background:#F8FAFC; border:1.5px solid #E2E8F0; border-radius:9px; padding:10px 16px;
}
.atb-captcha-blank { color:#1A56DB; }
.atb-captcha-input { width:80px; text-align:center; }
.atb-captcha-refresh {
  width:38px; height:44px; border:1.5px solid #E2E8F0; border-radius:9px;
  background:#F8FAFC; cursor:pointer; font-size:18px; color:#475569; transition:all .2s;
}
.atb-captcha-refresh:hover { background:#E2E8F0; transform:rotate(90deg); }
.atb-recaptcha-notice { font-size:11px; color:#94A3B8; margin-top:8px; }
.atb-recaptcha-notice a { color:#64748B; }

/* ── Errors ── */
.atb-step-error {
  margin-top:14px; padding:12px 16px; background:#FEF2F2;
  border:1.5px solid #FECACA; border-radius:9px; color:#991B1B;
  font-size:13.5px; line-height:1.5; display:flex; align-items:flex-start; gap:8px;
}
.atb-err-icon { font-size:16px; flex-shrink:0; margin-top:1px; }
.atb-step-error strong { font-weight:600; }
.atb-grid-error .atb-service-inner,
.atb-grid-error .atb-vehicle-inner { border-color:#E02424 !important; background:#FEF2F2 !important; }
.atb-grid-error { border-radius:10px; outline:2px solid #FECACA; outline-offset:4px; }

/* ── Thank You ── */
.atb-thankyou { text-align:center; padding:28px 28px 32px; animation:atbFadeIn .4s ease; }
.atb-ty-icon { font-size:48px; margin-bottom:10px; display:block; animation:atbFloat 3s ease-in-out infinite; }
@keyframes atbFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.atb-ty-heading { font-family:'Sora',sans-serif; font-size:22px; font-weight:700; margin:0 0 10px; color:#0F172A; }
.atb-ty-message { font-size:14px; color:#475569; line-height:1.65; max-width:480px; margin:0 auto; text-align:left; }
.atb-ty-message br + br { display:none; }

/* ── Mobile ── */
@media (max-width:600px) {
  .atb-row-2 { grid-template-columns:1fr; }
  .atb-row-2.atb-datetime-row, .atb-row-2.atb-contact-row { grid-template-columns:1fr 1fr !important; gap:10px; }
  .atb-service-grid { grid-template-columns:1fr 1fr; }
  .atb-progress { padding:10px 12px; }
  .atb-step-label { display:none; }
  .atb-step { padding:14px 12px; }
  .atb-hero-title { font-size:16px; }
  .atb-carousel-slide { flex:0 0 160px; }
  .atb-phone-code { width:130px !important; }
  .atb-btn-submit { font-size:13px; padding:12px 16px; }
}

/* ════════════════════════════════════════════════
   CONTACT / QUOTE FORM
   ════════════════════════════════════════════════ */
.atb-contact-form {
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  overflow: hidden;
  margin-bottom: 32px;
}

/* Header */
.atb-contact-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  padding: 24px 28px;
}
.atb-contact-title {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -.3px;
}
.atb-contact-sub {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin: 0;
}

/* Body */
.atb-contact-body {
  padding: 24px 28px 28px;
}

/* Fields */
.atb-cf-field {
  margin-bottom: 14px;
}
.atb-cf-field:last-of-type {
  margin-bottom: 0;
}

/* Submit */
.atb-cf-submit-wrap {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}
.atb-cf-submit {
  width: 100%;
  justify-content: center;
}

/* Error */
.atb-cf-error {
  margin-bottom: 10px;
  padding: 11px 14px;
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  border-radius: 9px;
  color: #991B1B;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile */
@media (max-width: 600px) {
  .atb-contact-header { padding: 18px 18px; }
  .atb-contact-body   { padding: 18px 18px 22px; }
}

/* ── Structured Thank You Card ─────────────────────── */
.atb-ty-greeting {
  font-size: 15px;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 18px;
  text-align: center;
}
.atb-ty-greeting strong { color: #0F172A; }

.atb-ty-details {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

.atb-ty-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 13.5px;
}
.atb-ty-row:last-child { border-bottom: none; }

.atb-ty-label {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  min-width: 110px;
  flex-shrink: 0;
}

.atb-ty-val {
  color: #1E293B;
  font-weight: 500;
  word-break: break-word;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .atb-ty-row { flex-direction: column; gap: 2px; padding: 10px 14px; }
  .atb-ty-label { min-width: unset; }
  .atb-thankyou { padding: 20px 16px 24px; }
  .atb-ty-heading { font-size: 18px; }
  .atb-ty-greeting { font-size: 14px; }
}
