/* MOT checker page styles. */

/* ====================================================
   AMC v2.2 MOT History Result UI
   Compelling result cards, timeline, status badges
   ==================================================== */
.mot-checker-wrapper {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--amc-gray-200, #e5e7eb);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 18px 45px rgba(16,24,40,.10);
}

.mot-checker-form .form-row,
.amc-mot-checker-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.input-wrapper {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: stretch;
  border: 2px solid #d7deea;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input-wrapper:focus-within {
  border-color: #1565c0;
  box-shadow: 0 0 0 5px rgba(21,101,192,.12);
}

.input-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1565c0;
  color: #fff;
  font-weight: 900;
  letter-spacing: .06em;
}

.form-input,
.amc-vrm-input,
.amc-mot-checker-form .form-control {
  width: 100%;
  border: 0 !important;
  min-height: 58px;
  padding: 0 18px !important;
  color: #101828;
  font-weight: 900;
  font-size: clamp(1rem, 3vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: .08em;
  outline: none;
  background: #fff;
}

.amc-mot-checker-form .form-control {
  border: 2px solid #d7deea !important;
  border-radius: 16px !important;
}

#check-btn,
.amc-mot-checker-form .btn {
  min-height: 58px;
  border-radius: 16px;
  padding-inline: 1.35rem;
  font-weight: 900;
}

.alert-error {
  background: #fff1f1 !important;
  border: 1px solid #ffc9c9 !important;
  color: #a80000 !important;
  padding: 1rem 1.1rem !important;
  border-radius: 16px !important;
  margin-top: 1rem !important;
  font-weight: 700;
}

#mot-results.section-gray {
  background:
    radial-gradient(circle at top right, rgba(21,101,192,.10), transparent 30%),
    #f6f8fb;
}

