/*
 | Guest transfer booking page (resources/views/guest/booking.blade.php).
 | Loaded after site-chrome.css, which provides the --kh-* brand tokens.
 */
:root {
    --gb-bg: #f5f8fb;
    --gb-surface: #fff;
    --gb-blue-soft: #eaf3fb;
    --gb-danger: #d64545;
    --gb-danger-soft: #fbeaea;
    --gb-success: #1f9d6b;
    --gb-success-soft: #e6f6ef;
    --gb-radius: 12px;
    --gb-radius-lg: 18px;
    --gb-shadow: 0 10px 30px rgba(15, 27, 45, .08);
    --gb-font: 'Poppins', 'Cairo', system-ui, sans-serif;
}
[lang="ar"] { --gb-font: 'Cairo', 'Poppins', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.gb {
    min-height: 100vh;
    background: var(--gb-bg);
    color: var(--kh-text);
    font-family: var(--gb-font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.gb h1, .gb h2, .gb h3, .gb p { margin: 0; }
.gb button { font-family: inherit; }
.gb [x-cloak] { display: none !important; }
.gb :focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(47, 128, 201, .3); }

/* Header strip */
.gb-header {
    position: relative;
    padding: 28px 16px 84px;
    background: radial-gradient(circle at 100% 0%, rgba(232, 180, 90, .2), transparent 50%), linear-gradient(135deg, var(--kh-navy) 0%, var(--kh-navy-2) 100%);
    color: #fff;
    text-align: center;
}
.gb-logo { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 16px; background: #fff; overflow: hidden; }
.gb-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 6px; }
.gb-logo svg { width: 30px; height: 30px; color: var(--kh-navy); }
.gb-tenant { display: block; margin-bottom: 4px; color: var(--kh-gold); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
[dir="rtl"] .gb-tenant { letter-spacing: 0; }
.gb-header h1 { font-size: 28px; font-weight: 800; color: #fff; }
.gb-header p { margin-top: 6px; color: rgba(255, 255, 255, .78); }

.gb-wrap { position: relative; width: min(520px, 100%); margin: -60px auto 0; padding: 0 16px 96px; }
.gb-card { background: var(--gb-surface); border: 1px solid var(--kh-line); border-radius: var(--gb-radius-lg); box-shadow: var(--gb-shadow); }

/* Stepper */
.gb-steps { display: flex; align-items: flex-start; list-style: none; margin: 0; padding: 18px 22px; border-bottom: 1px solid var(--kh-line); }
.gb-steps li { display: flex; align-items: flex-start; flex: 1 1 0; }
.gb-steps li:last-child { flex: 0 0 auto; }
.gb-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; }
.gb-dot { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--kh-line); background: var(--kh-tint); color: var(--kh-muted); font-weight: 700; font-size: 14px; }
.gb-step span:last-child { font-size: 12.5px; font-weight: 600; color: var(--kh-muted); }
.gb-step.is-current .gb-dot { border-color: var(--kh-blue); background: var(--kh-blue); color: #fff; box-shadow: 0 0 0 4px var(--gb-blue-soft); }
.gb-step.is-done .gb-dot { border-color: var(--kh-blue); background: var(--gb-blue-soft); color: var(--kh-blue); }
.gb-step.is-current span:last-child, .gb-step.is-done span:last-child { color: var(--kh-text); }
.gb-line { flex: 1; height: 2px; margin: 17px 8px 0; border-radius: 2px; background: var(--kh-line); }
.gb-line.is-done { background: var(--kh-blue); }

.gb-body { padding: 22px; }
.gb-stack { display: grid; gap: 18px; }
.gb-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Fields */
.gb-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--kh-muted); }
[dir="rtl"] .gb-label { letter-spacing: 0; }
.gb-input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1.5px solid #d5dee8;
    border-radius: var(--gb-radius);
    background: var(--gb-surface);
    color: var(--kh-text);
    font: inherit;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.gb-input:focus { outline: none; border-color: var(--kh-blue); box-shadow: 0 0 0 4px var(--gb-blue-soft); }
.gb-input.has-error { border-color: var(--gb-danger); }
.gb-error { display: block; margin-top: 6px; color: var(--gb-danger); font-size: 13px; font-weight: 500; }

/* Location picker */
.gb-route { position: relative; display: grid; gap: 12px; padding-inline-end: 52px; }
.gb-select { position: relative; }
.gb-select-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; cursor: pointer; }
.gb-select-btn > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gb-select-btn > span.is-placeholder { color: #9aa8b8; font-weight: 500; }
.gb-select-btn svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--kh-muted); }
.gb-menu {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 6px);
    z-index: 30;
    border: 1px solid var(--kh-line);
    border-radius: var(--gb-radius);
    background: var(--gb-surface);
    box-shadow: 0 18px 40px rgba(15, 27, 45, .16);
    overflow: hidden;
}
.gb-menu-search { padding: 10px; border-bottom: 1px solid var(--kh-line); }
.gb-menu-search input { width: 100%; padding: 9px 12px; border: 1px solid var(--kh-line); border-radius: 8px; background: var(--kh-tint); font: inherit; font-size: 14px; }
.gb-menu ul { max-height: 240px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; }
.gb-menu li button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: none; color: var(--kh-text); font-size: 14px; font-weight: 500; text-align: start; cursor: pointer; }
.gb-menu li button:hover, .gb-menu li button:focus-visible { background: var(--gb-blue-soft); }
.gb-menu li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--kh-blue); }
.gb-menu-empty { padding: 14px; color: var(--kh-muted); font-size: 14px; text-align: center; }
.gb-swap {
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    width: 42px;
    height: 42px;
    margin-top: -9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--kh-line);
    border-radius: 50%;
    background: var(--gb-surface);
    color: var(--kh-blue);
    box-shadow: var(--gb-shadow);
    cursor: pointer;
}
.gb-swap svg { width: 20px; height: 20px; }

