/* =========================================================
   Flyshop Web Check-in — custom styles (Bootstrap-assisted)
   Brand tokens aligned with flyshop.in
   ========================================================= */

:root {
  --fs-teal: #09b598;
  --fs-teal-deep: #1f8b7e;
  --fs-teal-ink: #04716b;
  --fs-blue: #2f6c8d;
  --fs-blue-deep: #184a66;
  --fs-navy: #0f2a38;
  --fs-ink: #172027;
  --fs-muted: #5f6b72;
  --fs-line: #e3e8ee;
  --fs-soft: #f3f7f8;
  --fs-white: #ffffff;
  --fs-grad: linear-gradient(89deg, #08ab90 7.51%, #3365c7 94.39%);
  --fs-hero-grad: linear-gradient(145deg, #0c3a48 0%, #15657a 42%, #1f8b7e 78%, #3aa8c9 100%);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --radius: 18px;
  --shadow-soft: 0 18px 50px rgba(15, 42, 56, 0.12);
  --header-offset: 118px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fs-ink);
  background: var(--fs-soft);
  line-height: 1.55;
}

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

a {
  text-decoration: none;
}

/* ---------- Header (Flyshop-inspired) ---------- */

.fixedheadtop {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: var(--fs-white);
}

.fs-topbar {
  background: #fff;
  border-bottom-color: #eceff3 !important;
}

.fs-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  font-size: 0.875rem;
}

.fs-topbar__offer {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #4e5b62;
}

.fs-topbar__offer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fs-teal-deep);
  box-shadow: 0 0 0 4px rgba(31, 139, 126, 0.15);
}

.fs-topbar__contacts {
  display: flex;
  align-items: center;
  gap: 0;
}

.fs-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #5f6b72;
  padding: 0.35rem 0.85rem;
}

.fs-topbar__link + .fs-topbar__link {
  border-left: 1px solid #e3e8ee;
}

.fs-topbar__link i {
  color: #6c7881;
}

.fs-topbar__link:hover {
  color: #172027;
}

.navbar {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar-brand img {
  height: 42px;
  width: auto;
}

.navbar-nav .nav-link {
  color: #1f2937;
  font-weight: 560;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--fs-teal-deep);
}

.toploginbtn,
.topagentlogin,
.bookdemotop,
.getstartedbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  white-space: nowrap;
  transition: 0.2s ease;
}

.toploginbtn {
  color: var(--fs-teal-deep);
  border: 1px solid rgba(31, 139, 126, 0.35);
  background: #fff;
}

.toploginbtn:hover {
  background: rgba(31, 139, 126, 0.08);
  color: var(--fs-teal-ink);
}

.topagentlogin {
  color: #fff !important;
  background: var(--fs-teal-deep);
  border: none;
}

.topagentlogin:hover {
  background: var(--fs-teal-ink);
  color: #fff !important;
}

.bookdemotop,
.getstartedbtn {
  color: #fff;
  background: var(--fs-grad);
  border: none;
}

.bookdemotop:hover,
.getstartedbtn:hover {
  filter: brightness(1.05);
  color: #fff;
}

/* ---------- Hero ---------- */

.checkin-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--fs-hero-grad);
  padding: 4.5rem 0 4rem;
  isolation: isolate;
}

.checkin-hero__glow {
  position: absolute;
  inset: auto -10% -40% 35%;
  height: 70%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(51, 101, 199, 0.35), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.checkin-hero__plane {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -40px;
  top: -60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 60%);
  animation: float-ring 10s ease-in-out infinite;
  z-index: 0;
}

.checkin-hero__plane::after {
  content: "";
  position: absolute;
  inset: 48px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.min-hero {
  min-height: 340px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
  animation: rise-in 0.7s ease both;
}

.hero-lead {
  max-width: 34rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  animation: rise-in 0.8s ease 0.08s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise-in 0.85s ease 0.14s both;
}

.btn-hero-primary {
  background: #fff;
  color: var(--fs-teal-ink);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.8rem 1.35rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.btn-hero-primary:hover {
  background: #f2fffc;
  color: var(--fs-navy);
}

.btn-hero-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.8rem 1.35rem;
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-hero-ghost-dark {
  background: transparent;
  color: var(--fs-navy);
  border: 1px solid rgba(15, 42, 56, 0.2);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.8rem 1.35rem;
}

.btn-hero-ghost-dark:hover {
  background: rgba(15, 42, 56, 0.05);
  color: var(--fs-navy);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 1.15rem;
  display: grid;
  gap: 0.85rem;
  animation: rise-in 0.9s ease 0.18s both;
}

.hero-panel__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.55rem 0.35rem;
}

.hero-panel__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.hero-panel__item strong {
  display: block;
  font-size: 0.98rem;
}

.hero-panel__item p {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Sections ---------- */

.section-head {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-head h2,
.notes-shell h2,
.cta-shell h2,
.step-block h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--fs-navy);
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--fs-muted);
  margin: 0;
}

.airlines-section {
  padding: 2.25rem 0 2.5rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(9, 181, 152, 0.08), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(47, 108, 141, 0.08), transparent 35%),
    #f7fafb;
}

.airlines-section .section-head {
  margin-bottom: 1.25rem;
}

.airlines-section .section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
}

.airline-group__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fs-navy);
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--fs-line);
}

.airline-search {
  max-width: 380px;
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 42, 56, 0.05);
  border: 1px solid var(--fs-line);
  background: #fff;
}

.airline-search .input-group-text {
  background: #fff;
  border: 0;
  color: var(--fs-muted);
}

.airline-search .form-control {
  border: 0;
  box-shadow: none !important;
  padding-block: 0.65rem;
  font-size: 0.92rem;
}

