/**
 * Renting a Car in Kerala - The Definitive Statewide Guide & Mobility Portal Stylesheet
 * Scoped Namespace: .rnk-page
 * Design System: Electric Cobalt (#1261f2) + Kinetic Sky Cyan (#38bdf8) + Kerala Emerald (#10b981) + Sun Amber (#ffcc00) + Deep Obsidian (#050814)
 * 100% WCAG 2.1/2.2 AAA Contrast Hardening & Core Web Vitals Optimized
 */

/* ==========================================================================
   1. DESKTOP NAVIGATION OVERRIDES OVER DARK TRANSPARENT HERO
   ========================================================================== */
@media (min-width: 992px) {
  body#body .navigation:not(.sticky-header) .navbar-light .navbar-nav .nav-item .nav-link,
  body#body .navigation:not(.sticky-header) .navbar-nav .nav-link {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
  }
  body#body .navigation:not(.sticky-header) .navbar-light .navbar-nav .nav-item .nav-link:hover,
  body#body .navigation:not(.sticky-header) .navbar-nav .nav-link:hover {
    color: #38bdf8 !important;
  }
  body#body .navigation:not(.sticky-header) .topbar a {
    color: #ffffff !important;
  }
}

/* ==========================================================================
   2. CORE CANVAS & TYPOGRAPHY SYSTEM
   ========================================================================== */
.rnk-page {
  background-color: #050814 !important;
  color: #f1f5f9 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.rnk-page h1,
.rnk-page h2,
.rnk-page h3,
.rnk-page h4,
.rnk-page h5,
.rnk-page h6 {
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin-top: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.rnk-page p,
.rnk-page li {
  color: #e2e8f0 !important;
  font-size: 16px;
  line-height: 1.65;
}

.rnk-page strong,
.rnk-page b {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.rnk-page a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rnk-page a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Section Containers */
.rnk-sec {
  padding: 84px 0;
  position: relative;
}

.rnk-sec.alt {
  background-color: #080d24 !important;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.rnk-sec.deep {
  background: radial-gradient(circle at 50% 0%, #0d1a3a 0%, #050814 100%) !important;
}

/* Section Header */
.rnk-head {
  margin-bottom: 48px;
}

.rnk-head.center {
  text-align: center;
}

.rnk-head.center .rnk-sub {
  margin-left: auto;
  margin-right: auto;
}

.rnk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.14) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.rnk-title {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 14px;
}

.rnk-sub {
  color: #cbd5e1 !important;
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 760px;
  line-height: 1.6;
}

/* ==========================================================================
   3. HERO SECTION & HERO BOOKING ENGINE
   ========================================================================== */
.rnk-hero {
  position: relative;
  background-color: #050814;
  background-image: 
    radial-gradient(ellipse at 85% 20%, rgba(18, 97, 242, 0.28) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.18) 0%, transparent 50%);
  padding: 130px 0 80px;
  overflow: hidden;
}

.rnk-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.22;
  filter: saturate(1.2) contrast(1.1);
  pointer-events: none;
}

.rnk-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 20, 0.75) 0%, rgba(5, 8, 20, 0.94) 85%, #050814 100%);
  z-index: 1;
}

.rnk-hero .container {
  position: relative;
  z-index: 2;
}

.rnk-crumbs {
  font-size: 14px;
  color: #94a3b8 !important;
  margin-bottom: 20px;
}

.rnk-crumbs a {
  color: #38bdf8 !important;
}

.rnk-crumbs a:hover {
  text-decoration: underline;
}

/* Status Pill */
.rnk-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.rnk-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: rnkPulse 2s infinite ease-in-out;
}

@keyframes rnkPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.rnk-hero h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.rnk-hero h1 span.gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, #38bdf8 50%, #ffd9a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rnk-hero-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: #cbd5e1 !important;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 680px;
}

/* Quick Jump Chips */
.rnk-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.rnk-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.rnk-quick-chip i {
  color: #38bdf8 !important;
}

.rnk-quick-chip:hover {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-2px);
}

