/* ==========================================================================
   RRCT Drone Registration & Insurance Landing Page Stylesheet
   Design System: Clean White & High-Trust Corporate Blue (#ffffff, #0052cc, #f8fafc)
   ========================================================================== */

:root {
  /* High-Trust White Color Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-accent-light: #eff6ff;
  
  --color-primary: #0052cc;
  --color-primary-dark: #003b99;
  --color-primary-light: #e0edff;
  --color-secondary: #0284c7;
  --color-accent: #f59e0b;
  --color-success: #10b981;
  --color-line: #06c755;
  --color-dji: #e60012;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-inverse: #ffffff;
  
  --border-light: #e2e8f0;
  --border-glow: #bfdbfe;
  
  /* Fonts & Shadows */
  --font-family: 'Kanit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 4px 20px rgba(0, 82, 204, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 75px;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

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

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

/* Typography & Badges */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #0f172a;
  margin-bottom: 1rem;
}

h1 span.highlight {
  color: var(--color-primary);
  background: linear-gradient(120deg, rgba(0, 82, 204, 0.1) 0%, transparent 100%);
  padding: 0 6px;
  border-radius: 4px;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: #0f172a;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-accent-light);
  border: 1px solid var(--border-glow);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.badge-dji {
  background: #fff0f0;
  border: 1px solid #ffccd0;
  color: var(--color-dji);
}

.badge-line {
  background: #e6f9ed;
  border: 1px solid #a3e9be;
  color: #059669;
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.35);
  color: #ffffff;
}

.btn-line {
  background: var(--color-line);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.25);
}

.btn-line:hover {
  background: #05b04b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.35);
  color: #ffffff;
}

.btn-accent {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
  background: #d97706;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--bg-accent-light);
  border-color: var(--color-primary-dark);
  color: var(--color-primary-dark);
}

/* Header & Navigation Single Line Fix */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), #0072ff);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.05rem;
}

.logo-sub {
  font-size: 0.72rem;
  display: block;
  color: var(--color-primary);
  font-weight: 500;
  white-space: nowrap;
}

.nav-menu {
  display: none;
  gap: 1.1rem;
  align-items: center;
  list-style: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  color: #334155;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switch {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: #334155;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.lang-switch:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 3.5rem 0 4.5rem 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 60%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.highlight-icon {
  color: var(--color-success);
  font-weight: bold;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Hero Card Preview */
.hero-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.hero-drone-banner-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
}

.hero-card-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-tag {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

.fee-badge {
  display: inline-block;
  background: #e6f9ed;
  color: #059669;
  border: 1px solid #a3e9be;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}

/* QR Code Section inside Hero Card */
.hero-line-qr-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.hero-qr-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
}

/* Partner Trust Section */
.trust-section {
  background: #ffffff;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .partner-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.partner-box {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  box-shadow: var(--shadow-sm);
}

.partner-box:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.partner-img-wrapper {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.partner-img-wrapper img {
  max-height: 65px;
  max-width: 140px;
  object-fit: contain;
}

.partner-logo-title {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 4px;
  color: #0f172a;
}

.partner-logo-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Package Tier Labels (Standard / Premium) */
.pkg-tier-label {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pkg-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.pkg-tier-std {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid #16a34a;
  color: #15803d;
}

.pkg-tier-prem {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
}

.pkg-tier-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Standard Package Cards (no drone image, more compact) */
.price-card-std {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.price-card-std:hover {
  border-color: #16a34a;
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.12);
}

.price-card-std.popular {
  border: 2px solid #16a34a;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.15);
}

/* Big eye-catching price for Standard (cheapest) tier */
.price-amount-std {
  font-size: 3rem !important;
  font-weight: 800 !important;
  color: #16a34a !important;
  margin: 0.75rem 0 0.25rem 0;
  line-height: 1;
}

.price-amount-std span {
  font-size: 1rem !important;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
}

/* Separate grid for std cards (no drone image = can be more compact) */
.pricing-grid-std {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-grid-std {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Packages & Pricing Section */
.section-padding {
  padding: 4.5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.price-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.price-card.popular {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}

.drone-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-light);
}

.popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  white-space: nowrap;
}

.price-card-header {
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.price-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.price-card-dji-tier {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1rem 0 0.25rem 0;
}

.price-amount span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #334155;
}

.price-features li svg {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Calculator Box */
.calculator-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

.drone-selector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2rem;
}

.drone-pill {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: #334155;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.drone-pill:hover, .drone-pill.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  font-weight: 600;
}

.calc-result-display {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .calc-result-display {
    grid-template-columns: 1fr 1fr;
  }
}

/* Checklist Section */
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .checklist-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.checklist-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.checklist-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.checklist-items {
  list-style: none;
}

.checklist-items li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #334155;
}

.checklist-items li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: bold;
}

/* Foreigner Section */
.foreigner-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0edff 100%);
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
}

.contact-badge-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-primary);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
  color: var(--color-primary);
  font-weight: bold;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 2rem 0;
  font-size: 0.9rem;
}

.footer h4, .footer .logo {
  color: #ffffff !important;
}

.footer a {
  color: #cbd5e1;
}

.footer a:hover {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Mobile Sticky Bottom Contact Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.sticky-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 600;
}

.sticky-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.sticky-line { background: #06C755; color: #fff; }
.sticky-wa { background: #25D366; color: #fff; }
.sticky-wc { background: #07C160; color: #fff; }

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.qr-box {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  display: inline-block;
  margin: 1.25rem 0;
}

.qr-box img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}
