/* Shared pieces of the customer pages (booking, payment, dashboard). Colours = the app's list
   (qibto-user-app/src/theme/variables.scss). Class names start with q- so they touch nothing else. */
:root {
  --q-red: #e82a2c;        --q-red-light: rgba(232, 42, 44, 0.10);
  --q-orange: #ff7a18;     --q-orange-light: rgba(255, 122, 24, 0.10);
  --q-text-dark: #1a1a1a;  --q-text-body: #333; --q-text-muted: #888;
  --q-white: #fff; --q-bg: #f7f7f7; --q-border: #ebebeb; --q-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --q-radius-sm: 8px; --q-radius-md: 14px;
}

/* notice line (QB.notice) - the app's toast colours */
/* top right, below the site header - where the app shows its messages */
.q-notice { position: fixed; top: 84px; right: 16px; z-index: 10001; max-width: calc(100% - 32px); width: max-content;
            padding: 12px 18px; border-radius: var(--q-radius-sm); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.35;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18); display: none; text-align: left; }
.q-notice--error { background: #c62828; } .q-notice--success { background: #2e7d32; } .q-notice--info { background: #f9a825; color: #222; }

/* booking: fixed note, free-time chips, "other plans" card */
.q-note { background: var(--q-orange-light); border: 1.5px solid var(--q-orange); border-radius: var(--q-radius-sm);
          padding: 10px 14px; margin-bottom: 14px; color: var(--q-text-body); font-size: 14px; }
.q-slots-title { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--q-text-body); }
.q-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-bottom: 18px; }
.q-chip { background: var(--q-white); border: 1.5px solid var(--q-border); border-radius: var(--q-radius-sm); padding: 10px 6px;
          font-size: 14px; font-weight: 600; color: var(--q-text-body); cursor: pointer; text-align: center; }
.q-chip:hover { border-color: var(--q-orange); }
.q-chip--sel, .q-chip--sel:hover { background: var(--q-orange); border-color: var(--q-orange); color: var(--q-white); }
.q-card { background: var(--q-white); border: 1.5px solid var(--q-border); border-radius: var(--q-radius-md); padding: 12px 14px;
          box-shadow: var(--q-shadow); margin-bottom: 18px; }
