/*
Theme Name: VereOnline Flight
Theme URI: https://vereonline.local
Author: VereOnline
Author URI: https://vereonline.local
Description: Theme WordPress ban ve may bay voi giao dien hien dai, toi uu chuyen doi.
Version: 1.0.0
Text Domain: vereonline-flight
*/

:root {
  --bg: #eef4fb;
  --surface: #ffffff;
  --surface-soft: #f5f9ff;
  --primary: #0052cc;
  --primary-dark: #003e99;
  --accent: #ff7a00;
  --text: #0f172a;
  --muted: #5b6475;
  --border: #d6dfed;
  --radius: 18px;
  --shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%, #d9e7ff 0, transparent 40%),
    radial-gradient(circle at 85% 85%, #d7f7ff 0, transparent 38%),
    var(--bg);
  font-family: "Be Vietnam Pro", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(238, 244, 251, 0.86);
  border-bottom: 1px solid rgba(214, 223, 237, 0.65);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), #00a8ff);
  box-shadow: 0 10px 18px rgba(0, 82, 204, 0.3);
}

.header-action {
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), #ff9d36);
}

.hero {
  padding: clamp(44px, 6vw, 80px) 0 30px;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
}

.hero p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
}

.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(14px, 2.5vw, 24px);
}

.booking-request-form {
  width: 100%;
}

.request-title {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  text-transform: uppercase;
  color: #0f5fb7;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.request-field {
  display: flex;
  flex-direction: column;
}

.request-field label {
  margin: 0 0 6px;
  font-size: .95rem;
  font-weight: 600;
}

.request-field input,
.request-field textarea {
  width: 100%;
  border: 1px solid #bcc6d4;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.request-field textarea {
  resize: vertical;
  min-height: 88px;
}

.request-field-full {
  grid-column: 1 / -1;
}

.request-submit {
  margin-top: 14px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(145deg, #1f7ed8, #2f99ea);
}

.booking-request-form.is-locked {
  opacity: .65;
}

.booking-lock-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #ffd287;
  border-radius: 10px;
  background: #fff6e8;
  color: #7b4b00;
  font-size: .95rem;
}

.booking-qr-open {
  overflow: hidden;
}

.booking-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.booking-qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 33, .62);
}

.booking-qr-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  max-height: 92vh;
  overflow: auto;
  margin: 4vh auto;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 22px 54px rgba(3, 12, 29, .35);
}

.booking-qr-dialog h3 {
  margin: 0 0 8px;
}

.booking-qr-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.booking-qr-bank {
  margin: 10px 0;
  font-weight: 700;
}

.booking-qr-image {
  display: block;
  width: min(100%, 430px);
  margin: 10px auto;
  border-radius: 10px;
}

.booking-qr-note {
  margin: 6px 0 0;
  color: #385170;
  font-weight: 600;
}

.booking-order-info {
  margin: 10px 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef5ff;
  color: #13385f;
  font-weight: 600;
}

.booking-qr-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.booking-paid-btn,
.booking-refresh-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.booking-paid-btn {
  background: #0f7d38;
  color: #fff;
}

.booking-refresh-btn {
  background: #dbe8f6;
  color: #1c3958;
}

.booking-verify-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #0f7d38;
  font-weight: 600;
}

.booking-verify-status.is-error {
  color: #c62828;
}

.booking-fallback {
  margin: 10px 0 0;
  font-size: .9rem;
  color: var(--muted);
}

.booking-fallback a {
  color: var(--primary);
  font-weight: 600;
}

.section {
  padding: 30px 0;
}

.section-title {
  margin: 0 0 14px;
  font-size: 1.65rem;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.deal-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, .1);
}

.route {
  margin: 0;
  font-weight: 700;
}

.price {
  margin: 8px 0 6px;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.benefit-item {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.benefit-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.benefit-item p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: #e9f1fb;
}

.site-footer .container {
  padding: 22px 0;
  color: var(--muted);
  font-size: .92rem;
}

@media (max-width: 980px) {
  .container {
    width: min(1120px, calc(100% - 26px));
  }

  .hero-wrap,
  .deal-grid,
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 5.5vw, 2.5rem);
  }

}

@media (max-width: 820px) {
  .site-header .container {
    min-height: 66px;
  }

  .brand {
    font-size: 1.02rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .header-action {
    padding: 8px 14px;
    font-size: .92rem;
  }

  .deal-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1120px, calc(100% - 18px));
  }

  .header-action {
    display: none;
  }

  .hero-wrap,
  .deal-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .hero p {
    font-size: .98rem;
  }

  .section {
    padding: 22px 0;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .deal-card,
  .benefit-item {
    padding: 14px;
  }

  .request-grid {
    grid-template-columns: 1fr;
  }

  .request-field-full {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .site-header .container {
    min-height: 62px;
  }

  .brand {
    font-size: .95rem;
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: .85rem;
  }

  .request-title {
    font-size: 1.1rem;
  }

  .request-field label {
    font-size: .9rem;
  }

  .booking-qr-actions {
    flex-direction: column;
  }
}
