/* Wayzuno Flight Compensation & Passenger Rights Calculator Styles */

:root {
  --bg-dark: #0b0f19;
  --card-bg: rgba(30, 41, 59, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(56, 189, 248, 0.35);
  --primary-accent: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.15);
  --success-accent: #34d399;
  --warning-accent: #fbbf24;
  --danger-accent: #f87171;
  --text-main: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
}

.compensation-body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* Page Container */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Site Header */
.site-header {
  border-bottom: 1px solid var(--card-border);
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-accent);
}

.nav-beta {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-weight: 700;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.breadcrumb li+li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
  color: var(--text-dim);
}

/* Hero Section */
.page-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3rem;
}

.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 2rem;
}

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

.stat-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-accent);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Calculator Section */
.calculator-section {
  margin-bottom: 4rem;
}

.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.calc-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.calc-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.calc-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.calc-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

.calc-form {
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-select {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.form-select:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Calculator Result Shell */
.calc-result-shell {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 1rem;
  padding: 1.75rem;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.governing-law-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-accent);
  display: block;
  letter-spacing: 0.04em;
}

.result-payout-heading {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.legal-reference {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.status-pill {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.status-eligible {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-ineligible {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.result-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: rgba(15, 23, 42, 0.5);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.r-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.r-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.r-note {
  font-size: 0.825rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.45;
}

.text-success {
  color: #34d399 !important;
}

.text-accent {
  color: #38bdf8 !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.result-actions-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-res-action {
  flex: 1;
  min-width: 220px;
  background: var(--primary-accent);
  color: #0b0f19;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.65rem;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-res-action:hover {
  background: #7dd3fc;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}

.btn-res-outline {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn-res-outline:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
}

/* Regulation Comparison Matrix */
.matrix-section {
  margin-bottom: 4rem;
}

.section-title-wrap {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-dim);
  margin: 0;
  max-width: 800px;
  line-height: 1.6;
}

.reg-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.reg-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.reg-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-hover-border);
}

.reg-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reg-flag {
  font-size: 2.25rem;
  line-height: 1;
}

.reg-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.reg-scope {
  font-size: 0.825rem;
  color: var(--text-dim);
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.reg-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reg-detail-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.45;
}

.payout-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.payout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.4rem 0.65rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.payout-dist {
  color: var(--text-dim);
}

.payout-val {
  font-weight: 700;
}

.reg-defense-box {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.defense-title {
  display: block;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.25rem;
}

.defense-text {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Portals Grid */
.claims-directory-section {
  margin-bottom: 4rem;
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.portal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.85rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.portal-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-hover-border);
}

.portal-header {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.carrier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-weight: 800;
  font-size: 1rem;
}

.carrier-meta h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.jurisdiction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.j-tag {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  color: #cbd5e1;
}

.portal-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portal-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
}

.portal-k {
  color: var(--text-dim);
}

.portal-v {
  font-weight: 600;
}

.portal-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  padding-top: 0.5rem;
}

.portal-footer {
  padding: 0.85rem 1.25rem;
  background: rgba(15, 23, 42, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-claim-link {
  display: block;
  text-align: center;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.45rem;
  transition: all 0.15s ease;
}

.btn-claim-link:hover {
  background: var(--primary-accent);
  color: #0b0f19;
}

/* Claim Letter Templates */
.templates-section {
  margin-bottom: 4rem;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.template-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.template-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.template-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-accent);
  background: rgba(56, 189, 248, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
}

.template-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
}

.btn-copy-template {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--primary-accent);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 0.45rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-template:hover {
  background: var(--primary-accent);
  color: #0b0f19;
}

.btn-copy-template.copied {
  background: #34d399;
  border-color: #34d399;
  color: #0b0f19;
}

.template-pre {
  margin: 0;
  padding: 1.25rem 1.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #cbd5e1;
  background: rgba(11, 15, 25, 0.8);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 380px;
  overflow-y: auto;
}

/* FAQ Section */
.faq-section {
  margin-top: 4rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 0.65rem;
  padding: 1rem 1.25rem;
}

.faq-question {
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary-accent);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  background: rgba(11, 15, 25, 0.9);
  padding: 3rem 1.5rem 4rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--primary-accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .templates-grid {
    grid-template-columns: 1fr;
  }
  .reg-cards-grid {
    grid-template-columns: 1fr;
  }
  .calc-card {
    padding: 1.25rem;
  }
  .result-actions-row {
    flex-direction: column;
  }
}
