/* ============================================================
   RentalOS frontend portal — scoped under .rentalos-portal so
   nothing leaks into (or out of) the host theme.
   ============================================================ */
.rentalos-portal {
	--rp-ink: #15171c;
	--rp-amber: #f5a524;
	--rp-amber-press: #d98a12;
	--rp-go: #16a34a;
	--rp-go-bg: #e7f6ec;
	--rp-busy: #2563eb;
	--rp-busy-bg: #e6eeff;
	--rp-warn: #d9820c;
	--rp-warn-bg: #fcefd6;
	--rp-stop: #dc2626;
	--rp-stop-bg: #fdeaea;
	--rp-idle: #6b7280;
	--rp-idle-bg: #eef0f3;
	--rp-surface: #f7f8fa;
	--rp-card: #fff;
	--rp-line: #e6e8ec;
	--rp-text: #1a1d24;
	--rp-text-2: #5b6472;
	--rp-text-3: #9aa3b2;
	--rp-radius: 14px;
	--rp-radius-sm: 9px;
	--rp-shadow: 0 1px 2px rgba(20,23,28,.05), 0 10px 30px rgba(20,23,28,.07);
	--rp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", system-ui, sans-serif;
	font-family: var(--rp-font);
	color: var(--rp-text);
	font-variant-numeric: tabular-nums;
	max-width: 1080px;
	margin: 0 auto;
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}
.rentalos-portal *, .rentalos-portal *::before, .rentalos-portal *::after { box-sizing: border-box; }
.rentalos-portal .ros-skeleton { padding: 60px; text-align: center; color: var(--rp-text-3); }

/* Stepper */
.ros-steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.ros-step { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--rp-text-3); padding: 8px 14px; border-radius: 30px; background: var(--rp-surface); }
.ros-step .n { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--rp-line); display: grid; place-items: center; font-size: 12px; }
.ros-step.is-active { color: var(--rp-ink); background: rgba(245,165,36,.14); }
.ros-step.is-active .n { background: var(--rp-amber); border-color: var(--rp-amber); color: var(--rp-ink); }
.ros-step.is-done { color: var(--rp-go); }
.ros-step.is-done .n { background: var(--rp-go); border-color: var(--rp-go); color: #fff; }

/* Cards / panel */
.ros-card { background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: var(--rp-radius); box-shadow: var(--rp-shadow); padding: 24px; }
.ros-card + .ros-card { margin-top: 16px; }
.ros-h2 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 4px; }
.ros-sub { font-size: 14px; color: var(--rp-text-2); margin: 0 0 18px; }

/* Form */
.ros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ros-field { display: flex; flex-direction: column; gap: 6px; }
.ros-field.col-span { grid-column: 1 / -1; }
.ros-field label { font-size: 13px; font-weight: 600; color: var(--rp-text-2); }
.ros-input, .ros-select {
	width: 100%; border: 1px solid var(--rp-line); border-radius: var(--rp-radius-sm);
	padding: 11px 13px; font-size: 15px; font-family: inherit; color: var(--rp-text); background: #fff; outline: none;
	transition: border-color .12s, box-shadow .12s;
}
.ros-input:focus, .ros-select:focus { border-color: var(--rp-amber); box-shadow: 0 0 0 3px rgba(245,165,36,.18); }

