/* ===== ROBLOX ITA BOOKING SYSTEM ===== */
#ita-booking-widget { position: relative; font-family: 'OpenSans', Arial, sans-serif; }

/* HERO */
#ita-booking-hero {
  position: relative;
  overflow: visible;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
}
#ita-booking-hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
#ita-booking-hero .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(6,32,107,0.35) 100%);
  z-index: 1;
}
#ita-booking-form-wrap {
  position: relative; z-index: 2; width: 100%; padding: 0;
}
#ita-booking-card {
  background: #fff;
  border-radius: 12px 12px 0 0;
  margin: 0 40px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  overflow: visible;
  padding-bottom: 0;
}

/* SERVICE TABS (Flights header) */
.ib-service-tabs {
  display: flex;
  padding: 0 24px;
  border-bottom: 2px solid #e8e8e8;
}
.ib-service-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 4px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #06206B;
  border-bottom: 3px solid #06206B;
  margin-bottom: -2px;
  cursor: default;
}
.ib-service-tab svg { color: #06206B; }

/* PILL ROW */
.ib-pills-row {
  display: flex;
  gap: 8px;
  padding: 14px 24px 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* PILL WRAPPER — must be relative so dropdown positions correctly */
.ib-pill-wrap {
  position: relative;
  display: inline-block;
}

/* PILL BUTTON */
.ib-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #06206B;
  border-radius: 100px;
  background: #fff;
  color: #06206B;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.ib-pill:hover, .ib-pill.open {
  background: #06206B;
  color: #fff;
}
.ib-pill:hover svg, .ib-pill.open svg { stroke: #fff; }

/* PILL DROPDOWN */
.ib-pill-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  min-width: 180px;
  z-index: 2147483647;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}
.ib-pill-dropdown.open { display: block; }

.ib-pill-option {
  padding: 13px 16px;
  font-size: 14px;
  color: #222;
  cursor: pointer;
  transition: background .15s;
  font-family: 'OpenSans', Arial, sans-serif;
}
.ib-pill-option:hover { background: #f4f6ff; }
.ib-pill-option.active {
  background: #06206B;
  color: #fff;
  font-weight: 700;
}
.ib-pill-option-locked {
  color: #aaa !important;
  cursor: default !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ib-pill-option-locked:hover { background: #fff !important; }
.pill-staff-badge {
  background: #fff3cd;
  color: #856404;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* PAX COUNTER */
.pax-counter-btn {
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #06206B;
  font-weight: 700;
  transition: background .15s;
  font-family: inherit;
}
.pax-counter-btn:hover { background: #dde4f5; }
.ib-pill-apply-btn {
  width: 100%;
  background: #06206B;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.ib-pill-apply-btn:hover { background: #0a2d8a; }

/* SEARCH ROW */
.ib-search-row {
  display: flex;
  gap: 0;
  align-items: stretch;
  border-top: 1px solid #e8e8e8;
  overflow: visible;
}
.ib-field {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 120px;
  position: relative;
  border-right: 1px solid #e8e8e8;
  padding: 12px 16px 12px;
}
.ib-field:last-of-type { border-right: none; }
.ib-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #888;
  margin-bottom: 4px;
}
.ib-field input {
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: #222;
  background: transparent;
  padding: 0;
  width: 100%;
}
.ib-field input::placeholder { color: #bbb; }
.ib-field input:focus ~ .ib-field-focus-line,
.ib-field:focus-within { background: #f8faff; }

/* SWAP BUTTON */
.ib-swap-btn {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 50%;
  width: 36px; height: 36px;
  align-self: center;
  flex-shrink: 0;
  cursor: pointer;
  color: #06206B;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
  margin: 0 -2px;
  z-index: 1;
  position: relative;
}
.ib-swap-btn:hover { background: #f0f4ff; border-color: #06206B; }

/* SEARCH BUTTON */
.ib-search-btn {
  background: #06206B;
  color: #fff;
  border: none;
  border-radius: 0 0 12px 0;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
}
.ib-search-btn:hover { background: #0a2d8a; }

/* AUTOCOMPLETE */
/* (handled inline by JS — just ensure z-index) */

/* ---- RESULTS ---- */
#ita-results-section {
  background: #f4f6fb;
  padding: 28px 40px;
  display: none;
}
#ita-results-section.visible { display: block; }
.ib-results-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.ib-results-title  { font-size:18px; font-weight:700; color:#06206B; }
.ib-results-sub    { font-size:13px; color:#888; margin-top:2px; }
.ib-filter-row     { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.ib-filter-btn {
  border: 1.5px solid #d0d0d0; background: #fff; border-radius: 20px;
  padding: 5px 15px; font-size: 12px; font-weight: 600; color: #555; cursor: pointer;
  transition: all .2s; font-family: inherit;
}
.ib-filter-btn.active, .ib-filter-btn:hover { background:#06206B; color:#fff; border-color:#06206B; }

.ib-flight-card {
  background:#fff; border-radius:12px; border:1.5px solid #e8e8e8;
  padding:20px 24px; margin-bottom:14px; display:flex; align-items:center;
  gap:20px; transition:border-color .2s, box-shadow .2s; flex-wrap:wrap;
}
.ib-flight-card:hover { border-color:#06206B; box-shadow:0 4px 18px rgba(6,32,107,.08); }
.ib-flight-card.cancelled { opacity:.55; pointer-events:none; }
.ib-airline-logo { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:60px; }
.ib-airline-logo img { height:26px; }
.ib-flight-id { font-size:11px; font-weight:700; color:#888; }
.ib-route { flex:1; display:flex; align-items:center; gap:16px; min-width:240px; }
.ib-city { text-align:center; }
.ib-time { font-size:22px; font-weight:700; color:#06206B; }
.ib-iata { font-size:12px; color:#999; margin-top:2px; }
.ib-duration-line { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; min-width:80px; }
.ib-dur-text { font-size:11px; color:#999; }
.ib-dur-bar { width:100%; height:1px; background:#ccc; position:relative; display:flex; align-items:center; justify-content:center; }
.ib-dur-bar::before, .ib-dur-bar::after { content:''; width:6px; height:6px; border-radius:50%; background:#06206B; position:absolute; }
.ib-dur-bar::before { left:0; } .ib-dur-bar::after { right:0; }
.ib-plane-icon { font-size:16px; color:#06206B; }
.ib-nonstop { font-size:11px; color:#1a7a4a; font-weight:600; }
.ib-meta { display:flex; flex-direction:column; gap:4px; min-width:100px; }
.ib-aircraft { font-size:12px; color:#888; }
.ib-seats { font-size:12px; color:#444; }
.ib-status-badge { display:inline-block; border-radius:20px; padding:3px 11px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; }
.ib-status-badge.ontime   { background:#e6f7ef; color:#1a7a4a; }
.ib-status-badge.delayed  { background:#fff3e0; color:#e65c00; }
.ib-status-badge.cancelled{ background:#fdecea; color:#CC0B2F; }
.ib-status-badge.boarding { background:#e3f2fd; color:#1565c0; }
.ib-status-badge.landed   { background:#f3e5f5; color:#6a1b9a; }
.ib-price-col { text-align:right; min-width:130px; display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.ib-price { font-size:20px; font-weight:700; color:#1a7a4a; display:flex; align-items:center; gap:5px; }
.ib-price-sub { font-size:11px; color:#aaa; }
.ib-select-btn {
  background:#CC0B2F; color:#fff; border:none; border-radius:8px;
  padding:9px 20px; font-size:13px; font-weight:700; cursor:pointer;
  font-family:inherit; transition:background .2s; white-space:nowrap;
}
.ib-select-btn:hover { background:#a80825; }
.ib-no-results { text-align:center; padding:48px 24px; color:#999; }
.ib-no-results .big { font-size:40px; margin-bottom:12px; }

/* BOOKING MODAL */
#ita-book-modal-bg {
  display:none; position:fixed; inset:0; z-index:100002;
  background:rgba(0,0,0,.65); align-items:center; justify-content:center;
  font-family:'OpenSans',Arial,sans-serif;
}
#ita-book-modal-bg.open { display:flex; }
#ita-book-modal { background:#fff; border-radius:16px; width:640px; max-width:96vw; max-height:92vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,.35); }
.ibm-header { background:#06206B; color:#fff; padding:22px 28px; border-radius:16px 16px 0 0; display:flex; justify-content:space-between; align-items:center; }
.ibm-header h2 { font-size:17px; font-weight:700; margin:0; }
.ibm-header .ibm-close { background:rgba(255,255,255,.15); border:none; color:#fff; font-size:20px; width:34px; height:34px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.ibm-close:hover { background:rgba(255,255,255,.3); }
.ibm-flight-summary { background:#f0f4ff; border-bottom:1px solid #e0e8ff; padding:16px 28px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.ibm-flight-summary .flt-id { font-weight:700; font-size:15px; color:#06206B; }
.ibm-flight-summary .flt-route { font-size:14px; color:#444; }
.ibm-flight-summary .flt-time { font-size:13px; color:#888; }
.ibm-steps { display:flex; padding:20px 28px 0; gap:0; margin-bottom:4px; }
.ibm-step { display:flex; align-items:center; font-size:12px; font-weight:600; color:#bbb; flex:1; position:relative; }
.ibm-step.active { color:#06206B; }
.ibm-step.done { color:#1a7a4a; }
.ibm-step-num { width:26px; height:26px; border-radius:50%; background:#e8e8e8; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; margin-right:7px; flex-shrink:0; }
.ibm-step.active .ibm-step-num { background:#06206B; color:#fff; }
.ibm-step.done .ibm-step-num { background:#1a7a4a; color:#fff; }
.ibm-step-line { flex:1; height:2px; background:#e8e8e8; margin:0 8px; }
.ibm-body { padding:22px 28px 28px; }
.ibm-section-title { font-size:15px; font-weight:700; color:#06206B; margin-bottom:16px; }
.ibm-form { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.ibm-form .full { grid-column:1/-1; }
.ibm-field label { display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:#888; margin-bottom:5px; }
.ibm-field input, .ibm-field select { width:100%; border:1.5px solid #d0d0d0; border-radius:8px; padding:10px 13px; font-size:14px; font-family:inherit; box-sizing:border-box; outline:none; transition:border-color .2s; }
.ibm-field input:focus, .ibm-field select:focus { border-color:#06206B; }
.ibm-cabin-cards { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:8px; }
.ibm-cabin-card { border:2px solid #e0e0e0; border-radius:10px; padding:14px 16px; cursor:pointer; transition:all .2s; }
.ibm-cabin-card:hover { border-color:#06206B; }
.ibm-cabin-card.selected { border-color:#06206B; background:#f0f4ff; }
.ibm-cabin-card .cc-name { font-weight:700; font-size:14px; color:#06206B; }
.ibm-cabin-card .cc-price { font-size:13px; color:#1a7a4a; font-weight:700; margin-top:3px; }
.ibm-cabin-card .cc-features { font-size:11px; color:#999; margin-top:6px; line-height:1.5; }
.ibm-price-breakdown { background:#f8f8f8; border-radius:10px; padding:16px 18px; margin:16px 0; }
.ibm-price-row { display:flex; justify-content:space-between; font-size:13px; color:#555; margin-bottom:8px; }
.ibm-price-row.total { border-top:1.5px solid #e0e0e0; padding-top:10px; margin-top:4px; font-weight:700; font-size:16px; color:#06206B; }
.ibm-actions { display:flex; gap:10px; margin-top:20px; }
.ibm-btn-primary { flex:1; background:#CC0B2F; color:#fff; border:none; border-radius:8px; padding:13px; font-size:15px; font-weight:700; font-family:inherit; cursor:pointer; transition:background .2s; }
.ibm-btn-primary:hover { background:#a80825; }
.ibm-btn-back { background:#f0f0f0; color:#444; border:none; border-radius:8px; padding:13px 20px; font-size:14px; font-weight:600; font-family:inherit; cursor:pointer; transition:background .2s; }
.ibm-btn-back:hover { background:#e0e0e0; }
.ibm-confirmation { text-align:center; padding:16px 0; }
.ibm-conf-icon { font-size:56px; margin-bottom:12px; }
.ibm-conf-title { font-size:22px; font-weight:700; color:#1a7a4a; margin-bottom:8px; }
.ibm-conf-ref { font-size:28px; font-weight:700; color:#06206B; letter-spacing:3px; margin:14px 0; background:#f0f4ff; border-radius:8px; padding:10px 20px; display:inline-block; }
.ibm-conf-details { background:#f8f8f8; border-radius:10px; padding:16px 20px; margin:16px 0; text-align:left; font-size:14px; line-height:1.8; color:#444; }
.ibm-conf-details strong { color:#06206B; }
