/* Airport Transfers Service: corporate portal (header, footer, dashboard, bookings, profile) */
:root {
  --navy: #042E7C; --navy-2: #0a3d97; --gold: #DFB44E; --gold-ink: #8a6a1c;
  --ink: #102436; --muted: #5b6b85; --line: #e3e8f1; --soft: #f4f6fb;
  --ok: #1e7a46; --ok-bg: #e7f5ed; --warn: #9a5b00; --warn-bg: #fff4e0; --bad: #a12626; --bad-bg: #fdecec;
}

/* ---------- Shell: neutralise the old black Bootstrap wrappers ---------- */
body { background: var(--soft); color: var(--ink); font-family: 'Open Sans', Arial, sans-serif; font-size: 15px; }
.shade { background: transparent !important; padding: 0 !important; float: none !important; width: 100% !important; }

/* ---------- Header ---------- */
.cp-header { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(4,46,124,.05); position: relative; z-index: 20; }
.cp-header .cp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; min-height: 72px; display: flex; align-items: center; gap: 24px; }
.cp-logo img { width: 190px; height: auto; display: block; }
.cp-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.cp-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.cp-nav a:hover, .cp-nav a:focus { background: var(--soft); color: var(--navy); text-decoration: none; }
.cp-nav a.active { color: var(--navy); background: #eef3fc; }
.cp-nav a i { font-size: 14px; color: var(--muted); }
.cp-nav a.active i { color: var(--navy); }
.cp-nav .cp-cta { background: var(--gold); color: var(--navy); margin-left: 6px; }
.cp-nav .cp-cta i { color: var(--navy); }
.cp-nav .cp-cta:hover { background: #e7c063; color: var(--navy); }
.cp-nav .cp-out { color: var(--muted); }
.cp-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-size: 18px; cursor: pointer; }
.cp-account { font-size: 13px; color: var(--muted); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.cp-account b { color: var(--ink); }
@media (max-width: 980px) {
  .cp-account { display: none; }
  .cp-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .cp-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(4,46,124,.08); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; }
  .cp-header.open .cp-nav { display: flex; }
  .cp-nav a { padding: 12px; }
  .cp-nav .cp-cta { margin: 6px 0 0; justify-content: center; }
}

/* ---------- Footer ---------- */
.cp-footer { background: var(--navy); color: #cfd8ea; margin-top: 48px; }
.cp-footer .cp-wrap { max-width: 1180px; margin: 0 auto; padding: 22px 16px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: 14px; }
.cp-footer a { color: #fff; font-weight: 600; text-decoration: none; }
.cp-footer a:hover { color: var(--gold); }
.cp-footer p { margin: 0; }

/* ---------- Page scaffold ---------- */
.cp-page { max-width: 1180px; margin: 0 auto; padding: 32px 16px 0; clear: both; }
.cp-page * { box-sizing: border-box; }
.cp-page h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; color: var(--navy); text-align: left; text-transform: none; line-height: 1.2; }
.cp-page h2 { margin: 0 0 14px; font-size: 20px; font-weight: 800; color: var(--navy); text-align: left; text-transform: none; }
.cp-page h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--ink); padding: 0; }
.cp-page .lead { margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.cp-eyebrow { display: inline-block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b8902f; }
.cp-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 20px rgba(4,46,124,.06); padding: 22px; }
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.cp-btn:hover, .cp-btn:focus { text-decoration: none; }
.cp-btn.gold { background: var(--gold); color: var(--navy); box-shadow: 0 4px 12px rgba(223,180,78,.35); }
.cp-btn.gold:hover { background: #e7c063; color: var(--navy); }
.cp-btn.navy { background: var(--navy); color: #fff; }
.cp-btn.navy:hover { background: var(--navy-2); color: #fff; }
.cp-btn.ghost { background: #fff; color: var(--navy); border-color: #cdd5e3; }
.cp-btn.ghost:hover { border-color: var(--navy); color: var(--navy); }
.cp-btn.small { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.cp-btn.danger { background: #fff; color: var(--bad); border-color: #f0c4c4; }
.cp-btn.danger:hover { background: var(--bad-bg); color: var(--bad); }

/* ---------- Dashboard ---------- */
.cp-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cp-hero .lead { margin: 0; }
.cp-grid { display: grid; gap: 18px; }
.cp-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-grid.g2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.cp-action { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.cp-action:hover, .cp-action:focus { transform: translateY(-2px); border-color: #c8d3ea; box-shadow: 0 12px 28px rgba(4,46,124,.12); text-decoration: none; color: var(--ink); }
.cp-action .ico { width: 48px; height: 48px; border-radius: 12px; background: #eef3fc; color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cp-action.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.cp-action.primary h3 { color: #fff; }
.cp-action.primary p { color: #cfd8ea; }
.cp-action.primary .ico { background: var(--gold); color: var(--navy); }
.cp-action.primary:hover { color: #fff; }
.cp-action p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cp-action .go { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--navy); }
.cp-action.primary .go { color: var(--gold); }
.cp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cp-stat { background: var(--soft); border-radius: 12px; padding: 14px; }
.cp-stat b { display: block; font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.cp-stat span { font-size: 13px; color: var(--muted); }
.cp-next .when { font-size: 22px; font-weight: 800; color: var(--navy); margin: 2px 0 12px; }
.cp-route { list-style: none; margin: 0 0 14px; padding: 0; }
.cp-route li { position: relative; padding: 0 0 12px 22px; font-size: 14px; line-height: 1.45; }
.cp-route li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; }
.cp-route li:last-child::before { background: var(--gold); border-color: var(--gold); }
.cp-route li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: 2px; width: 2px; background: #d3dbea; }
.cp-route small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 600; }
.cp-chip i { color: var(--muted); font-size: 12px; }
.cp-empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.cp-empty i { font-size: 30px; color: #b9c4d9; margin-bottom: 10px; display: block; }
.cp-help { display: flex; gap: 14px; align-items: center; }
.cp-help .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff7e3; color: var(--gold-ink); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cp-help p { margin: 0; color: var(--muted); font-size: 14px; }
.cp-help a { font-weight: 800; color: var(--navy); }

/* ---------- Bookings ---------- */
.cp-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cp-tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.cp-tabs button { border: 0; background: transparent; padding: 9px 16px; border-radius: 9px !important; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.cp-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.cp-tabs .n { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: 12px; line-height: 20px; text-align: center; }
.cp-tabs button[aria-selected="true"] .n { background: rgba(255,255,255,.2); }
.cp-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.cp-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid #cdd5e3 !important; border-radius: 10px; font-size: 15px; background: #fff; margin: 0; }
.cp-search input:focus { outline: none; border-color: var(--navy) !important; box-shadow: 0 0 0 3px rgba(4,46,124,.12) !important; }
.cp-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cp-list { display: grid; gap: 12px; }
.cp-job { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.cp-job.is-cancelled { opacity: .7; }
.cp-date b { display: block; font-size: 16px; font-weight: 800; color: var(--navy); }
.cp-date span { display: block; font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.cp-date small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.cp-job .cp-route { margin: 0 0 8px; }
.cp-job .cp-route li { padding-bottom: 8px; }
.cp-job .who { font-weight: 700; color: var(--ink); margin-bottom: 8px; font-size: 15px; }
.cp-job .cp-meta { margin: 0; }
.cp-job .notes { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.cp-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 130px; }
.cp-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-align: center; }
.cp-badge.ok { background: var(--ok-bg); color: var(--ok); }
.cp-badge.warn { background: var(--warn-bg); color: var(--warn); }
.cp-badge.bad { background: var(--bad-bg); color: var(--bad); }
.cp-badge.info { background: #eef3fc; color: var(--navy); }
.cp-panel[hidden] { display: none; }
.cp-noresults { display: none; }

/* ---------- Profile ---------- */
.cp-dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); margin: 0; }
.cp-dl dt, .cp-dl dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 15px; }
.cp-dl dt { color: var(--muted); font-weight: 600; }
.cp-dl dd { color: var(--ink); font-weight: 600; word-break: break-word; }
.cp-dl dt:last-of-type, .cp-dl dd:last-of-type { border-bottom: 0; }
.cp-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.cp-list-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cp-list-ticks li { display: flex; gap: 10px; font-size: 14px; color: var(--ink); }
.cp-list-ticks i { color: var(--ok); margin-top: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cp-grid.g3, .cp-grid.g2 { grid-template-columns: 1fr; }
  .cp-job { grid-template-columns: 1fr; gap: 12px; }
  .cp-date { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .cp-date small { margin: 0; }
  .cp-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .cp-actions .cp-btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .cp-page { padding-top: 22px; }
  .cp-page h1 { font-size: 24px; }
  .cp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cp-stat { padding: 10px; }
  .cp-stat b { font-size: 20px; }
  .cp-tabs { width: 100%; }
  .cp-tabs button { flex: 1; padding: 9px 8px; }
  .cp-search { max-width: none; }
  .cp-dl { grid-template-columns: 1fr; }
  .cp-dl dt { padding-bottom: 2px; border-bottom: 0; }
  .cp-dl dd { padding-top: 0; }
  .cp-hero .cp-btn { width: 100%; }
}

/* ---------- Booking forms (book, rebook, edit) and registration ---------- */
.cp-narrow { max-width: 860px; }
.cp-form { display: grid; gap: 16px; }
.cp-fs h2 { display: flex; align-items: center; gap: 10px; }
.cp-fs h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.cp-row { display: grid; gap: 0 16px; }
.cp-row.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-row.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-field { margin-bottom: 14px; }
.cp-field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ink); max-width: none; }
.cp-field label b { color: var(--bad); }
.cp-field small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.cp-input, .cp-form select.cp-input, .cp-form input.cp-input, .cp-form textarea.cp-input {
  display: block; width: 100%; height: 48px; padding: 0 14px; margin: 0; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #cdd5e3 !important; border-radius: 10px; box-shadow: none !important; font-family: inherit;
}
.cp-form textarea.cp-input { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.cp-form select.cp-input { appearance: none; -webkit-appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6b85' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 14px center; }
.cp-input:focus { outline: none; border-color: var(--navy) !important; box-shadow: 0 0 0 3px rgba(4,46,124,.15) !important; }
.cp-input[readonly] { background-color: #fff; cursor: pointer; }
.cp-input.is-invalid { border-color: var(--bad) !important; box-shadow: 0 0 0 3px rgba(161,38,38,.12) !important; }
.cp-stops { display: grid; gap: 10px; margin-bottom: 10px; }
.cp-stops:empty { display: none; }
.cp-stop { display: flex; gap: 8px; }
.cp-icon-btn { flex: none; width: 48px; height: 48px; border: 1px solid #f0c4c4; border-radius: 10px !important; background: #fff; color: var(--bad); cursor: pointer; }
.cp-icon-btn:hover { background: var(--bad-bg); }
.cp-link-btn { border: 0; background: none; padding: 0; margin: 0 0 14px; color: var(--navy); font-weight: 700; font-size: 14px; cursor: pointer; }
.cp-link-btn:hover { text-decoration: underline; }
.cp-switch { display: flex !important; align-items: center; gap: 12px; margin: 0 !important; font-size: 16px !important; font-weight: 700 !important; color: var(--navy); cursor: pointer; }
.cp-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cp-switch span { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #cdd5e3; transition: background .2s; flex: none; }
.cp-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.cp-switch input:checked + span { background: var(--navy); }
.cp-switch input:checked + span::after { transform: translateX(20px); }
.cp-switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(4,46,124,.25); }
#return_booking { margin-top: 18px; }
.cp-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 2px 0; }
.cp-submit p { margin: 0; font-size: 14px; color: var(--muted); }
.cp-submit p a { font-weight: 800; color: var(--navy); }
.cp-submit .btns { display: flex; gap: 10px; }
.cp-submit .cp-btn { height: 52px; padding: 0 26px; font-size: 15px; }
.cp-submit .cp-btn[disabled] { opacity: .7; cursor: wait; }
.cp-check { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px !important; color: var(--ink); max-width: none; margin: 0 !important; }
.cp-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.cp-alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.cp-alert.bad { background: var(--bad-bg); color: var(--bad); border: 1px solid #f3c2c2; }
.cp-alert.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe3cd; }
.cp-hp { position: absolute !important; left: -9999px !important; }
/* jQuery UI datepicker */
.ui-datepicker { font-family: 'Open Sans', Arial, sans-serif; border-radius: 12px; border: 1px solid var(--line) !important; box-shadow: 0 12px 28px rgba(4,46,124,.15); padding: 8px; z-index: 30 !important; }
.ui-datepicker .ui-datepicker-header { background: var(--navy); border: 0; border-radius: 8px; color: #fff; }
.ui-datepicker .ui-state-active, .ui-datepicker .ui-state-highlight { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--navy) !important; }
@media (max-width: 700px) {
  .cp-row.c2, .cp-row.c3 { grid-template-columns: 1fr; }
  .cp-submit { flex-direction: column; align-items: stretch; }
  .cp-submit .btns { flex-direction: column-reverse; }
  .cp-submit .cp-btn { width: 100%; }
}
@media (min-width: 701px) and (max-width: 900px) { .cp-row.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
