/* ================================================================
   GROUP TICKET PORTAL — CLIENT PORTAL STYLES
   Aviation Blue + Clean White + Action Gold
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --blue-900:  #0A2463;
  --blue-700:  #1557B0;
  --blue-500:  #2176FF;
  --blue-100:  #E8F0FE;
  --blue-50:   #F0F4FF;
  --gold:      #F4A61D;
  --gold-dark: #d4880d;
  --emerald:   #00B87C;
  --red:       #E63946;
  --yellow:    #FFB400;
  --white:     #FFFFFF;
  --text-dark: #0D1B2A;
  --text-mid:  #4A5568;
  --text-light:#718096;
  --border:    #DDE6F5;
  --card-shadow: 0 4px 24px rgba(10,36,99,.10);
  --card-shadow-hover: 0 12px 36px rgba(10,36,99,.18);
  --radius:    14px;
  --radius-sm: 8px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--blue-50); color: var(--text-dark); line-height: 1.6; min-height: 100vh; }

h1,h2,h3,h4 { font-weight: 700; color: var(--blue-900); line-height: 1.25; }
h1 { font-size: clamp(1.75rem,4vw,2.6rem); }
h2 { font-size: clamp(1.3rem,3vw,2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-mid); }
a  { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-500); }

.container  { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center{ text-align: center; }
.hidden     { display: none !important; }
.mt-4 { margin-top: 1rem; } .mb-4 { margin-bottom: 1rem; }
.gap-4 { gap: 1rem; } .w-full { width: 100%; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1.4rem; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: .9rem; font-weight: 600; cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap; position: relative; overflow: hidden; }
.btn:active { transform: scale(.97); }
.btn-primary  { background: var(--blue-900); color: #fff; box-shadow: 0 4px 14px rgba(10,36,99,.3); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn-gold     { background: var(--gold); color: #fff; box-shadow: 0 4px 14px rgba(244,166,29,.35); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-emerald  { background: var(--emerald); color: #fff; }
.btn-emerald:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline  { background: transparent; border: 2px solid var(--blue-900); color: var(--blue-900); }
.btn-outline:hover { background: var(--blue-900); color: #fff; }
.btn-sm  { padding: .4rem .9rem; font-size: .82rem; }
.btn-lg  { padding: .85rem 2rem; font-size: 1rem; }

/* Navbar */
.navbar { background: var(--blue-900); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 16px rgba(10,36,99,.25); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 20px; max-width: 1200px; margin: 0 auto; }
.navbar-brand { display: flex; align-items: center; gap: .75rem; color: #fff; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.navbar-brand .logo-icon { width: 38px; height: 38px; background: var(--gold); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.navbar-brand span { color: var(--gold); }
.navbar-nav { display: flex; align-items: center; gap: .25rem; list-style: none; }
.navbar-nav a { color: rgba(255,255,255,.8); padding: .5rem .9rem; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 500; transition: all var(--transition); text-decoration: none; }
.navbar-nav a:hover, .navbar-nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-admin-btn { background: var(--gold) !important; color: var(--blue-900) !important; font-weight: 700 !important; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, #1a3a8a 100%); padding: 70px 20px 40px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 320px; height: 320px; background: rgba(244,166,29,.12); border-radius: 50%; }
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero p   { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 2rem; }
.hero-badge { display: inline-block; background: rgba(244,166,29,.2); border: 1px solid var(--gold); color: var(--gold); padding: .3rem .9rem; border-radius: 100px; font-size: .8rem; font-weight: 600; margin-bottom: 1.2rem; letter-spacing: .05em; }

/* Search Bar */
.search-bar { background: rgba(255,255,255,.12); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 1.5rem; max-width: 900px; margin: 0 auto; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; align-items: end; }
.search-field label { display: block; color: rgba(255,255,255,.8); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.search-field input, .search-field select { width: 100%; padding: .65rem .9rem; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm); color: #fff; font-family: var(--font); font-size: .9rem; outline: none; transition: all var(--transition); }
.search-field input::placeholder { color: rgba(255,255,255,.5); }
.search-field input:focus, .search-field select:focus { border-color: var(--gold); background: rgba(255,255,255,.22); }
.search-field select option { background: var(--blue-900); color: #fff; }
.btn-search { width: 100%; padding: .68rem 1.2rem; background: var(--gold); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-search:hover { background: var(--gold-dark); transform: translateY(-1px); }

/* Sticky Filter */
.sticky-filter { background: #fff; border-bottom: 2px solid var(--border); padding: .75rem 20px; position: sticky; top: 62px; z-index: 900; box-shadow: 0 2px 12px rgba(10,36,99,.08); }
.sticky-filter-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.filter-chip { padding: .35rem .9rem; border: 1.5px solid var(--border); border-radius: 100px; background: #fff; font-size: .82rem; font-weight: 500; color: var(--text-mid); cursor: pointer; transition: all var(--transition); display: flex; align-items: center; gap: .3rem; }
.filter-chip:hover, .filter-chip.active { border-color: var(--blue-900); background: var(--blue-900); color: #fff; }
.filter-count { font-size: .78rem; color: var(--text-light); margin-left: auto; }

/* Flights Grid */
.section { padding: 40px 20px; }
.section-header { margin-bottom: 1.5rem; }
.flights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }

/* Flight Card */
.flight-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; transition: all var(--transition); border: 1px solid transparent; display: flex; flex-direction: column; }
.flight-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: var(--blue-100); }
.card-airline-bar { background: linear-gradient(90deg, var(--blue-900), var(--blue-700)); padding: .7rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.card-airline-name { color: #fff; font-weight: 600; font-size: .88rem; }
.card-flight-num   { color: var(--gold); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.card-body  { padding: 1.2rem; flex: 1; }
.card-route { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.card-airport { flex: 1; }
.card-airport .iata { font-size: 1.7rem; font-weight: 800; color: var(--blue-900); line-height: 1; }
.card-airport .city { font-size: .75rem; color: var(--text-light); margin-top: 2px; }
.card-airport .time { font-size: .9rem; font-weight: 600; color: var(--text-dark); }
.card-airport .date { font-size: .72rem; color: var(--text-light); }
.card-route-mid { flex: 1; text-align: center; }
.route-line { display: flex; align-items: center; justify-content: center; gap: .3rem; margin-bottom: .2rem; }
.route-line::before, .route-line::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.duration { font-size: .72rem; color: var(--text-light); }
.card-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .22rem .65rem; border-radius: 100px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.badge-available { background: #E8FFF4; color: #00875A; }
.badge-few-left  { background: #FFF8E1; color: #B76E00; }
.badge-sold-out  { background: #FFEEEE; color: var(--red); }
.badge-meal      { background: var(--blue-100); color: var(--blue-700); }
.badge-baggage   { background: #F3F4F6; color: #374151; }
.card-footer { padding: 1rem 1.2rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--blue-50); }
.price-block .label { font-size: .72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; }
.price-block .price { font-size: 1.3rem; font-weight: 800; color: var(--blue-900); }
.price-block .per   { font-size: .72rem; color: var(--text-light); }
.seats-remaining { font-size: .8rem; color: var(--text-mid); text-align: right; }
.seats-remaining strong { color: var(--blue-900); display: block; font-size: 1rem; }

/* Booking Steps */
.booking-page { max-width: 860px; margin: 0 auto; padding: 40px 20px; }
.steps-bar { display: flex; margin-bottom: 2.5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; }
.step-item { flex: 1; padding: .9rem .5rem; text-align: center; }
.step-num { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; margin: 0 auto .3rem; color: var(--text-light); transition: all var(--transition); }
.step-item.active .step-num { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.step-item.done .step-num   { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.step-label { font-size: .72rem; color: var(--text-light); font-weight: 500; }
.step-item.active .step-label { color: var(--blue-900); font-weight: 700; }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 1.75rem; margin-bottom: 1.25rem; }
.form-card h3 { margin-bottom: 1.25rem; font-size: 1rem; color: var(--blue-900); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group.col-span-2 { grid-column: span 2; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: .05em; }
.form-group label .req { color: var(--red); margin-left: 2px; }
.form-control { padding: .65rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: .92rem; color: var(--text-dark); background: #fff; transition: all var(--transition); outline: none; width: 100%; }
.form-control:focus { border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(21,87,176,.1); }
.form-control::placeholder { color: var(--text-light); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* Flight Summary Card */
.flight-summary-card { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); border-radius: var(--radius); padding: 1.5rem; color: #fff; margin-bottom: 1.5rem; }
.fsc-route { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.fsc-iata  { font-size: 2.2rem; font-weight: 800; }
.fsc-arrow { font-size: 1.5rem; color: var(--gold); }
.fsc-info  { font-size: .82rem; opacity: .8; }
.fsc-badges { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Alerts */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 1rem; display: flex; align-items: flex-start; gap: .6rem; }
.alert-success { background: #E8FFF4; border-left: 4px solid var(--emerald); color: #00875A; }
.alert-error   { background: #FFF0F0; border-left: 4px solid var(--red); color: #C62828; }
.alert-warning { background: #FFF8E1; border-left: 4px solid var(--yellow); color: #B76E00; }
.alert-info    { background: var(--blue-100); border-left: 4px solid var(--blue-700); color: var(--blue-900); }

/* Confirm */
.confirm-page { max-width: 680px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.confirm-icon { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald), #00d4a0); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1.5rem; box-shadow: 0 8px 28px rgba(0,184,124,.3); animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-ref { background: var(--blue-50); border-radius: var(--radius); padding: 1.2rem; margin: 1.5rem 0; display: inline-block; min-width: 280px; }
.confirm-ref .label { font-size: .75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; }
.confirm-ref .value { font-size: 1.6rem; font-weight: 800; color: var(--blue-900); font-family: monospace; }

/* Footer */
.portal-footer { background: var(--blue-900); color: rgba(255,255,255,.7); text-align: center; padding: 2rem 20px; margin-top: 4rem; font-size: .82rem; }
.portal-footer a { color: var(--gold); }
.portal-footer .footer-brand { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: .25rem; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 1rem; opacity: .5; }

/* Loader */
.loading-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--blue-700); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .flights-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.col-span-2 { grid-column: span 1; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 50px 20px 30px; }
  .sticky-filter { top: 58px; }
  .steps-bar { display: none; }
}
@media (max-width: 480px) {
  .search-grid { grid-template-columns: 1fr; }
  .card-footer { flex-direction: column; gap: .75rem; align-items: stretch; }
  .card-footer .btn { width: 100%; justify-content: center; }
}
