/*
Theme Name: Auto MOT Centre v2.6
Theme URI: https://www.automotcentre.com
Author: Islah Web Service
Author URI: https://www.islahwebservice.com
Description: A custom WordPress theme for Auto MOT Centre with Elementor support. Features include MOT testing, car servicing, repairs, and automotive services.
Version: 2.6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amc
Tags: elementor, automotive, mot, car-service
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ====================================================
   Color Palette based on original design:
   Primary: #1e3a5f (dark blue)
   Primary Light: #2c5282
   Accent: #e31e24 (red)
   ==================================================== */

:root {
  --amc-primary: #1e3a5f;
  --amc-primary-light: #2c5282;
  --amc-primary-dark: #0d1b2a;
  --amc-accent: #e31e24;
  --amc-accent-hover: #c62828;
  --amc-white: #ffffff;
  --amc-gray-50: #f9fafb;
  --amc-gray-100: #f3f4f6;
  --amc-gray-200: #e5e7eb;
  --amc-gray-300: #d1d5db;
  --amc-gray-400: #9ca3af;
  --amc-gray-500: #6b7280;
  --amc-gray-600: #4b5563;
  --amc-gray-700: #374151;
  --amc-gray-800: #1f2937;
  --amc-gray-900: #111827;
  --amc-blue-100: #dbeafe;
  --amc-blue-200: #bfdbfe;
  --amc-blue-300: #93c5fd;
  --amc-emerald-400: #34d399;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--amc-gray-800);
  background-color: var(--amc-white);
  line-height: 1.6;
}

a {
  color: var(--amc-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--amc-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--amc-accent);
  color: var(--amc-white);
}

.btn-primary:hover {
  background-color: var(--amc-accent-hover);
  color: var(--amc-white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--amc-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--amc-white);
}

/* Header Styles */
.site-header {
  background-color: var(--amc-primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background-color: var(--amc-primary-dark);
  padding: 0.5rem 0;
  font-size: 0.75rem;
  color: var(--amc-gray-300);
}

.header-main {
  background-color: var(--amc-primary);
  padding: 0;
}

.site-logo img {
  max-height: 4rem;
  width: auto;
}

.main-navigation ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--amc-blue-100);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a.current {
  color: var(--amc-white);
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--amc-primary-dark) 0%, var(--amc-primary) 50%, var(--amc-primary-light) 100%);
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
}

.hero-title {
  color: var(--amc-white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-title .accent {
  color: #f87171;
}

.hero-subtitle {
  color: var(--amc-blue-200);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
}

.stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amc-white);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--amc-blue-200);
  opacity: 0.7;
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-gray {
  background-color: var(--amc-gray-50);
}

.section-white {
  background-color: var(--amc-white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Card Styles */
.card {
  background-color: var(--amc-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Grid Layouts */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Footer Styles */
.site-footer {
  background-color: var(--amc-primary-dark);
  color: var(--amc-blue-200);
}

.footer-cta {
  background: linear-gradient(90deg, var(--amc-primary) 0%, var(--amc-primary-light) 50%, rgba(227, 30, 36, 0.8) 100%);
  padding: 3.5rem 0;
}

.footer-main {
  padding: 3.5rem 0;
}

.footer-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amc-white);
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--amc-blue-300);
  font-size: 0.875rem;
  display: block;
  padding: 0.375rem 0;
}

.footer-links a:hover {
  color: var(--amc-white);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  font-size: 0.75rem;
  color: var(--amc-blue-400);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--amc-white);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--amc-primary);
    padding: 1rem;
  }
  
  .mobile-menu.active {
    display: block;
  }
  
  .mobile-menu ul {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .mobile-menu a {
    display: block;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
  }
}

/* Elementor Page Builder Support */
.elementor-section.boxed > .elementor-container {
  max-width: 1280px;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0 3rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Contact Page */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--amc-blue-100);
  border: 1px solid var(--amc-blue-200);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* FAQ Section */
.faq-item {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--amc-gray-200);
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--amc-gray-900);
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: var(--amc-gray-600);
  line-height: 1.7;
}

/* Trust Bar */
.trust-bar {
  background-color: var(--amc-gray-50);
  padding: 2rem 0;
  border-bottom: 1px solid var(--amc-gray-200);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0.6;
}