/* 4-Metric Grid */
.rnk-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.rnk-metric-item {
  background: #0d1733 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}

.rnk-metric-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff !important;
  line-height: 1.1;
  margin-bottom: 4px;
}

.rnk-metric-item span {
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero Booking Card */
.rnk-booking-card {
  background: #0d1733 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65) !important;
  position: relative;
}

.rnk-booking-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 3px;
  background: linear-gradient(90deg, #1261f2, #38bdf8, #10b981);
  border-radius: 3px;
}

.rnk-booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rnk-booking-header h3 {
  font-size: 19px;
  margin: 0;
  color: #ffffff !important;
}

.rnk-booking-header span {
  font-size: 12px;
  font-weight: 700;
  color: #ffcc00 !important;
  background: rgba(255, 204, 0, 0.16) !important;
  border: 1px solid rgba(255, 204, 0, 0.45) !important;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Service Mode Switch */
.rnk-service-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #080d24;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}

.rnk-mode-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rnk-mode-btn.is-active {
  background: #1261f2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(18, 97, 242, 0.45);
}

/* Form Groups & Inputs */
.rnk-form-group {
  margin-bottom: 14px;
}

.rnk-form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9 !important;
  margin-bottom: 6px;
}

.rnk-form-group label i {
  color: #38bdf8 !important;
}

.rnk-input,
.rnk-select {
  width: 100%;
  height: 46px;
  background: #080d24 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rnk-input:focus,
.rnk-select:focus {
  outline: none;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

.rnk-select option {
  background: #080d24 !important;
  color: #ffffff !important;
}

/* Live Duration Banner */
.rnk-duration-banner {
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px dashed rgba(56, 189, 248, 0.4) !important;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: #cbd5e1 !important;
}

.rnk-duration-banner strong {
  color: #ffcc00 !important;
  font-size: 14px;
}

/* Buttons */
.rnk-btn-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  border: none;
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rnk-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
}

.rnk-btn-phone {
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rnk-btn-phone:hover {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  text-decoration: none;
}

/* ==========================================================================
   4. COMPARISON CARDS: SELF-DRIVE VS CHAUFFEUR
   ========================================================================== */
.rnk-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.rnk-compare-card {
  background: #0d1733 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.rnk-compare-card.highlight {
  border-color: #38bdf8 !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15) !important;
}

.rnk-compare-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.rnk-compare-badge.self {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
}

.rnk-compare-badge.driver {
  color: #ffcc00 !important;
  background: rgba(255, 204, 0, 0.15) !important;
  border: 1px solid rgba(255, 204, 0, 0.4) !important;
}

.rnk-compare-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #ffffff !important;
}

.rnk-compare-card p {
  font-size: 14px;
  color: #cbd5e1 !important;
  line-height: 1.6;
  margin-bottom: 18px;
}

.rnk-compare-points {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.rnk-compare-points li {
  font-size: 13px;
  color: #e2e8f0 !important;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.rnk-compare-points li i {
  color: #10b981 !important;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ==========================================================================
   5. PERSONA CHECKLISTS (INDIAN, NRI, FOREIGN)
   ========================================================================== */
.rnk-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.rnk-checklist-card {
  background: #0d1733 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 12px;
  padding: 24px 20px;
}

.rnk-checklist-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(18, 97, 242, 0.2);
  border: 1px solid #1261f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 18px;
  margin-bottom: 14px;
}

.rnk-checklist-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #ffffff !important;
}

.rnk-checklist-card p {
  font-size: 13px;
  color: #cbd5e1 !important;
  margin-bottom: 14px;
}

.rnk-docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rnk-docs-list li {
  font-size: 13px;
  color: #e2e8f0 !important;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rnk-docs-list li i {
  color: #ffcc00 !important;
  font-size: 12px;
}

/* ==========================================================================
   6. 4 KERALA AIRPORTS PROTOCOL
   ========================================================================== */
.rnk-airports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.rnk-airport-card {
  background: #0d1733 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 12px;
  padding: 22px 18px;
}

.rnk-airport-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #ffcc00 !important;
  background: rgba(255, 204, 0, 0.15) !important;
  border: 1px solid rgba(255, 204, 0, 0.35) !important;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.rnk-airport-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #ffffff !important;
}

.rnk-airport-card p {
  font-size: 13px;
  color: #cbd5e1 !important;
  line-height: 1.55;
  margin-bottom: 12px;
}

.rnk-airport-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rnk-airport-points li {
  font-size: 12px;
  color: #e2e8f0 !important;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rnk-airport-points li i {
  color: #38bdf8 !important;
}

/* ==========================================================================
   7. TERRAIN-TO-VEHICLE MATCHER
   ========================================================================== */
.rnk-terrain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.rnk-terrain-card {
  background: #0d1733 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 12px;
  padding: 22px 18px;
}

.rnk-terrain-icon {
  font-size: 24px;
  color: #38bdf8;
  margin-bottom: 12px;
}

.rnk-terrain-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #ffffff !important;
}