.q-card > h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--q-text-body); }
.q-other-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--q-border); font-size: 14px; }
.q-other-row:first-of-type { border-top: none; }
.q-btn-outline-sm { background: transparent; border: 2px solid var(--q-orange); color: var(--q-orange); border-radius: var(--q-radius-sm);
                    padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.q-btn-outline-sm:hover { background: var(--q-orange); color: var(--q-white); }

/* message under a field on the page (school check, pickup) */
.q-field-msg { margin: 8px 0 10px; padding: 9px 12px; border-radius: var(--q-radius-sm); font-size: 14px; }
.q-field-msg--error { background: var(--q-red-light); border: 1.5px solid var(--q-red); color: #a31517; }

/* search box with a clear (x) button */
.q-clearable { position: relative; }
.q-clearable > input { padding-right: 36px; }
.q-clear-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: none; border-radius: 50%;
               background: #e3e3e3; color: #555; font-size: 16px; line-height: 26px; text-align: center; cursor: pointer; padding: 0; display: none; }
.q-clear-btn:hover { background: #cfcfcf; }

/* pay now: time left (orange, red in the last 5 minutes), result message, small hint */
.q-pay-timer { background: var(--q-orange-light); border: 1.5px solid var(--q-orange); color: var(--q-text-body); border-radius: var(--q-radius-sm);
               padding: 10px 14px; margin: 12px 10px 4px; text-align: center; font-size: 15px; }
.q-pay-timer--urgent { background: var(--q-red-light); border-color: var(--q-red); color: #b3191b; }
.q-pay-msg { min-height: 20px; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: #c62828; }
.q-pay-msg--error { color: #c62828; }
.q-pay-msg--info { color: #b26a00; }
/* second button under "Proceed to Payment": same size and corners, orange outline (the app's outline button) */
.q-pay-change, .q-pay-change:visited { margin-top: 12px; background: #fff; border: 2px solid #ff7a18; color: #ff7a18; font-weight: 600; text-decoration: none; }
.q-pay-change:hover, .q-pay-change:focus { background: rgba(255, 122, 24, 0.10); border-color: #ff7a18; color: #ff7a18; text-decoration: none; outline: none; box-shadow: none; }
.q-hint { margin-top: 4px; font-size: 12px; color: #b26a00; font-weight: 600; }

/* one line inside a form, next to its button: "Please enter valid details." or a sentence from the server */
.q-form-summary { margin: 10px 0 2px; padding: 8px 12px; border-radius: var(--q-radius-sm); font-size: 13px; font-weight: 600; line-height: 1.35; }
.q-form-summary--error { background: var(--q-red-light); border: 1.5px solid var(--q-red); color: #a31517; }
.q-form-summary--info { background: var(--q-orange-light); border: 1.5px solid var(--q-orange); color: #8a4b00; }

/* ---- customer pages after the booking (dashboard, My Plan, My Schedule, Track Me, Feedback) ---- */
/* one status block for every state: centred, title orange (rejected: red), sentence grey - as in the app */
.q-status { margin: 15px 20px; padding: 18px 20px; background: #fff; border: 1.5px solid #ebebeb; border-radius: 14px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); text-align: center; }
.q-status-title { display: block; font-size: 20px; font-weight: 600; color: #ff7a18; }
.q-status--rejected .q-status-title { color: #e82a2c; }
.q-status-text { margin: 6px 0 0; font-size: 14px; color: #888; }
.q-status--info { padding: 12px 20px; background: rgba(255, 122, 24, 0.10); border-color: #ff7a18; }
.q-status--info .q-status-text { margin: 0; color: #8a4b00; font-weight: 600; }
.q-status-btn { display: inline-block; margin-top: 14px; padding: 10px 22px; background: #e82a2c; color: #fff !important; border-radius: 14px;
                font-size: 15px; font-weight: 700; text-decoration: none; }
.q-status-btn:hover { background: #cf2426; }

/* OTP / LIVE card: one slim line - "Toyota · Star Driver1 ............ LIVE 56:05" (or the OTP digits) */
.q-live { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 20px; padding: 8px 14px;
          background: #1a1a1a; color: #fff !important; border-radius: 10px; text-decoration: none !important; }
.q-live-left { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.q-live-left strong { font-size: 14px; font-weight: 700; }
.q-live-left small { font-size: 12px; color: #bbb; }
.q-live-left small::before { content: "\00B7\00A0"; }
.q-live-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap; }
.q-live-right small { font-size: 11px; color: #bbb; }
.q-live-digits i { display: inline-block; min-width: 20px; margin-left: 3px; padding: 2px 0; background: #fff; color: #1a1a1a; border-radius: 4px;
                   font-style: normal; font-weight: 700; font-size: 13px; text-align: center; }
.q-live-badge { display: inline-block; padding: 1px 6px; background: #e82a2c; border-radius: 4px; font-size: 10px; letter-spacing: 0.5px; }
.q-live-time { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* lesson counts */
.q-summary { margin: 15px 20px; }
.q-summary-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-summary-tile { padding: 12px; background: #f7f7f7; border-radius: 8px; text-align: center; }
.q-summary-tile b { display: block; min-height: 28px; font-size: 22px; font-weight: 700; color: #1a1a1a; }
.q-summary-tile span { font-size: 12px; color: #888; }
.q-summary-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.q-summary-actions .q-btn-outline-sm { padding: 8px 14px; font-weight: 600; text-decoration: none; }
/* placeholder until the numbers were counted from the server's answer */
.q-count-skel { width: 60px; margin: 0 auto; border-radius: 6px; background: linear-gradient(90deg, #ececec 25%, #f6f6f6 50%, #ececec 75%);
                background-size: 200% 100%; animation: q-skel 1.2s infinite; }
@keyframes q-skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* trainer number: masked, the whole box calls */
.q-li-pill { overflow: hidden; }   /* the row holds the floated box */
.q-call-pill { display: inline-flex; align-items: center; gap: 6px; background: #e82a2c; border-radius: 8px; padding: 3px 3px 3px 10px;
               text-decoration: none !important; float: right; }
.q-call-pill:active { transform: scale(0.97); background: #cf2426; }
.q-call-pill-num { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.5px; white-space: nowrap; }
.q-call-pill-box { width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.3); display: flex; align-items: center;
                   justify-content: center; color: #fff; font-size: 12px; }

/* My Schedule: one card per course day */
.q-days { margin: 15px 20px; }
.q-day { display: flex; align-items: center; gap: 14px; padding: 10px 14px; margin-bottom: 10px; background: #fff; border: 1.5px solid #ebebeb;
         border-radius: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.q-day-date { width: 52px; padding: 6px 0; background: rgba(255, 122, 24, 0.10); border-radius: 8px; text-align: center; color: #ff7a18; }
.q-day-date b { display: block; font-size: 18px; line-height: 1.1; }
.q-day-date span { font-size: 11px; text-transform: uppercase; }
.q-day-main { flex: 1; min-width: 0; }
.q-day-main strong { display: block; font-size: 15px; color: #1a1a1a; }
.q-day-main span { font-size: 12px; color: #888; }
.q-day-badge { padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #f1f1f1; color: #666; }
.q-day--completed .q-day-badge { background: #d4edda; color: #155724; }
.q-day--skipped .q-day-badge { background: #f8d7da; color: #721c24; }
.q-day--running .q-day-badge { background: #ff7a18; color: #fff; }

/* Track Me */
.q-track-bar { margin: 10px 20px 0; text-align: right; }
.q-track-bar .q-btn-outline-sm { padding: 7px 14px; font-weight: 600; cursor: pointer; }
.q-track { position: relative; margin: 10px 20px 15px; height: 460px; border-radius: 14px; overflow: hidden; border: 1.5px solid #ebebeb; }
.q-track #trackMap { position: absolute; inset: 0; }
.q-track-msg { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 500; max-width: 86%; padding: 10px 16px;
               background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); text-align: center; }
.q-track-msg strong { display: block; font-size: 15px; color: #ff7a18; }
.q-track-msg span { font-size: 12px; color: #888; }
.q-track-msg span:empty { display: none; }

/* Share ride sheet */
.q-share { position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.q-share-box { width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 14px; padding: 16px; }
.q-share-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.q-share-head button, .q-share-del { background: none; border: 0; font-size: 22px; line-height: 1; color: #888; cursor: pointer; }
.q-share-hint { display: block; margin: 6px 0 10px; font-size: 12px; color: #888; }
.q-share-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #ebebeb; }
.q-share-row > span { flex: 1; min-width: 0; }
.q-share-row b { display: block; font-size: 14px; color: #1a1a1a; }
.q-share-row small { font-size: 12px; color: #888; word-break: break-all; }
.q-share-auto { margin: 0; font-size: 12px; font-weight: 600; color: #333; white-space: nowrap; }
/* up to 5 contacts: the list scrolls by itself (about 3 rows show), so the form and the buttons stay in view */
#q-share-list { max-height: 180px; overflow-y: auto; overscroll-behavior: contain; margin-bottom: 12px; border-bottom: 1px solid #ebebeb; }
#q-share-form { margin: 12px 0; padding-top: 12px; border-top: 1px solid #ebebeb; }
#q-share-form .form-control { margin-bottom: 8px; }
#q-share-form small { display: block; margin-bottom: 8px; font-size: 12px; color: #888; }
.q-share-err { color: #c62828; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.q-share-err:empty { display: none; }

/* inside the sidebar list every <span> is styled as a row label (red, floated): not these two */
.q-call-pill .q-call-pill-num, .q-call-pill .q-call-pill-box { float: none !important; width: auto; color: #fff !important; margin: 0; }
.q-call-pill .q-call-pill-box { width: 22px; }

/* "Change booking details" on Pay Now: what to change (as the app's change sheet) */
.q-change-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.q-change-overlay[hidden] { display: none; }
.q-change-box { background: #fff; border-radius: 14px; width: 100%; max-width: 440px; padding: 18px 18px 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); }
.q-change-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-change-head h4 { margin: 0; font-size: 18px; font-weight: 700; color: #1a1a1a; }
.q-change-x { background: none; border: 0; font-size: 26px; line-height: 1; color: #888; padding: 0 4px; cursor: pointer; }
.q-change-hint { margin: 6px 0 12px; font-size: 13px; color: #888; }
.q-change-opt, .q-change-opt:visited { display: flex; flex-direction: column; gap: 2px; padding: 12px 34px 12px 14px; margin-bottom: 10px; border: 1.5px solid #ebebeb;
  border-radius: 10px; color: #333; text-decoration: none; position: relative; }
.q-change-opt::after { content: '\203A'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #bbb; }
.q-change-opt:hover, .q-change-opt:focus { border-color: #ff7a18; background: rgba(255, 122, 24, 0.06); color: #333; text-decoration: none; outline: none; }
.q-change-label { font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.3px; }
.q-change-value { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.q-change-value--clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-change-sub { font-size: 12px; color: #888; }
.q-change-cancel { margin-top: 4px; background: #fff; border: 2px solid #ff7a18; color: #ff7a18; font-weight: 600; border-radius: 10px; }
.q-change-cancel:hover, .q-change-cancel:focus { background: rgba(255, 122, 24, 0.10); color: #ff7a18; outline: none; }
/* the booking page while one part of an unpaid booking is changed */
.q-edit-note { margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
/* "Cancel, back to payment": an outline button like the others of the customer pages */
.q-edit-note a, .q-edit-note a:visited { display: inline-block; padding: 6px 14px; border: 1.5px solid #ff7a18; border-radius: 8px; background: #fff;
  color: #ff7a18; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.q-edit-note a:hover { background: rgba(255, 122, 24, 0.10); color: #ff7a18; text-decoration: none; }
.q-edit-note a:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.30); text-decoration: none; }

/* ---- Pay Now page (23 Oct design: icon headings, one plan + summary card, payment card, no banner picture) ---- */
.q-pn { background: transparent; box-shadow: none; padding: 0 15px; }
.q-pn-ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 122, 24, 0.12); color: #ff7a18; display: inline-flex;
  align-items: center; justify-content: center; font-size: 20px; flex: none; }
.q-pn-ic--lg { width: 64px; height: 64px; font-size: 28px; }
.q-pn-head { display: flex; align-items: center; gap: 16px; margin: 18px 0 16px; }
.q-pn-title { margin: 0 0 4px; font-family: inherit; font-size: 28px; font-weight: 700; color: #1a1a1a; text-transform: none; letter-spacing: 0; }
.q-pn-sub { margin: 0; color: #666; font-size: 14px; }
.q-pn-timer { display: flex; align-items: center; gap: 10px; text-align: left; border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.q-pn-timer .fa { color: #ff7a18; font-size: 22px; }
.q-pn-timer strong { color: #ff7a18; font-size: 18px; }
.q-pn-timer.q-pay-timer--urgent .fa, .q-pn-timer.q-pay-timer--urgent strong { color: #e82a2c; }
.q-pn-card { background: #fff; border: 1px solid #cfcfcf; border-radius: 14px; padding: 18px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10); }
.q-pn-card #plan-bar-toggle { gap: 14px; border: 0; border-radius: 0; padding: 0 0 14px; justify-content: flex-start; }
.q-pn-card #plan-details-panel { border: 1px solid #d6d6d6; border-radius: 10px; margin-bottom: 4px; }
.q-pn-plan { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.q-pn-plan-name { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.q-pn-plan-sub { margin: 0; font-size: 13px; color: #777; }
.q-pn-price { font-size: 20px; font-weight: 700; color: #ff7a18; white-space: nowrap; }
.q-pn-summary { margin-top: 14px; }
.q-pn-summary-head { background: #f7f8fa; border-radius: 10px; padding: 11px 14px; font-weight: 700; font-size: 15px; color: #1a1a1a; margin-bottom: 4px; }
.q-pn-summary-head .fa { color: #ff7a18; margin-right: 6px; }
.q-pn .booking-summary-table td:first-child { text-transform: none; font-size: 14px; color: #666; letter-spacing: 0; width: 140px; }
.q-pn .booking-summary-table td:first-child .fa { color: #ff7a18; width: 20px; text-align: center; margin-right: 8px; }
.q-pn .booking-summary-table td { padding: 7px 4px; }   /* rows closer together */
.q-pn-card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid #e6e6e6; }
.q-pn-card-title { margin: 0 0 2px; font-size: 18px; font-weight: 700; color: #1a1a1a; }
.q-pn-btn { height: 54px; border-radius: 12px !important; font-weight: 700; letter-spacing: 0.4px; display: flex; align-items: center; justify-content: center; gap: 10px; }
#submit-payment.q-pn-btn { background: #ff7a18; border-color: #ff7a18; color: #fff; }
#submit-payment.q-pn-btn:hover, #submit-payment.q-pn-btn:focus { background: #f26a00; border-color: #f26a00; }
#submit-payment.q-pn-btn::before { content: '\f09d'; font-family: FontAwesome; font-weight: normal; font-size: 20px; }   /* credit card */
#submit-payment.q-pn-btn::after { content: '\f061'; font-family: FontAwesome; font-weight: normal; font-size: 16px; }    /* arrow */
.q-pn-btn.q-pay-change { margin-top: 14px; }
@media (max-width: 991px) { .q-pn-card.q-pn-pay { margin-top: 16px; } }
@media (max-width: 480px) { .q-pn-head { align-items: flex-start; } .q-pn-title { font-size: 22px; } .q-pn-ic--lg { width: 48px; height: 48px; font-size: 22px; } }

#submit-payment.q-pn-btn:disabled::before, #submit-payment.q-pn-btn:disabled::after { display: none; }   /* "Processing..." has its own spinner */
.q-pn-pay #card-errors:empty { display: none; }   /* no empty gap above the buttons when there is no message */
/* Pay Now: plan details | booking summary side by side; the summary takes the whole width while the details are folded away */
.q-pn-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }   /* both blocks as tall as the taller one */
.q-pn-split:has(#plan-details-panel:not(.open)) { grid-template-columns: minmax(0, 1fr); }
.q-pn-split:has(#plan-details-panel:not(.open)) #plan-details-panel { display: none; }
.q-pn-split .q-pn-summary { margin-top: 0; }
.q-pn-card #plan-details-panel.open { max-height: none; margin-bottom: 0; }
@media (max-width: 767px) { .q-pn-split { grid-template-columns: minmax(0, 1fr); } }
/* Pay Now: no folding any more; the summary block gets the same frame as the plan details */
.q-pn-card #plan-bar-toggle { cursor: default; }
.q-pn-split .q-pn-summary { border: 1px solid #d6d6d6; border-radius: 10px; padding: 10px 20px; }
.q-pn-split .q-pn-summary .q-pn-summary-head { margin: 0 -10px 4px; }
#plan-details-panel .q-pn-summary-head { margin: 0 -10px 4px; }   /* same heading band as Booking Summary */
.q-pn .booking-summary-table td.q-pn-wrap { white-space: normal; word-break: break-word; line-height: 1.4; }
.q-pn-secure { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 12px 14px; background: #f7f8fa; border-radius: 10px; }
.q-pn-secure .fa { color: #2e7d32; font-size: 20px; margin-top: 2px; }
.q-pn-secure strong { display: block; font-size: 14px; color: #1a1a1a; }
.q-pn-secure span { display: block; font-size: 13px; color: #777; }
/* row icons of Plan Details / Booking Summary switched off (23 Oct, to compare); delete this line to bring them back */
.q-pn .booking-summary-table td:first-child .fa { display: none; }