.trust-logos img {
  max-height: 2.5rem;
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.trust-logos img:hover {
  filter: grayscale(0%);
}
/* ===== AMC reviewed theme fixes ===== */
.header-top-inner,
.header-main-inner,
.footer-cta-inner,
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.header-contact,
.header-email,
.header-hours {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.header-contact a,
.header-email a,
.header-hours {
  color: var(--amc-gray-200);
}
.header-main-inner { min-height: 5rem; }
.header-cta { margin-left: auto; }
.mobile-menu { display: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.25fr 1.1fr;
  gap: 2rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .75rem; }
.footer-col a { color: var(--amc-blue-200); }
.footer-col h4 { color: #fff; margin-bottom: 1rem; }
.footer-logo img { max-width: 180px; height: auto; margin-bottom: 1rem; }
.footer-cta-inner { color: #fff; }
.footer-bottom-inner { flex-wrap: wrap; }
.footer-legal { display: flex; gap: .5rem; align-items: center; }
.hours-item { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.hours-note { margin-top: .75rem; color: var(--amc-blue-200); }
.payment-methods { margin-top: 1rem; }
.payment-icons { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.payment-icons span { background: rgba(255,255,255,.08); padding: .25rem .5rem; border-radius: .5rem; font-size: .75rem; }
.section-label { color: var(--amc-accent); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; display: inline-block; margin-bottom: .75rem; }
.about-grid, .location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat-box { color: #fff; border-radius: 1rem; padding: 1.5rem; min-height: 130px; box-shadow: 0 10px 20px rgba(0,0,0,.12); }
.stat-box strong { display: block; color: #fff; font-size: 1.75rem; line-height: 1; margin-bottom: .5rem; }
.stat-box span { color: rgba(255,255,255,.9); font-size: .9rem; }
.stat-box.blue { background: linear-gradient(135deg,#1565c0,#0d47a1); }
.stat-box.red { background: linear-gradient(135deg,#e31e24,#ff6b6b); }
.stat-box.gold { background: linear-gradient(135deg,#f59e0b,#fbbf24); }
.stat-box.green { background: linear-gradient(135deg,#059669,#34d399); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.trust-card { background: #fff; border: 1px solid var(--amc-gray-200); border-radius: 1rem; padding: 1.25rem; color: var(--amc-gray-800); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.trust-card strong { display: block; color: var(--amc-gray-900); margin-bottom: .25rem; }
.service-card { color: inherit; display: block; }
.service-card .card-link { color: var(--amc-accent); font-weight: 700; margin-top: 1rem; display: inline-block; }
.stars { color: #f59e0b; letter-spacing: .1em; margin-bottom: .75rem; }
.map-wrap iframe { width: 100%; min-height: 420px; border: 0; border-radius: 1rem; box-shadow: 0 10px 20px rgba(0,0,0,.12); }
@media (max-width: 1024px) {
  .main-navigation, .header-cta { display: none; }
  .mobile-menu-toggle { display: block; margin-left: auto; }
  .mobile-menu.active { display: block; }
  .footer-grid, .about-grid, .location-grid, .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-top-inner { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ====================================================
   AEO v1.4 additions
   ==================================================== */
.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr);
  gap: 2rem;
  align-items: start;
}
.service-main-copy h3 { margin-top: 2rem; }
.service-checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.service-checklist li { position: relative; padding-left: 2rem; margin-bottom: .85rem; }
.service-checklist li:before { content: '✓'; position: absolute; left: 0; top: 0; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff1f1; color: var(--amc-accent); font-weight: 800; font-size: .85rem; }
.service-summary-card { position: sticky; top: 110px; }
.card-link { display: inline-block; margin-top: 1rem; color: var(--amc-accent); font-weight: 800; }
.home-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.home-faq-grid .faq-item { background: #fff; border: 1px solid var(--amc-gray-200); border-radius: 1rem; padding: 1.5rem; box-shadow: 0 6px 18px rgba(16,24,40,.05); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.team-card { text-align: center; }
.team-avatar { width: 88px; height: 88px; margin: 0 auto 1rem; border-radius: 1.25rem; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.5rem; background: linear-gradient(135deg, var(--amc-primary-light), var(--amc-primary)); }
.team-role { display: inline-block; margin-bottom: .75rem; background: #fff1f1; color: var(--amc-accent); border-radius: 999px; padding: .3rem .75rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 900px) {
  .service-detail-grid, .home-faq-grid, .team-grid { grid-template-columns: 1fr; }
  .service-summary-card { position: static; }
}

/* ====================================================
   AMC v1.5 Image Slots
   ==================================================== */
.hero-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 2.5rem;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-image-card,
.section-image-slot {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(16,24,40,.14);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
}
.hero-image-card img,
.section-image-slot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.hero-image-card .amc-image-placeholder,
.section-image-slot .amc-image-placeholder {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: rgba(255,255,255,.86);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px dashed rgba(255,255,255,.34);
}
.section-image-slot {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--amc-gray-100);
  border: 1px solid var(--amc-gray-200);
}
.section-image-slot .amc-image-placeholder {
  color: var(--amc-gray-600);
  background: linear-gradient(135deg, #f9fafb, #eef2f7);
  border: 1px dashed var(--amc-gray-300);
}
.about-image-slot img,
.about-image-slot .amc-image-placeholder,
.services-image-slot img,
.services-image-slot .amc-image-placeholder,
.team-image-slot img,
.team-image-slot .amc-image-placeholder,
.about-page-image-slot img,
.about-page-image-slot .amc-image-placeholder,
.service-detail-image-slot img,
.service-detail-image-slot .amc-image-placeholder {
  min-height: 280px;
  max-height: 420px;
}
.service-hero-image-slot {
  margin-top: 2rem;
  max-width: 720px;
}
.service-hero-image-slot img,
.service-hero-image-slot .amc-image-placeholder {
  min-height: 260px;
}
@media (max-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
  }
  .hero-image-card img,
  .hero-image-card .amc-image-placeholder {
    min-height: 280px;
  }
}
@media (max-width: 768px) {
  .hero-image-card,
  .section-image-slot {
    border-radius: 1rem;
  }
  .hero-image-card img,
  .hero-image-card .amc-image-placeholder,
  .section-image-slot img,
  .section-image-slot .amc-image-placeholder {
    min-height: 220px;
  }
}


/* ====================================================
   v1.7 Page Templates
   ==================================================== */
.page-template-grid,
.amc-template-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.amc-template-grid.two { grid-template-columns:repeat(2,1fr); }
.amc-template-card { background:#fff; border:1px solid var(--amc-border); border-radius:18px; padding:28px; box-shadow:var(--amc-shadow-sm); transition:all .3s ease; }
.amc-template-card:hover { transform:translateY(-4px); box-shadow:var(--amc-shadow-lg); }
.amc-template-card h3 { margin-top:0; }
.amc-template-card .card-link { color:var(--amc-accent); font-weight:800; margin-top:16px; display:inline-block; }
.amc-template-image { border-radius:20px; overflow:hidden; background:linear-gradient(135deg,var(--amc-primary),var(--amc-primary-light)); min-height:280px; display:flex; align-items:center; justify-content:center; color:#fff; text-align:center; padding:30px; }
.amc-template-image img { width:100%; height:100%; object-fit:cover; display:block; }
.amc-form-placeholder { background:#fff; border:1px solid var(--amc-border); border-radius:20px; padding:32px; box-shadow:var(--amc-shadow-md); }
.amc-form-placeholder code { background:#f4f4f5; padding:4px 8px; border-radius:6px; }
.amc-gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.amc-gallery-item { border-radius:18px; min-height:230px; overflow:hidden; background:linear-gradient(135deg,var(--amc-primary),var(--amc-primary-light)); color:#fff; display:flex; align-items:end; padding:24px; box-shadow:var(--amc-shadow-sm); }
.amc-gallery-item img { width:100%; height:100%; object-fit:cover; display:block; }
.amc-gallery-item span { font-weight:800; }
.amc-legal-content { max-width:860px; margin:0 auto; background:#fff; border:1px solid var(--amc-border); border-radius:20px; padding:36px; box-shadow:var(--amc-shadow-sm); }
.amc-legal-content h2 { margin-top:32px; }
.amc-shop-note { background:#fff8f8; border:1px solid #ffd7d7; border-radius:18px; padding:24px; margin-bottom:28px; }
@media (max-width: 900px) { .page-template-grid, .amc-template-grid, .amc-template-grid.two, .amc-gallery-grid { grid-template-columns:1fr; } }

/* ====================================================
   AMC v1.8 Product Detail Templates
   ==================================================== */
.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 2.5rem;
  align-items: center;
}
.product-hero-copy { min-width: 0; }
.product-image-card img { width: 100%; min-height: 340px; object-fit: cover; display: block; }
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
  gap: 2rem;
  align-items: start;
}
.product-main-copy h3 { margin-top: 2rem; }
.product-summary-card { position: sticky; top: 110px; }
.product-summary-card .btn { width: 100%; justify-content: center; margin-top: .75rem; }
.product-summary-card .card-link { margin-top: 1rem; display: inline-block; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}
.woocommerce-single-product-wrap {
  background: #fff;
  border: 1px solid var(--amc-gray-200);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(16,24,40,.06);
}
.amc-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}
.amc-product-card {
  display: block;
  color: inherit;
  background: #fff;
  border: 1px solid var(--amc-gray-200);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(16,24,40,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.amc-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(16,24,40,.10);
}
.amc-product-price {
  display: inline-block;
  margin-top: .75rem;
  color: var(--amc-accent);
  font-weight: 800;
}
@media (max-width: 900px) {
  .product-hero-grid,
  .product-detail-grid,
  .related-grid,
  .amc-product-grid { grid-template-columns: 1fr; }
  .product-summary-card { position: static; }
}


/* ====================================================
   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;
  }
}



/* ====================================================
   AMC v2.3 WooCommerce Shop + Product Card Fix
   Fixes /shop/ default WooCommerce archive output
   ==================================================== */

.amc-wc-shop .shop-hero-section {
  background:
    radial-gradient(circle at top right, rgba(227,30,36,.22), transparent 32%),
    linear-gradient(135deg, var(--amc-primary-950, #061a42), var(--amc-primary-800, #0d47a1));
}

.amc-shop-intro-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.amc-shop-intro-card,
.amc-shop-help-card {
  background: #fff;
  border: 1px solid var(--amc-gray-200, #e5e7eb);
  border-radius: 22px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 12px 30px rgba(16,24,40,.07);
}

.amc-shop-intro-card h2,
.amc-shop-help-card h3 {
  margin-top: 0;
}

.amc-shop-help-card {
  background:
    radial-gradient(circle at top right, rgba(227,30,36,.08), transparent 34%),
    #fff;
}

.amc-shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}

.amc-shop-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff1f1;
  color: #e31e24;
  border-radius: 999px;
  padding: .7rem 1rem;
  font-weight: 800;
  font-size: .92rem;
}

.amc-shop-links a:first-child {
  background: #e31e24;
  color: #fff;
}

.amc-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--amc-gray-200, #e5e7eb);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 18px rgba(16,24,40,.04);
}

.amc-shop-toolbar .woocommerce-result-count {
  float: none;
  margin: 0;
  color: #475467;
  font-weight: 700;
}

.amc-shop-toolbar .woocommerce-ordering {
  float: none;
  margin: 0;
}

.amc-shop-toolbar select {
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  padding: .65rem 1rem;
  font-weight: 700;
  color: #101828;
}

/* Reset default WooCommerce product archive list */
.woocommerce .amc-wc-products,
.woocommerce ul.products.amc-wc-products,
.amc-wc-products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products.amc-wc-products::before,
.woocommerce ul.products.amc-wc-products::after {
  display: none !important;
}

.woocommerce ul.products li.product.amc-wc-product-card,
.amc-wc-product-card {
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: #fff;
  border: 1px solid var(--amc-gray-200, #e5e7eb);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16,24,40,.07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.woocommerce ul.products li.product.amc-wc-product-card:hover,
.amc-wc-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227,30,36,.32);
  box-shadow: 0 18px 45px rgba(16,24,40,.12);
}

.amc-wc-product-image {
  position: relative;
  display: block;
  background: #f6f8fb;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.woocommerce ul.products li.product.amc-wc-product-card a img,
.amc-wc-product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  transition: transform .35s ease;
}

.amc-wc-product-card:hover .amc-wc-product-image img {
  transform: scale(1.04);
}

.woocommerce span.onsale,
.amc-wc-product-card .onsale {
  min-height: auto;
  min-width: auto;
  border-radius: 999px;
  background: #e31e24;
  color: #fff;
  padding: .45rem .75rem;
  line-height: 1;
  font-size: .8rem;
  font-weight: 900;
  top: 1rem;
  left: 1rem;
  right: auto;
  margin: 0;
  z-index: 2;
}

.amc-wc-product-body {
  padding: 1.25rem;
}

.amc-wc-product-category {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef5ff;
  color: #1565c0;
  padding: .35rem .7rem;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .8rem;
}

.woocommerce ul.products li.product .amc-wc-product-title,
.amc-wc-product-title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
  margin: 0 0 .65rem;
  color: #101828;
}

.amc-wc-product-title a {
  color: inherit;
}

.woocommerce ul.products li.product .price,
.amc-wc-price {
  display: block;
  color: #e31e24 !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  margin: .5rem 0 .75rem !important;
}

.amc-wc-excerpt {
  color: #475467;
  font-size: .95rem;
  line-height: 1.65;
  min-height: 3.2em;
  margin-bottom: 1rem;
}

.amc-wc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}

.woocommerce ul.products li.product .button,
.woocommerce .amc-wc-product-card .button,
.amc-wc-actions .button {
  background: #e31e24 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: .75rem 1.05rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  margin: 0 !important;
  min-height: auto !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce .amc-wc-product-card .button:hover {
  background: #c9181e !important;
}

.amc-wc-details-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1565c0;
  font-weight: 900;
  border-radius: 999px;
  padding: .72rem .3rem;
}

.woocommerce nav.woocommerce-pagination,
.amc-wc-pagination {
  margin-top: 2rem;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  border: 0;
  display: inline-flex;
  gap: .5rem;
  margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #101828;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: #1565c0;
  color: #fff;
  border-color: #1565c0;
}

.amc-wc-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  padding: 2rem;
  text-align: center;
  color: #475467;
}

/* Woo single product page cleanup */
.woocommerce-single-product-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.woocommerce div.product {
  background: #fff;
  border: 1px solid var(--amc-gray-200, #e5e7eb);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 16px 38px rgba(16,24,40,.08);
}

.woocommerce div.product div.images img {
  border-radius: 18px;
  background: #f6f8fb;
}

.woocommerce div.product .product_title {
  color: #101828;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #e31e24;
  font-weight: 900;
  font-size: 1.5rem;
}

.woocommerce div.product form.cart .button {
  background: #e31e24;
  border-radius: 999px;
  font-weight: 900;
  padding: .9rem 1.3rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin-top: 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.woocommerce div.product .woocommerce-tabs .panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1.5rem;
}

@media (max-width: 1000px) {
  .woocommerce .amc-wc-products,
  .woocommerce ul.products.amc-wc-products,
  .amc-wc-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amc-shop-intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .woocommerce .amc-wc-products,
  .woocommerce ul.products.amc-wc-products,
  .amc-wc-products {
    grid-template-columns: 1fr;
  }

  .amc-shop-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .amc-shop-toolbar select {
    width: 100%;
  }

  .amc-wc-actions {
    display: grid;
  }

  .amc-wc-actions .button,
  .amc-wc-details-link {
    width: 100%;
    text-align: center;
  }
}



/* ====================================================
   AMC v2.4 Header Fix
   Compact, sticky, 90% width, mobile optimized
   ==================================================== */

/* Overall header reset */
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .08);
}

/* Admin bar offset */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Top contact bar: full width, compact, not visually oversized */
.header-top {
  background: #0d1b2a !important;
  color: #ffffff !important;
  padding: 0 !important;
  min-height: 42px;
  display: flex;
  align-items: center;
}

.header-top .container {
  width: min(90%, 1280px) !important;
  max-width: 1280px !important;
  padding: 0 !important;
}

.header-top-inner {
  min-height: 42px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  font-size: 13px;
  font-weight: 700;
}

.header-contact,
.header-email,
.header-hours {
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
  color: #ffffff !important;
}

.header-contact a,
.header-email a,
.header-hours a {
  color: #ffffff !important;
}

/* Main nav area: remove excessive white gap */
.header-main {
  background: #ffffff !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid #e5e7eb;
}

.header-main .container {
  width: min(90%, 1280px) !important;
  max-width: 1280px !important;
  padding: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Blue navigation panel */
.header-main-inner {
  width: 100% !important;
  min-height: 72px !important;
  display: flex !important;
  align-items: center !important;
  gap: 1.4rem !important;
  justify-content: space-between !important;
  background: #1565c0 !important;
  border-radius: 0 !important;
  padding: 0 1.35rem !important;
  box-shadow: 0 10px 28px rgba(21, 101, 192, .16);
}

/* Logo */
.site-logo {
  flex: 0 0 auto;
}

.site-logo a {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  max-height: 54px !important;
  width: auto !important;
  display: block;
}

/* Navigation */
.main-navigation {
  flex: 1 1 auto;
}

.main-navigation ul,
.nav-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .25rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-navigation li {
  margin: 0 !important;
  padding: 0 !important;
}

.main-navigation a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  padding: .7rem .82rem !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
  white-space: nowrap !important;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: rgba(255, 255, 255, .16) !important;
  color: #ffffff !important;
}

/* Header CTA */
.header-cta {
  flex: 0 0 auto;
  margin-left: 0 !important;
}

.header-cta .btn,
.header-cta .btn-primary {
  min-height: 48px !important;
  border-radius: 0 !important;
  background: #e31e24 !important;
  color: #ffffff !important;
  padding: 0 1.25rem !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.header-cta .btn:hover,
.header-cta .btn-primary:hover {
  background: #c9181e !important;
  color: #ffffff !important;
  transform: none !important;
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  color: #ffffff !important;
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px;
  padding: .65rem !important;
}

/* Mobile dropdown */
.mobile-menu {
  display: none;
  background: #1565c0 !important;
  width: min(90%, 1280px);
  margin: 0 auto 14px;
  border-radius: 0 0 16px 16px;
  padding: 1rem;
  box-shadow: 0 16px 32px rgba(16,24,40,.16);
}

.mobile-menu.active {
  display: block !important;
}

.mobile-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: .35rem !important;
}

.mobile-menu a {
  display: block !important;
  color: #ffffff !important;
  padding: .85rem 1rem !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
}

.mobile-menu a:hover {
  background: rgba(255,255,255,.16) !important;
}

/* Avoid page body hidden under sticky header when using anchors */
html {
  scroll-padding-top: 140px;
}

@media (max-width: 1120px) {
  .main-navigation a {
    padding: .65rem .58rem !important;
    font-size: 12px !important;
  }

  .header-cta .btn,
  .header-cta .btn-primary {
    padding: 0 1rem !important;
    font-size: 12px !important;
  }
}

@media (max-width: 980px) {
  .header-top-inner {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: .7rem 1.2rem !important;
    padding: .5rem 0;
  }

  .header-hours {
    flex-basis: 100%;
    justify-content: center;
    text-align: center;
  }

  .main-navigation,
  .header-cta {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .header-main-inner {
    min-height: 68px !important;
  }

  .site-logo img {
    max-height: 48px !important;
  }
}

@media (max-width: 520px) {
  .header-top {
    display: none !important;
  }

  .header-main {
    padding: 10px 0 !important;
  }

  .header-main .container,
  .header-top .container,
  .mobile-menu {
    width: calc(100% - 24px) !important;
  }

  .header-main-inner {
    padding: 0 .9rem !important;
    min-height: 62px !important;
  }

  .site-logo img {
    max-height: 42px !important;
  }

  html {
    scroll-padding-top: 90px;
  }
}



/* ====================================================
   AMC v2.5 Forms + MOT Status Fix
   ==================================================== */

/* Booking plugin / WPForms placeholder cards */
.amc-form-placeholder {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 1.5rem;
  color: #475467;
  box-shadow: 0 8px 22px rgba(16,24,40,.05);
}

.amc-form-placeholder h3 {
  margin-top: 0;
  color: #101828;
}

/* Booked plugin calendar/form basic styling */
.booked-calendar-wrap,
.booked-appt-list,
.booked-form,
body .booked-modal {
  font-family: inherit;
}

.booked-calendar-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(16,24,40,.07);
  overflow: hidden;
}

body table.booked-calendar th,
body table.booked-calendar td {
  font-family: inherit;
}

body table.booked-calendar thead th {
  background: #061a42 !important;
  color: #fff !important;
}

body table.booked-calendar td.today .date {
  background: #e31e24 !important;
  color: #fff !important;
}

body table.booked-calendar td:hover .date {
  background: #1565c0 !important;
  color: #fff !important;
}

body .booked-calendar-wrap .booked-appt-list .timeslot .timeslot-people button {
  background: #e31e24 !important;
  border-color: #e31e24 !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
}

/* 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 Booking Page UX Fix */
.amc-booking-hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(227, 30, 36, 0.28), transparent 30%),
    linear-gradient(135deg, #061a42, #0d47a1);
  color: #fff;
  margin-top: -80px;
  min-height: 500px;
  height: 600px;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
}

.amc-booking-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 32px;
  align-items: center;
	margin-top:-80px;
}

.amc-booking-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
  max-width: 850px;
  margin: 0 0 18px;
}

.amc-booking-hero p {
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.7;
  max-width: 680px;
}

.amc-booking-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.amc-booking-hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(10px);
}

.amc-booking-hero-card strong {
  display: block;
  color: #fff;
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.amc-booking-hero-card span {
  color: #dbeafe;
  font-weight: 700;
}

.amc-mot-booking-section {
  background: #f6f8fb;
}

.amc-booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 32px;
  align-items: start;
}

.amc-booking-main,
.amc-booking-card,
.amc-booking-mini-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.amc-booking-main {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.amc-booking-main h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.amc-booking-intro {
  color: #475467;
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.amc-booking-form-area {
  margin-top: 1.25rem;
}

.amc-booking-form-area .booked-calendar-wrap,
.amc-booking-form-area .wpforms-container {
  margin-top: 0;
}

.amc-booking-sidebar {
  position: sticky;
  top: 150px;
}

.amc-booking-card {
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(227, 30, 36, 0.08), transparent 35%),
    #ffffff;
}

.amc-sidebar-label {
  display: inline-flex;
  align-items: center;
  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-booking-card h3 {
  margin: 0 0 10px;
  color: #101828;
  font-size: 28px;
  line-height: 1.15;
}

.amc-booking-card p {
  color: #475467;
  line-height: 1.65;
  margin-bottom: 22px;
}

.amc-sidebar-feature {
  padding: 16px 0;
  border-top: 1px solid #edf1f7;
}

.amc-sidebar-feature strong {
  display: block;
  color: #101828;
  font-size: 18px;
  margin-bottom: 5px;
}

.amc-sidebar-feature span {
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.amc-sidebar-contact {
  margin-top: 20px;
  background: #061a42;
  color: #ffffff;
  border-radius: 18px;
  padding: 18px;
}

.amc-sidebar-contact strong {
  display: block;
  margin-bottom: 8px;
}

.amc-sidebar-contact a {
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.amc-booking-mini-card {
  margin-top: 18px;
  padding: 20px;
}

.amc-booking-mini-card strong {
  display: block;
  color: #101828;
  margin-bottom: 8px;
}

.amc-booking-mini-card a {
  color: #e31e24;
  font-weight: 900;
  text-decoration: none;
}

/* Booked calendar basic cleanup inside booking page */
.amc-booking-form-area .booked-calendar-wrap {
  border-radius: 20px;
  overflow: hidden;
}

.amc-booking-form-area table.booked-calendar {
  margin-bottom: 0;
}

@media (max-width: 980px) {
	.amc-booking-hero {
		margin-top: -40px;
		min-height: auto;
		height: auto;
		padding-top: 90px;
		padding-bottom: 60px;
	  }
  .amc-booking-hero-grid,
  .amc-booking-layout {
    grid-template-columns: 1fr;
  }

  .amc-booking-sidebar {
    position: static;
  }
}

@media (max-width: 520px) {
  .amc-booking-hero {
    margin-top: -20px;
    padding-top: 70px;
    padding-bottom: 50px;
  }

  .amc-booking-hero-actions {
    display: grid;
  }

  .amc-booking-hero-actions .btn {
    width: 100%;
  }

  .amc-booking-main,
  .amc-booking-card,
  .amc-booking-mini-card {
    border-radius: 18px;
  }

  .amc-booking-card {
    padding: 22px;
  }
}
/* Global page hero adjustment */
.hero-section {
  margin-top: -80px;
  min-height: 600px;
  height: 600px;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
}

/* Keep hero content vertically centered */
.hero-section > .container {
  width: min(90%, 1280px);
}

/* Product/shop/service hero support */
.product-hero-section,
.shop-hero-section,
.amc-home-hero {
  min-height: 500px;
  height: 700px;
  align-items: center;
}

/* Mobile safety */
@media (max-width: 980px) {
  .hero-section {
    margin-top: -40px;
    min-height: auto;
    height: auto;
    padding-top: 90px;
    padding-bottom: 60px;
  }
}

@media (max-width: 520px) {
  .hero-section {
    margin-top: -20px;
    padding-top: 70px;
    padding-bottom: 50px;
  }
}

/* Header logo fix */
.site-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.site-logo .custom-logo-link,
.site-logo > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0d47a1;
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 56px;
}

.site-logo img,
.site-logo .custom-logo {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 48px;
  object-fit: contain;
}

@media (max-width: 520px) {
  .site-logo .custom-logo-link,
  .site-logo > a {
    padding: 8px 10px;
    min-height: 48px;
  }

  .site-logo img,
  .site-logo .custom-logo {
    max-width: 150px;
    max-height: 40px;
  }
}

/* Footer logo fix */
.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.footer-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 16px;
  max-width: 240px;
}

.footer-logo img {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 58px;
  object-fit: contain;
}

@media (max-width: 520px) {
  .footer-logo {
    justify-content: center;
  }

  .footer-logo a {
    max-width: 210px;
    padding: 10px 14px;
  }

  .footer-logo img {
    max-width: 160px;
    max-height: 48px;
  }
}

/* FINAL HEADER WHITE AREA REMOVE FIX */
.site-header {
  background: #0d1b2a !important;
}

.header-main {
  background: #1565c0 !important;
  padding: 0 !important;
  border-bottom: none !important;
}

.header-main .container {
  width: min(90%, 1280px) !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.header-main-inner {
  background: #1565c0 !important;
  box-shadow: none !important;
  min-height: 74px !important;
  border-radius: 0 !important;
}

/* Remove white logo box */
.site-logo .custom-logo-link,
.site-logo > a {
  background: transparent !important;
  padding: 0 !important;
  min-height: auto !important;
  border-radius: 0 !important;
}

/* Keep logo clean */
.site-logo img,
.site-logo .custom-logo {
  max-height: 58px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Mobile */
@media (max-width: 520px) {
  .header-main {
    padding: 0 !important;
  }

  .header-main .container {
    width: calc(100% - 24px) !important;
  }

  .header-main-inner {
    min-height: 64px !important;
    padding: 0 1rem !important;
  }

  .site-logo img,
  .site-logo .custom-logo {
    max-height: 46px !important;
  }
}

/* Contact Page UX Fix */
.contact-hero-section {
  margin-top: -80px;
  min-height: 500px;
  height: 600px;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
}

.amc-contact-hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 30px;
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.amc-contact-hero-card strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.amc-contact-hero-card span {
  display: block;
  color: #dbeafe;
  font-weight: 800;
  margin-bottom: 18px;
}

.amc-contact-hero-card p {
  color: #dbeafe;
  margin: 0;
  line-height: 1.7;
}

.amc-contact-section {
  background: #f6f8fb;
}

.amc-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 32px;
  align-items: start;
}

.amc-contact-main,
.amc-contact-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.amc-contact-main {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.amc-contact-main h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.amc-contact-intro {
  color: #475467;
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.amc-contact-form-area {
  margin-top: 1.25rem;
}

.amc-contact-form-area .wpforms-container {
  margin: 0;
}

.amc-contact-form-area .wpforms-field input,
.amc-contact-form-area .wpforms-field textarea,
.amc-contact-form-area .wpforms-field select {
  border-radius: 14px !important;
  border: 1px solid #d0d5dd !important;
  min-height: 48px;
}

.amc-contact-form-area .wpforms-submit {
  background: #e31e24 !important;
  border-radius: 999px !important;
  padding: 14px 24px !important;
  font-weight: 900 !important;
}

.amc-contact-sidebar {
  position: sticky;
  top: 150px;
  display: grid;
  gap: 18px;
}

.amc-contact-card {
  padding: 24px;
}

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

.amc-contact-call-card h3,
.amc-contact-call-card p {
  color: #ffffff;
}

.amc-sidebar-label {
  display: inline-flex;
  align-items: center;
  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-sidebar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e31e24;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  margin-top: 10px;
}

.amc-contact-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #101828;
}

.amc-contact-call-card h3 {
  color: #ffffff;
}

.amc-contact-row {
  padding: 14px 0;
  border-top: 1px solid #edf1f7;
}

.amc-contact-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.amc-contact-row strong {
  display: block;
  color: #101828;
  margin-bottom: 5px;
}

.amc-contact-row span,
.amc-contact-row a {
  color: #475467;
  line-height: 1.6;
  font-weight: 700;
}

.amc-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #edf1f7;
}

.amc-hours-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.amc-hours-row span {
  color: #667085;
}

.amc-hours-row strong {
  color: #101828;
  text-align: right;
}

.amc-contact-links {
  display: grid;
  gap: 10px;
}

.amc-contact-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #edf1f7;
  border-radius: 14px;
  padding: 13px 14px;
  color: #101828;
  font-weight: 900;
}

.amc-contact-links a:hover {
  background: #fff1f1;
  color: #e31e24;
}

.amc-map-section .map-wrap iframe {
  width: 100%;
  min-height: 460px;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

@media (max-width: 980px) {
  .contact-hero-section {
    margin-top: -40px;
    height: auto;
    min-height: auto;
    padding-top: 90px;
  }

  .amc-contact-layout,
  .contact-hero-section .hero-content-grid {
    grid-template-columns: 1fr;
  }

  .amc-contact-sidebar {
    position: static;
  }
}

@media (max-width: 520px) {
  .contact-hero-section {
    margin-top: -20px;
    padding-top: 70px;
  }

  .amc-contact-main,
  .amc-contact-card {
    border-radius: 18px;
  }

  .amc-hours-row {
    display: block;
  }

  .amc-hours-row strong {
    display: block;
    text-align: left;
    margin-top: 4px;
  }
}

/* Appointment + Free Repair Quote Page Templates */
.amc-form-hero {
  margin-top: -80px;
  min-height: 500px;
  height: 700px;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
}

.amc-form-hero-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  padding: 30px;
  color: #fff;
  backdrop-filter: blur(10px);
}

.amc-form-hero-card strong {
  display: block;
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.amc-form-hero-card span {
  display: block;
  color: #dbeafe;
  font-weight: 800;
  margin-bottom: 16px;
}

.amc-form-hero-card p {
  color: #dbeafe;
  margin: 0;
  line-height: 1.7;
}

.amc-form-section {
  background: #f6f8fb;
}

.amc-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 32px;
  align-items: start;
}

.amc-form-main,
.amc-side-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(16,24,40,.08);
}

.amc-form-main {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.amc-form-main h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.amc-form-intro {
  color: #475467;
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.amc-form-area {
  margin-top: 1.25rem;
}

.amc-form-area .wpforms-container {
  margin: 0;
}

.amc-form-area .wpforms-field input,
.amc-form-area .wpforms-field textarea,
.amc-form-area .wpforms-field select {
  border-radius: 14px !important;
  border: 1px solid #d0d5dd !important;
  min-height: 48px;
}

.amc-form-area .wpforms-submit {
  background: #e31e24 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 14px 24px !important;
  font-weight: 900 !important;
}

.amc-form-sidebar {
  position: sticky;
  top: 150px;
  display: grid;
  gap: 18px;
}

.amc-side-card {
  padding: 24px;
}

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

.amc-side-card-blue h3,
.amc-side-card-blue p {
  color: #fff;
}

.amc-sidebar-label {
  display: inline-flex;
  align-items: center;
  background: #fff1f1;
  color: #e31e24;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.amc-side-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.amc-side-card-blue a {
  display: inline-flex;
  background: #e31e24;
  color: #fff !important;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  margin-top: 8px;
}

.amc-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.amc-side-list li {
  padding: 12px 0 12px 28px;
  border-top: 1px solid #edf1f7;
  position: relative;
  color: #475467;
  font-weight: 700;
}

.amc-side-list li:first-child {
  border-top: 0;
}

.amc-side-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e31e24;
  font-weight: 900;
}

.amc-side-links {
  display: grid;
  gap: 10px;
}

.amc-side-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #edf1f7;
  border-radius: 14px;
  padding: 13px 14px;
  color: #101828;
  font-weight: 900;
}

.amc-side-links a:hover {
  background: #fff1f1;
  color: #e31e24;
}

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

  .amc-form-layout,
  .amc-form-hero .hero-content-grid {
    grid-template-columns: 1fr;
  }

  .amc-form-sidebar {
    position: static;
  }
}

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

  .amc-form-main,
  .amc-side-card {
    border-radius: 18px;
  }
}

/* Homepage Appointment + Quote CTA Cards */
.amc-action-cta-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

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

.amc-action-cta-card {
  display: block;
  background:
    radial-gradient(circle at top right, rgba(21, 101, 192, 0.12), transparent 35%),
    #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
  color: #101828;
  transition: all 0.25s ease;
}

.amc-action-cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(16, 24, 40, 0.14);
  color: #101828;
}

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

.amc-action-cta-red:hover {
  color: #ffffff;
}

.amc-action-label {
  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-action-cta-red .amc-action-label {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

.amc-action-cta-card h3 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.amc-action-cta-card p {
  color: #475467;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.amc-action-cta-red p {
  color: #dbeafe;
}

.amc-action-cta-card strong {
  color: #e31e24;
  font-weight: 900;
}

.amc-action-cta-red strong {
  color: #ffffff;
}

@media (max-width: 800px) {
  .amc-action-cta-grid {
    grid-template-columns: 1fr;
  }
}