.rnk-terrain-vehicle {
  font-size: 13px;
  font-weight: 700;
  color: #ffcc00 !important;
  margin-bottom: 10px;
}

.rnk-terrain-card p {
  font-size: 13px;
  color: #cbd5e1 !important;
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   8. TARIFF MATRIX TABLE
   ========================================================================== */
.rnk-table-wrapper {
  overflow-x: auto;
  background: #0d1733 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5) !important;
}

.rnk-rates-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.rnk-rates-table th {
  background: #111e42 !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 16px 18px;
  border-bottom: 2px solid rgba(56, 189, 248, 0.4) !important;
  text-align: left;
}

.rnk-rates-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  font-size: 14px;
  vertical-align: middle;
}

.rnk-rates-table tr:hover td {
  background: rgba(56, 189, 248, 0.06) !important;
}

.rnk-rates-table .tier-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  padding: 3px 8px;
  border-radius: 4px;
}

.rnk-rates-table .price-val {
  color: #ffcc00 !important;
  font-size: 16px;
  font-weight: 800;
}

/* ==========================================================================
   9. SINGLE-OPEN FAQ ACCORDION
   ========================================================================== */
.rnk-faq-accordion {
  max-width: 860px;
  margin: 0 auto;
}

.rnk-faq-item {
  background: #0d1733 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.rnk-faq-item[open] {
  border-color: #38bdf8 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.rnk-faq-summary {
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff !important;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.rnk-faq-summary::-webkit-details-marker {
  display: none;
}

.rnk-faq-summary:after {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #38bdf8;
  font-size: 14px;
  transition: transform 0.25s ease;
}

.rnk-faq-item[open] .rnk-faq-summary:after {
  transform: rotate(180deg);
  color: #ffcc00;
}

.rnk-faq-content {
  padding: 0 22px 20px 22px;
  font-size: 15px;
  color: #cbd5e1 !important;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

/* ==========================================================================
   10. MOBILE STICKY CONVERSION DOCK
   ========================================================================== */
.rnk-mobile-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: rgba(5, 8, 20, 0.95) !important;
  border-top: 1px solid rgba(56, 189, 248, 0.3) !important;
  backdrop-filter: blur(12px);
  padding: 10px 14px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5) !important;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.rnk-mobile-dock.is-visible {
  transform: translateY(0);
}

.rnk-mobile-dock-inner {
  display: flex;
  gap: 10px;
}

.rnk-mobile-dock .btn-dock-call {
  flex: 1;
  height: 44px;
  background: #1261f2 !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  text-decoration: none;
}

.rnk-mobile-dock .btn-dock-wa {
  flex: 1;
  height: 44px;
  background: #25d366 !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  text-decoration: none;
}

@media (max-width: 991px) {
  .rnk-mobile-dock {
    display: block;
  }
  .rnk-hero {
    padding: 100px 0 60px;
  }
  .rnk-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .rnk-booking-card {
    margin-top: 36px;
  }
}

@media (max-width: 575px) {
  .rnk-sec {
    padding: 56px 0;
  }
  .rnk-hero {
    padding: 90px 0 50px;
  }
  .rnk-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .rnk-metric-item {
    padding: 10px;
  }
  .rnk-metric-item strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rnk-compare-card,
  .rnk-btn-submit,
  .rnk-mobile-dock {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
