/* VehicleRegDetail.com - SEO-focused RTO Vehicle Info Portal */
:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-light: #ccfbf1;
  --accent: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--brand); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brand);
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  padding: 64px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 16px;
  color: var(--brand-dark);
  line-height: 1.2;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 32px;
}

.search-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  padding: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.search-row input {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}
.search-row input:focus { border-color: var(--brand); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn-accent { background: var(--accent); color: #1f2937; }
.btn-accent:hover { background: #d97706; color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; text-decoration: none; }
.btn-block { width: 100%; }

.cta-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  padding: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.cta-buttons .btn { flex: 1 1 220px; }

.hero-meta {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Sections */
.section { padding: 56px 0; }
.section-title {
  font-size: 1.9rem;
  margin: 0 0 12px;
  color: var(--brand-dark);
}
.section-sub {
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 760px;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.07);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card a { font-weight: 700; }

.category-title {
  font-size: 1.3rem;
  color: var(--brand-dark);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-light);
}

/* Features / Steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.step {
  position: relative;
  padding-left: 56px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.step h4 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Info blocks */
.info-block {
  background: var(--surface);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}
.info-block h4 { margin-top: 0; color: var(--brand-dark); }

/* Quick answer (GEO) */
.answer-box {
  margin: 22px 0 0;
  padding: 18px 20px;
  background: #f0fdfa;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}
.answer-box p { margin: 0; }
.answer-label {
  margin-bottom: 8px !important;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Read next */
.read-next {
  margin: 32px 0 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.read-next h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--brand-dark);
}
.read-next ul { margin: 0; padding-left: 20px; }
.read-next li { margin: 0 0 8px; color: var(--muted); }
.read-next li:last-child { margin-bottom: 0; }
.read-next a { font-weight: 600; }

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; }
tr:last-child td { border-bottom: none; }

/* Result mockup */
.result-card {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}
.result-card h3 { margin-top: 0; color: var(--brand-dark); }
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.result-item dt { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.result-item dd { font-size: 1.05rem; font-weight: 700; margin: 0; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--brand); }

/* Article */
.article h2 { color: var(--brand-dark); margin-top: 40px; }
.article h3 { color: var(--brand); margin-top: 28px; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 8px; }

/* FAQ */
.faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--brand-dark);
}
.faq p { margin: 12px 0 0; color: var(--muted); }

/* Forms */
.contact-form { margin-top: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--brand-dark);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--brand-light);
  border-color: var(--brand);
}
.form-group small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}
.form-privacy-note {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 12px 14px;
  color: #115e59;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* About page */
.about-section { margin-bottom: 32px; }
.about-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.about-value { background: var(--surface); border-radius: 10px; padding: 18px; border: 1px solid var(--border); }
.about-value h4 { margin-top: 0; color: var(--brand-dark); }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 24px 0;
  margin-top: 48px;
}
.site-footer a { color: #99f6e4; }
.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
}
.footer-links {
  margin: 0 0 12px;
  font-weight: 600;
}
.footer-links a {
  color: #fff;
  margin: 0 6px;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-links .sep {
  color: #475569;
  margin: 0 6px;
}
.footer-disclaimer-text {
  max-width: 860px;
  margin: 0 auto 12px;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.6;
}
.copyright {
  border-top: 1px solid #334155;
  padding-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* E-E-A-T Trust Elements */
.trust-banner {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #7c2d12;
  padding: 10px 0;
  font-size: 0.9rem;
  text-align: center;
}
.trust-banner a {
  color: #c2410c;
  font-weight: 700;
  text-decoration: underline;
}
.trust-banner strong { color: #9a3412; }

.last-updated {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 28px 0;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.author-info h4 { margin: 0 0 6px; color: var(--brand-dark); }
.author-info p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.author-info .author-title { color: var(--text); font-weight: 700; }

.official-source {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}
.official-source h4 { margin: 0 0 8px; color: #1e40af; }
.official-source p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.official-source a { font-weight: 700; }

.footer-disclaimer {
  background: #1e293b;
  border-radius: 8px;
  padding: 16px;
  margin-top: 24px;
  font-size: 0.9rem;
  color: #cbd5e1;
}
.footer-disclaimer strong { color: #f87171; }

.guide-notice {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 14px 18px;
  color: #115e59;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Mobile-first optimizations */
.trust-banner {
  line-height: 1.5;
  padding: 12px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; min-width: 44px; min-height: 44px; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 1.75rem; line-height: 1.25; }
  .hero .lead { font-size: 1rem; }
  .search-box { padding: 18px; border-radius: 10px; }
  .search-row input { width: 100%; min-height: 48px; font-size: 16px; }
  .btn { width: 100%; min-height: 48px; }
  .section { padding: 36px 0; }
  .section-title { font-size: 1.55rem; }
  .grid { gap: 16px; }
  .card { padding: 18px; }
  .author-box { flex-direction: column; gap: 12px; }
  .footer-grid { gap: 24px; }
  table { font-size: 0.9rem; }
  th, td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.55rem; }
  .search-row input { font-size: 16px; }
  .btn { padding: 12px 20px; }
  .card-icon { width: 42px; height: 42px; font-size: 1.2rem; }
}
