/* Vehicle rental booking — Traveloka-style form matching design mockup */
.vrb-page {
    --vrb-navy: #1a2b4b;
    --vrb-muted: #7b8798;
    --vrb-border: #e5eaf0;
    --vrb-orange: #f39200;
    --vrb-orange-deep: #e07e00;
    --vrb-blue: #005ed6;
    --vrb-blue-soft: #e8f2ff;
    --vrb-green-bg: #e8f8ef;
    --vrb-green: #1b7a45;
    --vrb-bg: linear-gradient(180deg, #eef4fb 0%, #f7f9fc 45%, #f3f6fa 100%);
    background: var(--vrb-bg);
    padding: 2rem 0 3.5rem;
    min-height: calc(100vh - 80px);
}

.vrb-container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.vrb-shell {
    display: grid;
    grid-template-columns: 1.65fr .95fr;
    gap: 0;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(26, 43, 75, .10);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .9);
}

.vrb-main {
    padding: 2rem 2.1rem 2.1rem;
}

.vrb-header {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 1.6rem;
}

.vrb-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2rem;
    bottom: .35rem;
    width: 4px;
    border-radius: 4px;
    background: var(--vrb-orange);
}

.vrb-header h1 {
    margin: 0;
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
    font-weight: 800;
    color: var(--vrb-navy);
    letter-spacing: -.02em;
    line-height: 1.2;
}

.vrb-header p {
    margin: .35rem 0 0;
    color: var(--vrb-muted);
    font-size: .95rem;
}

.vrb-errors {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 12px;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.vrb-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

.vrb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.05rem 1.15rem;
}

.vrb-field--full {
    grid-column: 1 / -1;
}

.vrb-field label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .45rem;
    font-size: .86rem;
    font-weight: 600;
    color: var(--vrb-navy);
}

.vrb-field label em {
    color: #ef4444;
    font-style: normal;
    margin-left: .1rem;
}

.vrb-ico {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: var(--vrb-orange);
    flex-shrink: 0;
}

.vrb-ico svg {
    width: 16px;
    height: 16px;
}

.vrb-input-wrap input,
.vrb-input-wrap textarea {
    width: 100%;
    border: 1px solid var(--vrb-border);
    border-radius: 12px;
    padding: .78rem .95rem;
    font: inherit;
    font-size: .95rem;
    color: var(--vrb-navy);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.vrb-input-wrap textarea {
    resize: vertical;
    min-height: 84px;
}

.vrb-input-wrap input:focus,
.vrb-input-wrap textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--vrb-blue) 55%, #fff);
    box-shadow: 0 0 0 3px rgba(0, 94, 214, .12);
}

.vrb-input-wrap--icon {
    position: relative;
}

.vrb-input-wrap--icon input {
    padding-left: 2.45rem;
}

.vrb-input-ico {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.vrb-input-ico svg {
    width: 16px;
    height: 16px;
    display: block;
}

.vrb-stepper {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 46px;
}

.vrb-stepper input {
    width: 2.6rem;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vrb-navy);
    -moz-appearance: textfield;
    appearance: textfield;
}

.vrb-stepper input::-webkit-outer-spin-button,
.vrb-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.vrb-stepper-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #d7dee8;
    background: #f3f5f8;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .12s ease, background .12s ease;
}

.vrb-stepper-btn:hover {
    transform: translateY(-1px);
}

.vrb-stepper-btn--plus {
    background: var(--vrb-orange);
    border-color: var(--vrb-orange);
    color: #fff;
    box-shadow: 0 6px 14px rgba(243, 146, 0, .28);
}

.vrb-driver-toggle {
    display: block;
    cursor: pointer;
}

.vrb-driver-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vrb-driver-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem 1rem;
    border-radius: 999px;
    background: var(--vrb-green-bg);
    color: var(--vrb-green);
    font-size: .88rem;
    font-weight: 600;
    min-height: 46px;
}

.vrb-driver-toggle input:not(:checked) + .vrb-driver-badge {
    background: #f1f5f9;
    color: #64748b;
}

.vrb-estimate {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-top: 1.35rem;
    padding: .95rem 1.05rem;
    border-radius: 14px;
    background: var(--vrb-blue-soft);
    color: #334155;
    font-size: .92rem;
    line-height: 1.45;
}

.vrb-estimate p {
    margin: 0;
}

.vrb-estimate strong {
    color: var(--vrb-blue);
    font-weight: 800;
}

.vrb-estimate-ico {
    color: var(--vrb-blue);
    flex-shrink: 0;
    margin-top: .1rem;
}

.vrb-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
    margin-top: 1.25rem;
}

.vrb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 12px;
    padding: .78rem 1.25rem;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.vrb-btn--ghost {
    background: #fff;
    border-color: #cfd7e3;
    color: var(--vrb-navy);
}

.vrb-btn--ghost:hover {
    background: #f8fafc;
}

.vrb-btn--primary {
    background: var(--vrb-orange);
    color: #fff;
    min-width: 170px;
    box-shadow: 0 10px 22px rgba(243, 146, 0, .28);
}

.vrb-btn--primary:hover {
    background: var(--vrb-orange-deep);
    transform: translateY(-1px);
}

.vrb-side {
    background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 100%);
    border-left: 1px solid #edf1f6;
    padding: 1.55rem 1.35rem 1.6rem;
    display: flex;
    flex-direction: column;
}

.vrb-side-title {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--vrb-navy);
    margin-bottom: .95rem;
}