/* Skeleton shimmer */
.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    #e8eef1 0%,
    #f5f8fa 45%,
    #e8eef1 90%
  );
  background-size: 200% 100%;
  animation: skeleton-wave 1.15s ease-in-out infinite;
}

@keyframes skeleton-wave {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.airline-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(227, 232, 238, 0.95);
  border-radius: 12px;
  padding: 0.7rem 0.45rem 0.65rem;
  min-height: 98px;
}

.airline-skeleton__logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  display: block;
}

.airline-skeleton__line {
  display: block;
  width: 72%;
  height: 10px;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.airline-skeleton__meta {
  display: block;
  width: 34%;
  height: 8px;
  border-radius: 999px;
}

.airline-card-wrap {
  animation: card-rise 0.45s ease both;
  animation-delay: var(--stagger, 0ms);
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.airline-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(227, 232, 238, 0.95);
  border-radius: 12px;
  padding: 0.7rem 0.45rem 0.65rem;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.airline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 42, 56, 0.1);
  border-color: rgba(31, 139, 126, 0.28);
  color: inherit;
}

.airline-card__logo {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0.45rem;
}

.airline-card__logo-skel {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  z-index: 1;
}

.airline-card__logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
  position: relative;
  z-index: 2;
}

.airline-card.is-ready .airline-card__logo-skel {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.airline-card.is-ready .airline-card__logo img:not(.d-none) {
  opacity: 1;
}

.airline-card__code {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #1f8b7e, #2f6c8d);
  position: relative;
  z-index: 2;
}

.airline-card h3 {
  font-size: 0.78rem;
  font-weight: 650;
  margin: 0;
  color: var(--fs-navy);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.airline-card.is-loading h3,
.airline-card.is-loading .airline-card__meta {
  opacity: 0.55;
}

.airline-card__meta {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--fs-muted);
  letter-spacing: 0.03em;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-shimmer,
  .airline-card-wrap {
    animation: none;
  }

  .airline-card__logo img {
    transition: none;
  }
}

/* ---------- How it works ---------- */

.how-section {
  padding: 2.5rem 0;
  background: #fff;
}

.step-block {
  height: 100%;
  padding: 1.5rem 1.35rem;
  border-radius: 20px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(8, 171, 144, 0.35), rgba(51, 101, 199, 0.25)) border-box;
  border: 1px solid transparent;
  transition: transform 0.25s ease;
}

.step-block:hover {
  transform: translateY(-4px);
}

.step-block__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--fs-teal-deep);
  margin-bottom: 0.7rem;
}

.step-block h3 {
  font-size: 1.25rem;
  color: var(--fs-navy);
  margin-bottom: 0.55rem;
}

.step-block p {
  margin: 0;
  color: var(--fs-muted);
}

/* ---------- Notes ---------- */

.notes-section {
  padding: 0.5rem 0 2.5rem;
  background: #fff;
}

.notes-shell {
  background: var(--fs-navy);
  color: #fff;
  border-radius: 28px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
}

.notes-shell::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(9, 181, 152, 0.35), transparent 70%);
}

.notes-shell h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.notes-shell > .row > .col-lg-5 > p {
  color: rgba(255, 255, 255, 0.75);
}

.notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}

.notes-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.notes-list i {
  color: var(--fs-teal);
  margin-top: 0.2rem;
}

/* ---------- CTA ---------- */

.cta-section {
  padding: 0 0 2.75rem;
  background: #fff;
}

.cta-shell {
  border-radius: 28px;
  padding: 3rem 1.5rem;
  background:
    linear-gradient(120deg, rgba(9, 181, 152, 0.12), rgba(51, 101, 199, 0.1)),
    #f4f8fa;
  border: 1px solid var(--fs-line);
}

.cta-shell h2 {
  color: var(--fs-navy);
  margin-bottom: 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-shell p {
  color: var(--fs-muted);
  margin-bottom: 1.4rem;
}

/* ---------- Footer (Flyshop-inspired) ---------- */

.footer {
  background: #0b1c24;
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 2rem;
}

.footer-card__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-card__logo-link img {
  height: 42px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-card__brand p {
  max-width: 280px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-card__brand .copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-card__socials {
  list-style: none;
  display: flex;
  gap: 0.55rem;
  padding: 0;
  margin: 1rem 0 0;
}

.footer-card__socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.2s ease;
}

.footer-card__socials a:hover {
  background: var(--fs-teal-deep);
}

.footer-card__heading {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-card__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-card__links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.footer-card__links a:hover {
  color: #fff;
}

.footer-card__newsletter-form {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  padding: 0.25rem;
}

.footer-card__newsletter-form input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0.65rem 0.9rem;
  outline: none;
  min-width: 0;
}

.footer-card__newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer-card__newsletter-form button {
  border: 0;
  border-radius: 999px;
  background: var(--fs-grad);
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1rem;
}

.footer-card__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.35rem;
  align-items: center;
}

.footer-card__copyright {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-card__legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.footer-card__legal a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.footer-card__legal a:hover {
  color: #fff;
}

.payment-logos {
  margin-top: 1.5rem;
}

.certificates {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.certificates img {
  height: 42px;
  width: auto;
  opacity: 0.9;
}

/* ---------- Motion ---------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-ring {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(18px) rotate(8deg);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  :root {
    --header-offset: 70px;
  }

  .fs-topbar__inner {
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.35rem 0;
  }

  .fs-topbar__offer {
    display: none;
  }

  .footer-card__top {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 575.98px) {
  .footer-card__top {
    grid-template-columns: 1fr;
  }

  .notes-shell {
    padding: 1.6rem 1.2rem;
  }

  .airline-card__logo,
  .airline-card__logo img,
  .airline-card__code {
    width: 36px;
    height: 36px;
  }

  .airline-card h3 {
    font-size: 0.72rem;
  }
}
