/* ============================================================
   AcuSkill Modern Theme
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #3a3f47;
  --navy-light: #4e545e;
  --blue:       #3b7ea1;
  --blue-light: #4d9ac0;
  --accent:     #2a6f97;
  --accent-dark:#1f5a7a;
  --gray-50:    #f8f9fa;
  --gray-100:   #f1f3f5;
  --gray-200:   #e9ecef;
  --gray-300:   #dee2e6;
  --gray-500:   #adb5bd;
  --gray-700:   #495057;
  --gray-900:   #212529;
  --white:      #ffffff;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:  0 8px 30px rgba(0,0,0,.12);
  --transition: .25s ease;
  --max-width:  1200px;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; }
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Top Bar --- */
.topbar {
  background: var(--navy);
  color: var(--gray-300);
  font-size: .85rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--gray-300); }
.topbar a:hover { color: var(--white); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }

/* --- Header / Navbar --- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 48px; width: auto; }
.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--accent); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .95rem;
  color: var(--gray-700);
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--gray-100);
  color: var(--navy);
}
.main-nav a.btn-schedule {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
}
.main-nav a.btn-schedule:hover {
  background: var(--accent-dark);
  color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--blue) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1" width="100" height="100"/></svg>');
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: 2.75rem; margin-bottom: 16px; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 700px; margin-bottom: 32px; line-height: 1.7; }
/* --- Trust Band --- */
.trust-band {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}
.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--navy);
}
.trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .85rem;
  color: rgba(255,255,255,.9);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  color: var(--white);
}

/* --- Section --- */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--white);
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--gray-700); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 12px; }

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Hours Card --- */
.hours-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hours-card-header {
  background: var(--accent);
  color: var(--white);
  padding: 20px 28px;
  font-size: 1.2rem;
  font-weight: 600;
}
.hours-card-body { padding: 24px 28px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}
.hours-row:last-child { border-bottom: none; }
.hours-day { font-weight: 500; color: var(--gray-900); }
.hours-time { color: var(--gray-700); }
.hours-closed { color: var(--accent); font-weight: 500; }

/* --- Closures --- */
.closures-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.closures-card-header {
  background: var(--navy);
  color: var(--white);
  padding: 20px 28px;
  font-size: 1.2rem;
  font-weight: 600;
}
.closures-card-body { padding: 24px 28px; }
.closure-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}
.closure-item:last-child { border-bottom: none; }
.closure-name { font-weight: 500; }
.closure-date { color: var(--gray-700); font-size: .9rem; }

/* --- Partner Logos --- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: center;
}
.partner-logo {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}
.partner-logo:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
}
.partner-logo img {
  max-height: 55px;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter var(--transition);
}
.partner-logo:hover img { filter: grayscale(0%); }

/* --- Accordion (Collapsible) --- */
.accordion { margin-bottom: 12px; }
.accordion-toggle {
  width: 100%;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 48px 16px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  position: relative;
}
.accordion-toggle::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gray-500);
  transition: transform var(--transition);
}
.accordion-toggle.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  border-radius: var(--radius) var(--radius) 0 0;
}
.accordion-toggle.active::after {
  content: '\2212';
  color: rgba(255,255,255,.6);
}
.accordion-toggle:hover:not(.active) {
  background: var(--gray-200);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.accordion-content-inner {
  padding: 20px 24px;
}
.accordion-content ul { margin: 8px 0; padding-left: 24px; }
.accordion-content li { margin-bottom: 6px; }

/* --- Open Section (non-collapsible provider info) --- */
.open-section {
  margin-top: 16px;
}
.open-section + .open-section {
  margin-top: 0;
}
.open-section-header {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 14px 20px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
}
.open-section-body {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px 24px;
  margin-bottom: 4px;
}
.open-section-body ul { margin: 8px 0; padding-left: 24px; }
.open-section-body li { margin-bottom: 6px; }

/* --- Contact Form --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--gray-900);
}
.form-group label.error { color: var(--accent); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  max-width: none;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(58,107,181,.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
}
.field-error {
  color: #dc2626;
  font-size: .85rem;
  margin-top: 4px;
  min-height: 0;
}

/* --- Exam Provider Select --- */
.provider-select-wrap {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.provider-select-wrap select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--white);
  margin-bottom: 16px;
  cursor: pointer;
}
.provider-select-wrap select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(58,107,181,.15);
}

/* --- Provider Card Grid --- */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-decoration: none;
  color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  min-height: 160px;
}
.provider-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: var(--navy);
}
.provider-card-logo {
  max-width: 140px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 12px;
}
.provider-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}
.provider-card-desc {
  font-size: .82rem;
  color: var(--gray-700);
  margin-top: 6px;
  line-height: 1.4;
}
.provider-filter {
  max-width: 400px;
  margin: 0 auto 28px;
  position: relative;
}
.provider-filter input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.provider-filter input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,126,161,.15);
}
.provider-filter .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
}
.provider-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: var(--gray-700);
  display: none;
}