.vrb-side-title-ico {
    color: var(--vrb-orange);
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.vrb-side-title-ico svg {
    width: 18px;
    height: 18px;
}

.vrb-side-card {
    background: #fff;
    border-radius: 18px;
    padding: 1rem 1rem 1.15rem;
    box-shadow: 0 10px 28px rgba(26, 43, 75, .08);
    border: 1px solid #eef2f7;
    flex: 1;
}

.vrb-side-visual {
    position: relative;
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffe4c2 0%, #ffb347 55%, #ff8a00 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.vrb-side-orb {
    position: absolute;
    inset: auto -10% -30% auto;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), transparent 45%),
        linear-gradient(160deg, #ff9f1a, #e86d00);
    opacity: .9;
}

.vrb-side-orb::before {
    content: "";
    position: absolute;
    inset: 28% 18% auto;
    height: 42%;
    background:
        linear-gradient(90deg, transparent 0 8%, #7a4510 8% 14%, transparent 14% 28%, #7a4510 28% 34%, transparent 34% 48%, #7a4510 48% 54%, transparent 54% 68%, #7a4510 68% 74%, transparent 74%),
        linear-gradient(#8b5a1a, #8b5a1a);
    opacity: .35;
    clip-path: polygon(0 100%, 8% 55%, 18% 70%, 28% 40%, 40% 65%, 52% 30%, 64% 58%, 76% 22%, 88% 50%, 100% 35%, 100% 100%);
}

.vrb-side-orb::after {
    content: "";
    position: absolute;
    top: 18%;
    left: 12%;
    width: 42px;
    height: 14px;
    background: #fff;
    opacity: .55;
    border-radius: 40% 60% 50% 50%;
    transform: rotate(-18deg);
    box-shadow: 18px -8px 0 -2px rgba(255, 255, 255, .4);
}

.vrb-side-visual img {
    position: relative;
    z-index: 1;
    max-width: 92%;
    max-height: 128px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .18));
}

.vrb-side-card h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--vrb-navy);
    font-weight: 800;
    line-height: 1.3;
}

.vrb-side-lead {
    margin: .4rem 0 1rem;
    color: var(--vrb-muted);
    font-size: .88rem;
    line-height: 1.45;
}

.vrb-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .85rem;
}

.vrb-features li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: .7rem;
    align-items: center;
}

.vrb-features strong {
    display: block;
    color: var(--vrb-navy);
    font-size: .9rem;
    font-weight: 750;
}

.vrb-features span {
    display: block;
    color: var(--vrb-muted);
    font-size: .8rem;
    margin-top: .08rem;
}

.vrb-feat-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vrb-feat-ico svg {
    width: 18px;
    height: 18px;
}

.vrb-feat-ico--blue {
    background: #e8f0ff;
    color: #2563eb;
}

.vrb-feat-ico--green {
    background: #e7f8ee;
    color: #16a34a;
}

.vrb-feat-ico--orange {
    background: #fff1e0;
    color: #f39200;
}

.vrb-feat-ico--red {
    background: #ffe8e8;
    color: #ef4444;
}

.vrb-script {
    margin: 1.15rem 0 0;
    text-align: center;
    font-family: "Great Vibes", cursive;
    font-size: 1.55rem;
    color: #1e4f9c;
    line-height: 1.2;
    position: relative;
    padding-bottom: .55rem;
}

.vrb-script::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 150px;
    height: 7px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--vrb-orange) 20%, var(--vrb-orange) 80%, transparent);
    border-radius: 999px;
    opacity: .85;
}

html[data-bs-theme="dark"] .vrb-page {
    --vrb-navy: #e8eef7;
    --vrb-muted: #9aabbd;
    --vrb-border: #2a3a4d;
    --vrb-blue-soft: color-mix(in srgb, #005ed6 22%, #0f1d33);
    --vrb-green-bg: color-mix(in srgb, #166534 35%, #0f1d33);
    --vrb-green: #86efac;
    --vrb-bg: linear-gradient(180deg, #0a121c 0%, #0f1a28 100%);
}

html[data-bs-theme="dark"] .vrb-shell,
html[data-bs-theme="dark"] .vrb-side-card {
    background: #152233;
    border-color: #243447;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

html[data-bs-theme="dark"] .vrb-side {
    background: linear-gradient(180deg, #121e2d, #0f1a28);
    border-left-color: #243447;
}

html[data-bs-theme="dark"] .vrb-input-wrap input,
html[data-bs-theme="dark"] .vrb-input-wrap textarea,
html[data-bs-theme="dark"] .vrb-btn--ghost {
    background: #0f1a28;
    color: var(--vrb-navy);
    border-color: var(--vrb-border);
    color-scheme: dark;
}

html[data-bs-theme="dark"] .vrb-stepper-btn--minus {
    background: #1e2d40;
    border-color: #2a3a4d;
    color: #cbd5e1;
}

html[data-bs-theme="dark"] .vrb-script {
    color: #7db4ff;
}

@media (max-width: 960px) {
    .vrb-shell {
        grid-template-columns: 1fr;
    }

    .vrb-side {
        border-left: 0;
        border-top: 1px solid #edf1f6;
        order: 2;
    }

    .vrb-main {
        padding: 1.4rem 1.15rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .vrb-grid {
        grid-template-columns: 1fr;
    }

    .vrb-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .vrb-btn--primary {
        width: 100%;
    }
}