/* Buttons */
.ros-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--rp-radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; border: 1px solid transparent; font-family: inherit; transition: background .12s, transform .04s; text-decoration: none; }
.ros-btn:active { transform: translateY(1px); }
.ros-btn-accent { background: var(--rp-amber); color: var(--rp-ink); }
.ros-btn-accent:hover { background: var(--rp-amber-press); }
.ros-btn-dark { background: var(--rp-ink); color: #fff; }
.ros-btn-dark:hover { background: #000; }
.ros-btn-ghost { background: #fff; color: var(--rp-text); border-color: var(--rp-line); }
.ros-btn-ghost:hover { background: var(--rp-surface); }
.ros-btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.ros-btn[disabled] { opacity: .55; cursor: not-allowed; }
.ros-actions { display: flex; gap: 12px; margin-top: 22px; align-items: center; }
.ros-actions .sp { flex: 1; }

/* Vehicle results */
.ros-veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ros-veh { border: 1px solid var(--rp-line); border-radius: var(--rp-radius); overflow: hidden; background: #fff; transition: transform .12s, box-shadow .15s; display: flex; flex-direction: column; }
.ros-veh:hover { transform: translateY(-3px); box-shadow: var(--rp-shadow); }
.ros-veh-img { height: 150px; background: linear-gradient(135deg, #2a2e3a, #16181d); background-size: cover; background-position: center; display: grid; place-items: center; position: relative; }
.ros-veh-img .cat { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--rp-ink); font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.ros-veh-img svg { width: 54px; height: 54px; color: rgba(255,255,255,.25); }
.ros-veh-b { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.ros-veh-name { font-weight: 800; font-size: 16px; letter-spacing: -.3px; }
.ros-veh-spec { font-size: 12.5px; color: var(--rp-text-3); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.ros-veh-foot { margin-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; }
.ros-veh-rate .amt { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.ros-veh-rate .per { font-size: 12px; color: var(--rp-text-3); }
.ros-veh-est { font-size: 12px; color: var(--rp-text-2); }

/* Extras */
.ros-extra { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--rp-line); border-radius: var(--rp-radius-sm); cursor: pointer; margin-bottom: 10px; transition: border-color .12s, background .12s; }
.ros-extra:hover { background: var(--rp-surface); }
.ros-extra.is-on { border-color: var(--rp-amber); background: rgba(245,165,36,.06); }
.ros-extra input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--rp-amber); }
.ros-extra .ex-name { font-weight: 600; }
.ros-extra .ex-desc { font-size: 12.5px; color: var(--rp-text-3); }
.ros-extra .ex-price { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* Summary */
.ros-summary { background: var(--rp-surface); border-radius: var(--rp-radius-sm); padding: 16px 18px; }
.ros-srow { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: var(--rp-text-2); }
.ros-srow .amt { color: var(--rp-text); font-weight: 600; }
.ros-srow.total { border-top: 1px dashed var(--rp-line); margin-top: 8px; padding-top: 12px; font-size: 17px; font-weight: 800; color: var(--rp-text); }
.ros-chosen { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--rp-line); border-radius: var(--rp-radius-sm); margin-bottom: 16px; }
.ros-chosen .img { width: 64px; height: 48px; border-radius: 8px; background: linear-gradient(135deg, #2a2e3a, #16181d); background-size: cover; background-position: center; flex: 0 0 64px; }
.ros-chosen .nm { font-weight: 700; }
.ros-chosen .mt { font-size: 12.5px; color: var(--rp-text-3); }
.ros-chosen .ch { margin-left: auto; }

/* Pills */
.ros-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 20px; }
.ros-pill::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ros-pill.go { color: var(--rp-go); background: var(--rp-go-bg); }
.ros-pill.busy { color: var(--rp-busy); background: var(--rp-busy-bg); }
.ros-pill.warn { color: var(--rp-warn); background: var(--rp-warn-bg); }
.ros-pill.stop { color: var(--rp-stop); background: var(--rp-stop-bg); }
.ros-pill.idle { color: var(--rp-idle); background: var(--rp-idle-bg); }

/* Confirmation */
.ros-confirm { text-align: center; padding: 24px 10px; }
.ros-confirm .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--rp-go-bg); color: var(--rp-go); display: grid; place-items: center; margin: 0 auto 18px; }
.ros-confirm .tick svg { width: 38px; height: 38px; }
.ros-confirm h2 { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.ros-ref { display: inline-block; font-size: 20px; font-weight: 800; letter-spacing: 1px; background: var(--rp-surface); border-radius: 10px; padding: 10px 18px; margin: 14px 0; }

/* Account dashboard */
.ros-acct-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ros-acct-head .hello { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.ros-acct-head .sp { flex: 1; }
.ros-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.ros-tile { background: #fff; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); padding: 18px; box-shadow: var(--rp-shadow); }
.ros-tile .lab { font-size: 12.5px; color: var(--rp-text-2); font-weight: 600; }
.ros-tile .val { font-size: 26px; font-weight: 800; letter-spacing: -.6px; margin-top: 8px; }
.ros-tabs { display: flex; gap: 4px; background: var(--rp-surface); padding: 4px; border-radius: 10px; margin-bottom: 18px; width: fit-content; }
.ros-tabs button { border: none; background: none; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--rp-text-2); padding: 9px 18px; border-radius: 7px; cursor: pointer; }
.ros-tabs button.is-active { background: #fff; color: var(--rp-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.ros-bk { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); margin-bottom: 14px; background: #fff; }
.ros-bk .img { width: 110px; height: 80px; border-radius: 10px; background: linear-gradient(135deg, #2a2e3a, #16181d); background-size: cover; background-position: center; flex: 0 0 110px; }
.ros-bk .body { flex: 1; min-width: 0; }
.ros-bk .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ros-bk .nm { font-weight: 800; font-size: 16px; }
.ros-bk .ref { font-size: 12px; color: var(--rp-text-3); font-weight: 600; }
.ros-bk .meta { font-size: 13px; color: var(--rp-text-2); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.ros-bk .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ros-bk .amt { font-size: 18px; font-weight: 800; }
.ros-due { font-size: 12px; color: var(--rp-stop); font-weight: 600; }

.ros-note { font-size: 13.5px; padding: 12px 14px; border-radius: var(--rp-radius-sm); margin-bottom: 14px; }
.ros-note.bad { background: var(--rp-stop-bg); color: var(--rp-stop); }
.ros-note.ok { background: var(--rp-go-bg); color: var(--rp-go); }
.ros-note.info { background: var(--rp-busy-bg); color: var(--rp-busy); }

.ros-login { text-align: center; padding: 50px 20px; }
.ros-login h2 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.ros-login p { color: var(--rp-text-2); margin: 0 0 20px; }

.ros-empty2 { text-align: center; padding: 44px 20px; color: var(--rp-text-3); }

@media (max-width: 720px) {
	.ros-grid { grid-template-columns: 1fr; }
	.ros-tiles { grid-template-columns: repeat(2, 1fr); }
	.ros-bk { flex-wrap: wrap; }
	.ros-bk .right { text-align: left; align-items: flex-start; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .rentalos-portal * { transition: none !important; } }

/* Rate selection (local vs out of town) + required extras */
.ros-rates { display: grid; gap: 10px; }
.ros-rates .ros-extra { margin: 0; }
.ros-h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.ros-req { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 2px 6px; border-radius: 5px; background: rgba(245,165,36,.16); color: #a86a05; margin-left: 6px; vertical-align: middle; }
.ros-extra input[disabled] { cursor: not-allowed; }