/* Passengers */
.gb-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--kh-line); }
.gb-section-head h2 { font-size: 16px; font-weight: 700; }
.gb-section-head p { font-size: 13px; color: var(--kh-muted); }
.gb-pill { padding: 4px 10px; border-radius: 999px; background: var(--gb-blue-soft); color: var(--kh-blue); font-size: 13px; font-weight: 700; white-space: nowrap; }
.gb-adder { display: grid; gap: 10px; padding: 14px; border-radius: var(--gb-radius); background: var(--kh-tint); }
.gb-adder-row { display: flex; gap: 10px; }
.gb-adder-row select { flex: 0 0 130px; }
.gb-people { display: grid; gap: 8px; max-height: 200px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.gb-people li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--kh-line); border-radius: var(--gb-radius); }
.gb-people li strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.gb-avatar { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--gb-blue-soft); color: var(--kh-blue); font-weight: 700; font-size: 13px; }
.gb-icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: var(--kh-tint); color: var(--kh-muted); cursor: pointer; }
.gb-icon-btn:hover { background: var(--gb-danger-soft); color: var(--gb-danger); }
.gb-icon-btn svg { width: 16px; height: 16px; }

/* Vehicles */
.gb-vehicles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gb-vehicle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border: 2px solid var(--kh-line);
    border-radius: var(--gb-radius);
    background: var(--gb-surface);
    color: var(--kh-text);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.gb-vehicle[aria-checked="true"] { border-color: var(--kh-blue); background: var(--gb-blue-soft); }
.gb-vehicle img { height: 48px; max-width: 100%; object-fit: contain; }
.gb-vehicle-placeholder { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--kh-tint); color: var(--kh-muted); }
.gb-vehicle-placeholder svg { width: 24px; height: 24px; }

.gb-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gb-extra { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--kh-line); border-radius: var(--gb-radius); }
.gb-extra .gb-label { margin: 0; }
.gb-counter { display: flex; align-items: center; gap: 12px; }
.gb-counter button { width: 34px; height: 34px; border: 1px solid var(--kh-line); border-radius: 8px; background: var(--gb-surface); color: var(--kh-text); font-size: 18px; font-weight: 700; cursor: pointer; }
.gb-counter output { min-width: 24px; font-size: 18px; font-weight: 800; color: var(--kh-blue); text-align: center; }
.gb-switch { position: relative; width: 46px; height: 26px; border: 0; border-radius: 999px; background: #c9d5e2; cursor: pointer; transition: background-color .2s ease; }
.gb-switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s ease; }
.gb-switch[aria-checked="true"] { background: var(--kh-blue); }
.gb-switch[aria-checked="true"]::after { inset-inline-start: 23px; }

.gb-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px; border-radius: var(--gb-radius); background: linear-gradient(150deg, var(--kh-navy-2) 0%, var(--kh-navy) 100%); color: #fff; }
.gb-total small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.gb-total strong { font-size: 30px; font-weight: 800; color: var(--kh-gold); }
.gb-total em { margin-inline-start: 4px; font-style: normal; font-weight: 700; color: rgba(255, 255, 255, .8); }
.gb-total-side { font-size: 12.5px; color: rgba(255, 255, 255, .7); text-align: end; }

.gb-alert { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--gb-radius); background: var(--gb-danger-soft); color: var(--gb-danger); font-size: 14px; font-weight: 500; }

/* Actions */
.gb-actions { display: flex; gap: 10px; margin-top: 24px; }
.gb-back { flex: 0 0 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--kh-line); border-radius: var(--gb-radius); background: var(--gb-surface); color: var(--kh-text); cursor: pointer; }
.gb-back svg, .gb-cta svg { width: 20px; height: 20px; }
[dir="rtl"] .gb-back svg, [dir="rtl"] .gb-cta svg.gb-dir { transform: scaleX(-1); }
.gb-cta {
    flex: 1;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--gb-radius);
    background: var(--kh-gold);
    color: var(--kh-navy);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease;
}
.gb-cta:hover { background: var(--kh-gold-dark); }
.gb-cta:disabled { opacity: .6; cursor: not-allowed; }
.gb-spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gb-spin .7s linear infinite; }
@keyframes gb-spin { to { transform: rotate(360deg); } }

/* Success */
.gb-success { padding: 40px 24px; text-align: center; }
.gb-success-icon { width: 80px; height: 80px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--gb-success-soft); color: var(--gb-success); }
.gb-success-icon svg { width: 40px; height: 40px; }
.gb-success h2 { font-size: 22px; font-weight: 800; }
.gb-success p { margin: 10px 0 24px; color: var(--kh-muted); }

.gb-foot { margin-top: 18px; color: var(--kh-muted); font-size: 12.5px; text-align: center; }

/* intl-tel-input */
.gb .iti { width: 100%; }
.gb .iti__country-list { border-radius: var(--gb-radius); box-shadow: 0 18px 40px rgba(15, 27, 45, .16); }
.gb .iti__search-input { padding: 10px 12px; border: 1px solid var(--kh-line); border-radius: 8px; font-family: var(--gb-font); }

/* WhatsApp */
.gb-wa {
    position: fixed;
    bottom: 20px;
    inset-inline-end: 20px;
    z-index: 40;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}
.gb-wa svg { width: 30px; height: 30px; }

@media (max-width: 480px) {
    .gb-header { padding-top: 22px; }
    .gb-header h1 { font-size: 24px; }
    .gb-body { padding: 18px 16px; }
    .gb-steps { padding: 16px; }
}