.trap-door-cta {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(135deg, #061a42, #0d47a1);
  color: #fff;
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 18px 45px rgba(6,26,66,.18);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.trap-door-cta::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -50px;
  top: -50px;
  background: rgba(227,30,36,.22);
  border-radius: 50%;
}

.trap-door-cta .cta-content,
.trap-door-cta .btn {
  position: relative;
  z-index: 1;
}

.trap-door-cta h3 {
  color: #fff;
  margin: 0 0 .35rem;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.trap-door-cta p {
  color: #dbeafe;
  margin: 0;
}

/* Summary */
.mot-status-summary,
.amc-mot-status-summary {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  margin: 0 0 1.5rem;
}

.mot-status-panel {
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #fff;
  box-shadow: 0 16px 38px rgba(16,24,40,.14);
  position: relative;
  overflow: hidden;
}

.mot-status-panel::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -45px;
  bottom: -65px;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
}

.mot-status-panel.status-valid { background: linear-gradient(135deg, #059669, #34d399); }
.mot-status-panel.status-due { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #111827; }
.mot-status-panel.status-expired,
.mot-status-panel.status-fail { background: linear-gradient(135deg, #dc2626, #e31e24); }
.mot-status-panel.status-unknown { background: linear-gradient(135deg, #475467, #101828); }

.mot-status-panel h3 {
  color: inherit;
  margin: 0 0 .5rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.mot-status-panel p {
  margin: 0;
  color: inherit;
  opacity: .92;
  font-weight: 700;
}

.mot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .45rem .8rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.25);
  font-weight: 900;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.mot-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

.mot-summary-stat {
  background: #fff;
  border: 1px solid var(--amc-gray-200, #e5e7eb);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 8px 22px rgba(16,24,40,.06);
}

.mot-summary-stat span {
  display: block;
  color: #667085;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}

.mot-summary-stat strong {
  color: #101828;
  font-size: 1.15rem;
}

/* Vehicle details */
.vehicle-card,
.mot-history-card,
.amc-mot-rich-results .vehicle-card,
.amc-mot-rich-results .mot-history-card {
  background: #fff;
  border: 1px solid var(--amc-gray-200, #e5e7eb);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 10px 28px rgba(16,24,40,.08);
  margin-bottom: 1.5rem;
}

.vehicle-header,
.mot-history-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.35rem;
}

.vehicle-header h2,
.mot-history-header h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.registration-badge,
.amc-registration-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  border-radius: 12px;
  border: 3px solid #111827;
  background: #ffd000;
  color: #111827;
  padding: .55rem .9rem;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1.5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}

.vehicle-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: .9rem;
}

.detail-item {
  background: #f8fafc;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  padding: 1rem;
}

.detail-label {
  display: block;
  color: #667085;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}

.detail-value {
  display: block;
  color: #101828;
  font-weight: 900;
  font-size: 1.05rem;
}

/* Timeline */
.mot-history-timeline {
  position: relative;
  padding-left: 1.3rem;
}

.mot-history-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #dce5f2;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.1rem;
  z-index: 2;
  box-shadow: 0 0 0 6px #fff;
}

.timeline-dot.passed { background: #059669; }
.timeline-dot.failed { background: #dc2626; }

.timeline-content {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 5px solid #d0d5dd;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 6px 18px rgba(16,24,40,.05);
}

.timeline-content.passed { border-left-color: #059669; }
.timeline-content.failed { border-left-color: #dc2626; }

.result-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .35rem .65rem;
  font-weight: 900;
  font-size: .75rem;
  letter-spacing: .08em;
  margin-bottom: .65rem;
}

.result-badge.passed {
  background: #ecfdf5;
  color: #047857;
}

.result-badge.failed {
  background: #fef2f2;
  color: #b91c1c;
}

.timeline-content h4 {
  margin: 0 0 .65rem;
  font-size: 1.08rem;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  color: #475467;
  font-weight: 700;
  font-size: .95rem;
}

.timeline-meta span {
  background: #f8fafc;
  border: 1px solid #edf1f7;
  border-radius: 999px;
  padding: .45rem .7rem;
}

.mot-defects {
  margin-top: .9rem;
  display: grid;
  gap: .5rem;
}

.mot-defect {
  border-radius: 12px;
  padding: .7rem .8rem;
  font-size: .92rem;
  line-height: 1.45;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #475467;
}

.mot-defect.dangerous,
.mot-defect.major {
  background: #fff1f1;
  border-color: #ffc9c9;
  color: #991b1b;
}

.mot-defect.advisory,
.mot-defect.minor {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.no-history {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 1.5rem;
  color: #475467;
  font-weight: 700;
}

/* Shortcode result wrapper */
.amc-mot-rich-results {
  margin-top: 1.5rem;
}

.amc-mot-rich-results .mot-status-summary {
  grid-template-columns: 1fr;
}

.bottom-cta {
  text-align: center;
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: #fff;
  border: 1px solid var(--amc-gray-200, #e5e7eb);
  box-shadow: 0 10px 28px rgba(16,24,40,.08);
}

.bottom-cta h2 {
  margin: 0 0 .5rem;
}

.bottom-cta p {
  margin: 0 0 1rem;
  color: #667085;
}

@media (max-width: 900px) {
  .mot-checker-form .form-row,
  .amc-mot-checker-form,
  .mot-status-summary,
  .vehicle-details,
  .trap-door-cta {
    grid-template-columns: 1fr;
  }

  .trap-door-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .vehicle-header,
  .mot-history-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mot-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .input-wrapper {
    grid-template-columns: 58px minmax(0,1fr);
  }

  .registration-badge,
  .amc-registration-badge {
    min-width: 120px;
    font-size: 1.25rem;
  }

  .timeline-item {
    grid-template-columns: 22px minmax(0,1fr);
    gap: .75rem;
  }

  .timeline-dot {
    width: 22px;
    height: 22px;
  }

  .mot-history-timeline {
    padding-left: .9rem;
  }

  .mot-history-timeline::before {
    left: 8px;
  }
}




/* MOT result CTA dynamic states */
/* MOT result CTA dynamic states */
.trap-door-cta.status-valid {
  background: linear-gradient(135deg, #047857, #34d399);
}

.trap-door-cta.status-due {
  background: linear-gradient(135deg, #b45309, #f59e0b);
}

.trap-door-cta.status-expired,
.trap-door-cta.status-fail {
  background: linear-gradient(135deg, #991b1b, #e31e24);
}

.trap-door-cta.status-unknown {
  background: linear-gradient(135deg, #061a42, #0d47a1);
}


/* MOT Checker Page — Car.co.uk inspired UX */
.amc-mot-check-hero {
  margin-top: -80px;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  background:
    radial-gradient(circle at 85% 15%, rgba(227, 30, 36, 0.25), transparent 30%),
    linear-gradient(135deg, #061a42, #0d47a1);
  color: #ffffff;
}

.amc-mot-check-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.amc-mot-pill {
  display: inline-flex;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.amc-mot-check-hero h1 {
  color: #ffffff;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.02;
  margin: 0 0 18px;
}

.amc-mot-check-hero p {
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 24px;
}

.amc-mot-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.amc-mot-trust-row span {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 800;
  font-size: 14px;
}

.amc-mot-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 26px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.amc-reg-input-wrap {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  border: 3px solid #111827;
  border-radius: 16px;
  overflow: hidden;
  background: #ffd000;
  min-height: 68px;
}

.amc-reg-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1565c0;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.amc-reg-input-wrap input {
  width: 100%;
  border: 0;
  background: #ffd000;
  color: #111827;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(1.25rem, 4vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 18px;
  outline: none;
}

.amc-reg-input-wrap input::placeholder {
  color: rgba(17,24,39,0.55);
}

.amc-mot-check-btn {
  border: 0;
  border-radius: 16px;
  background: #e31e24;
  color: #ffffff;
  padding: 0 28px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 68px;
}

.amc-mot-check-btn:hover {
  background: #c9181e;
}

.amc-mot-benefit-grid,
.amc-mot-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.amc-mot-benefit-card,
.amc-mot-info-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(16,24,40,0.07);
}

.amc-mot-benefit-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: #fff1f1;
  color: #e31e24;
  border-radius: 14px;
  font-weight: 900;
  margin-bottom: 16px;
}

.amc-mot-benefit-card h3,
.amc-mot-info-card h3 {
  margin-top: 0;
  color: #101828;
}

.amc-mot-benefit-card p,
.amc-mot-info-card p {
  color: #475467;
  margin-bottom: 0;
}

.amc-mot-result-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
  margin-top: 24px;
}

.amc-mot-result-cta-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 28px;
  color: #101828;
  box-shadow: 0 12px 30px rgba(16,24,40,0.07);
}

.amc-mot-result-cta-card.red {
  background:
    radial-gradient(circle at top right, rgba(227,30,36,.18), transparent 35%),
    linear-gradient(135deg, #061a42, #0d47a1);
  color: #ffffff;
}

.amc-mot-result-cta-card span {
  display: inline-flex;
  background: #fff1f1;
  color: #e31e24;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.amc-mot-result-cta-card.red span {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

.amc-mot-result-cta-card h3 {
  margin: 0 0 10px;
}

.amc-mot-result-cta-card p {
  color: #475467;
}

.amc-mot-result-cta-card.red h3,
.amc-mot-result-cta-card.red p,
.amc-mot-result-cta-card.red strong {
  color: #ffffff;
}

.amc-mot-promo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(227,30,36,.18), transparent 35%),
    linear-gradient(135deg, #061a42, #0d47a1);
  color: #ffffff;
  border-radius: 28px;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 18px 45px rgba(16,24,40,0.14);
}

.amc-mot-promo-card h2 {
  color: #ffffff;
  margin-top: 0;
}

.amc-mot-promo-card p {
  color: #dbeafe;
  margin-bottom: 0;
}

.amc-mot-promo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .amc-mot-check-hero {
    margin-top: -40px;
    min-height: auto;
    padding-top: 100px;
  }

  .amc-mot-search-card,
  .amc-mot-benefit-grid,
  .amc-mot-info-grid,
  .amc-mot-result-cta-grid,
  .amc-mot-promo-card {
    grid-template-columns: 1fr;
  }

  .amc-mot-check-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .amc-mot-check-hero {
    margin-top: -20px;
    padding-top: 80px;
  }

  .amc-mot-search-card {
    padding: 12px;
    border-radius: 20px;
  }

  .amc-reg-input-wrap {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .amc-mot-promo-actions {
    display: grid;
  }

  .amc-mot-promo-actions .btn {
    width: 100%;
  }
}

/* MOT result PDF download */
.amc-mot-pdf-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #020202;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 18px 0 28px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.08);
}

.amc-mot-pdf-actions p {
  margin: 0;
  color: #475467;
  font-size: 0.95rem;
  line-height: 1.45;
}

.amc-mot-pdf-btn {
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}

.amc-mot-pdf-btn[disabled] {
  opacity: 0.72;
  cursor: progress;
}

@media (max-width: 760px) {
  .amc-mot-pdf-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .amc-mot-pdf-btn {
    width: 100%;
  }
}