/* --- Facility Strip (homepage) --- */
.facility-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.facility-strip-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.facility-strip-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.facility-strip-item:hover img {
  transform: scale(1.05);
}
.facility-strip-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: var(--white);
  padding: 24px 16px 12px;
  font-size: .9rem;
  font-weight: 500;
}
@media (max-width: 992px) {
  .facility-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .facility-strip { grid-template-columns: 1fr; }
  .facility-strip-item img { height: 200px; }
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* --- Info Box --- */
.info-box {
  background: #eff6ff;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
}
.info-box p { margin: 0; color: var(--navy); }

/* --- Feature Cards on Home --- */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 1.5rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { margin-top: 12px; font-size: .9rem; line-height: 1.7; }
.footer-heading {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }

/* --- Map --- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.map-container iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* --- Voucher Cards --- */
.voucher-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}
.voucher-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.voucher-card-body { padding: 24px; }
.voucher-card-body h3 { margin-bottom: 8px; }
.voucher-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 12px 0;
}

/* --- Page Header (internal pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 48px 0;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,.75); font-size: 1.05rem; }
.breadcrumb {
  list-style: none;
  display: flex;
  gap: 8px;
  font-size: .9rem;
  margin-bottom: 12px;
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: rgba(255,255,255,.4);
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--white); }

/* --- NCTA Badge --- */
.ncta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.ncta-badge img { height: 40px; }

/* ============================================================
   Legacy Compatibility
   Styles for old exam provider includes (collapsible, layout IDs)
   ============================================================ */

/* Old collapsible buttons used in exam provider includes */
.collapsible {
  width: 100%;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 48px 16px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  position: relative;
  font-family: var(--font);
}
.collapsible::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gray-500);
  transition: transform var(--transition);
}
.collapsible.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  border-radius: var(--radius) var(--radius) 0 0;
}
.collapsible.active::after {
  content: '\2212';
  color: rgba(255,255,255,.6);
}
.collapsible:hover:not(.active) {
  background: var(--gray-200);
}

/* Old collapsible content panels */
.content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0 24px;
}
.content.addborder {
  /* addborder class toggled by old JS */
  border-color: var(--gray-300);
}
.content hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0 0 16px;
}
.content p { margin: 8px 0; }
.content ul { margin: 8px 0; padding-left: 24px; }
.content li { margin-bottom: 6px; }

/* Old layout IDs used by provider includes */
#middle {
  margin: 16px 0;
}
#top {
  margin: 16px 0;
}
#bottom {
  margin: 16px 0;
}
#indentcontainer {
  width: 100%;
  margin: 8px auto;
  padding: 8px 0;
}
#centerme {
  margin-left: auto;
  margin-right: auto;
  max-width: 400px;
}
#container {
  width: 100%;
  overflow: hidden;
}
#hours {
  font-family: 'Inter', monospace;
}

/* Old column layout IDs */
#col21 {
  float: left;
  width: 50%;
  padding-right: 16px;
}
#col22 {
  float: left;
  width: 50%;
  padding-left: 16px;
}
#colleft {
  float: left;
  width: 60%;
}
#colright {
  float: left;
  width: 40%;
}

/* Old error styling */
#error {
  color: var(--accent);
  font-weight: 500;
}
p#error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin: 12px 0;
}
label#error {
  color: var(--accent);
}

/* Old form submit button */
input#submit,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  margin-top: 8px;
}
input#submit:hover,
input[type="submit"]:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* Old select elements */
select {
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--white);
  cursor: pointer;
}
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(58,107,181,.15);
}

/* Old input text fields */
input[type="text"],
input[type="email"] {
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--white);
  width: 100%;
  max-width: 400px;
  margin-bottom: 8px;
}
input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(58,107,181,.15);
}

textarea {
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--white);
  width: 100%;
  max-width: 400px;
  min-height: 120px;
  resize: vertical;
  margin-bottom: 8px;
}
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(58,107,181,.15);
}

/* Old center tag styling (legacy HTML) */
center {
  text-align: center;
}

/* Clearfix for float-based layouts */
#container::after,
#middle::after,
#top::after,
#bottom::after {
  content: '';
  display: table;
  clear: both;
}

/* Old .selectContainer used by schedule_exam include */
.selectContainer {
  text-align: center;
  padding: 16px;
}
.selectContainer h3 {
  margin-bottom: 16px;
}

/* Responsive adjustments for legacy columns */
@media (max-width: 768px) {
  #col21, #col22, #colleft, #colright {
    float: none;
    width: 100%;
    padding: 0;
  }
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.25rem; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; justify-content: flex-start; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .provider-card { padding: 20px 16px; min-height: 100px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 40px 0; }
  .topbar-right { display: none; }
  .trust-items { gap: 16px; justify-content: flex-start; }
  .trust-item { font-size: .85rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card { padding: 20px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
}
