/* ============================================================
   Checkout (Xác nhận đặt xe) & Thank-you (Cảm ơn) full pages
   ============================================================ */
.vm-checkout, .vm-thankyou { background: #f4f7f9; color: #181145; font-family: Inter, sans-serif; min-height: 60vh; overflow-x: clip; padding: 12px 0 32px; }
.vm-checkout *, .vm-thankyou * { box-sizing: border-box; }
.vm-checkout__container { margin: 0 auto; width: min(1200px, calc(100% - 40px)); }
.vm-checkout__progress { background: #fff; border-bottom: 1px solid #dbe5ea; border-top: 1px solid #dbe5ea; margin: 0 calc(50% - 50vw) 8px; padding: 6px max(20px, calc((100vw - 1200px) / 2)) 2px; }
.vm-checkout__progress .vm-checkout__steps { margin-bottom: 2px; }

.vm-checkout__breadcrumb { color: #6c7d96; font-size: 13px; line-height: 20px; margin-bottom: 4px; }
.vm-checkout__breadcrumb a { color: #6c7d96; text-decoration: none; }
.vm-checkout__breadcrumb a:hover { color: #ff9000; }
.vm-checkout__breadcrumb span { margin: 0 6px; }

.vm-checkout__steps { align-items: flex-start; display: flex; justify-content: center; margin: 0 0 10px; }
.vm-step { align-items: center; color: #6c7d96; display: flex; flex-direction: column; font-size: 13px; font-weight: 600; gap: 8px; position: relative; text-align: center; width: 160px; }
.vm-step:not(:last-child)::after { background: #dbe5ea; clip-path: polygon(0 38%, calc(100% - 6px) 38%, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, calc(100% - 6px) 62%, 0 62%); content: ''; height: 8px; left: calc(50% + 22px); position: absolute; top: 14px; width: calc(100% - 44px); }
.vm-step--done:not(:last-child)::after { background: #ff9000; }
.vm-step__i { align-items: center; background: #fff; border: 2px solid #dbe5ea; border-radius: 50%; color: #6c7d96; display: flex; font-weight: 700; height: 36px; justify-content: center; width: 36px; z-index: 1; }
.vm-step--done .vm-step__i, .vm-step--cur .vm-step__i { background: #ff9000; border-color: #ff9000; color: #fff; }
.vm-step--done > span:last-child { color: #6c7d96; }
.vm-step--cur > span:last-child { color: #ff9000; }
.vm-step__i svg { height: 18px; width: 18px; }

.vm-checkout__head { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 12px; }
.vm-checkout__head h1 { color: #181145; font-family: Lexend, sans-serif; font-size: 26px; font-weight: 700; margin: 0 0 4px; }
.vm-checkout__head p { color: #6c7d96; font-size: 14px; margin: 0; }
.vm-checkout__back { align-items: center; color: #181145 !important; display: inline-flex; font-family: Lexend, sans-serif; font-size: 16px; font-weight: 900; gap: 8px; line-height: 24px; padding: 4px 0; text-decoration: none; white-space: nowrap; }
.vm-checkout__back:hover { color: #ff9000 !important; }
.vm-checkout__back svg { height: 18px; width: 18px; }

.vm-checkout__grid { align-items: stretch; display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.vm-trip { background: #fff; border: 1px solid rgba(27,43,94,.12); border-radius: 16px; box-shadow: 0 8px 20px rgba(23,36,77,.06); overflow: hidden; }
.vm-trip__head { align-items: center; background: #181145; color: #fff; display: flex; gap: 12px; justify-content: space-between; padding: 12px 20px; }
.vm-trip__head h2 { font-family: Lexend, sans-serif; font-size: 18px; font-weight: 700; margin: 0; }
.vm-trip__head span { background: rgba(255,255,255,.14); border-radius: 999px; color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; white-space: nowrap; }
.vm-trip__body { padding: 2px 20px; }
.vm-trip__row { align-items: flex-start; border-bottom: 1px solid #f0f3f7; display: flex; gap: 12px; padding: 9px 0; }
.vm-trip__row:last-child { border-bottom: 0; }
.vm-trip__row > svg { color: #3f23df; flex: 0 0 20px; height: 20px; margin-top: 1px; width: 20px; }
.vm-trip__row > div { display: flex; flex: 1; gap: 12px; justify-content: space-between; min-width: 0; }
.vm-trip__row span { color: #6c7d96; font-size: 14px; flex-shrink: 0; white-space: nowrap; }
.vm-trip__row strong { color: #181145; font-size: 14px; font-weight: 600; text-align: right; word-break: break-word; }
.vm-trip__price { align-items: center; background: #fff8ef; border-top: 1px solid #ffe1b5; display: flex; gap: 12px; justify-content: space-between; padding: 12px 20px; }
.vm-trip__price > div > span { color: #181145; font-size: 15px; font-weight: 700; }
.vm-trip__price small { color: #90a5bb; display: block; font-size: 12px; font-weight: 400; margin-top: 2px; }
.vm-trip__price > strong { color: #e68100; font-family: Lexend, sans-serif; font-size: 24px; font-weight: 900; white-space: nowrap; }

.vm-contact { background: #fff; border: 1px solid rgba(27,43,94,.12); border-radius: 16px; box-shadow: 0 8px 20px rgba(23,36,77,.06); display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.vm-contact__head { border-bottom: 1px solid rgba(27,43,94,.1); padding: 18px 22px 14px; }
.vm-contact__head h2 { color: #181145; font-family: Lexend, sans-serif; font-size: 18px; font-weight: 700; margin: 0; }
.vm-contact__head p { color: #6c7d96; font-size: 13px; margin: 4px 0 0; }
.vm-contact form { display: flex; flex: 1; flex-direction: column; padding: 18px 20px; }
.vm-field { align-items: center; border: 1px solid #dbe5ea; border-radius: 12px; display: flex; gap: 10px; margin-bottom: 14px; padding: 0 14px; transition: border-color .2s; }
.vm-field:focus-within { border-color: #ff9000; }
.vm-field > svg { color: #6c7d96; flex: 0 0 18px; height: 18px; width: 18px; }
.vm-field--req { position: relative; }
.vm-field__label { color: #6c7d96; font-size: 15px; left: 42px; pointer-events: none; position: absolute; top: 50%; transform: translateY(-50%); }
.vm-field__label span { color: #e5484d; font-weight: 700; }
.vm-field--req input:not(:placeholder-shown) + .vm-field__label { display: none; }
.vm-field input, .vm-field textarea {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #181145;
    flex: 1;
    font-family: Inter, sans-serif;
    font-size: 15px;
    margin: 0 !important;
    min-width: 0;
    outline: none;
    padding: 14px 0;
    width: auto !important;
}
.vm-field textarea { min-height: 96px; resize: none; }
.vm-field--area { align-items: flex-start; flex: 1; }
.vm-field--area > svg { margin-top: 14px; }
.vm-field--area textarea { height: 100%; }
.vm-checkout__err { color: #b42318; font-size: 13px; margin: -4px 0 10px; }
.vm-checkout__err:empty { display: none; }
.vm-confirm { align-items: center; background: #ff9000; border: 0; border-radius: 12px; box-shadow: 0 4px 9.6px rgba(255,144,0,.41); color: #fff; cursor: pointer; display: flex; font-family: Lexend, sans-serif; font-size: 16px; font-weight: 700; gap: 8px; justify-content: center; padding: 15px; text-decoration: none; width: 100%; }
.vm-confirm:hover { background: #e68100; color: #fff; }
.vm-confirm:disabled { cursor: default; opacity: .75; }
.vm-confirm svg { height: 18px; width: 18px; }
.vm-cancel { color: #181145; display: block; font-size: 15px; font-weight: 700; margin: 12px auto 0; padding: 6px; text-align: center; text-decoration: none; width: -moz-fit-content; width: fit-content; }
.vm-cancel:hover { color: #ff9000; }

.vm-checkout__empty { background: #fff; border-radius: 16px; margin: 20px auto; max-width: 520px; padding: 48px 32px; text-align: center; }
.vm-checkout__empty h1 { color: #181145; font-family: Lexend, sans-serif; font-size: 24px; margin: 0 0 8px; }
.vm-checkout__empty p { color: #6c7d96; margin: 0 0 20px; }
.vm-checkout__empty a { background: #ff9000; border-radius: 12px; color: #fff; display: inline-block; font-weight: 700; padding: 12px 24px; text-decoration: none; }

/* Thank you */
.vm-thankyou__card { background: #fff; border: 1px solid rgba(27,43,94,.12); border-radius: 16px; box-shadow: 0 8px 20px rgba(23,36,77,.06); margin: 8px auto 0; max-width: 560px; padding: 48px 40px; text-align: center; }
.vm-thankyou__check { align-items: center; background: #e7fff1; border-radius: 50%; color: #21c67a; display: inline-flex; height: 84px; justify-content: center; margin-bottom: 24px; width: 84px; }
.vm-thankyou__check svg { height: 44px; width: 44px; }
.vm-thankyou__card h1 { color: #181145; font-family: Lexend, sans-serif; font-size: 28px; font-weight: 900; margin: 0 0 12px; }
.vm-thankyou__card p { color: #6c7d96; font-size: 15px; line-height: 1.6; margin: 0 auto 28px; max-width: 420px; }
.vm-thankyou__back { align-items: center; color: #181145; display: inline-flex; font-family: Lexend, sans-serif; font-size: 16px; font-weight: 700; gap: 8px; justify-content: center; text-decoration: none; }
.vm-thankyou__back:hover { color: #ff9000; }
.vm-thankyou__back svg { height: 18px; width: 18px; }

@media (max-width: 900px) {
    .vm-checkout, .vm-thankyou { min-height: calc(100svh - 64px); padding: 0 0 32px; }
    .vm-checkout__container { width: calc(100% - 48px); }
    .vm-checkout__breadcrumb { margin: 0; padding: 8px 0; }
    .vm-checkout__progress { margin-bottom: 48px; padding-bottom: 20px; padding-top: 24px; }
    .vm-checkout__grid { grid-template-columns: 1fr; }
    .vm-checkout__head { flex-direction: column; gap: 24px; margin-bottom: 24px; }
    .vm-checkout__back { order: -1; }
    .vm-checkout__head h1 { font-size: 40px; line-height: 1.2; margin-bottom: 12px; }
    .vm-checkout__head p { font-size: 16px; line-height: 24px; }
    .vm-step { width: 33%; }
    .vm-trip__head { align-items: flex-start; flex-direction: column; gap: 4px; padding: 16px 20px; }
    .vm-trip__head span { background: transparent; padding: 0; }
    .vm-trip__row > svg { background: #eef1ff; border-radius: 50%; box-sizing: border-box; flex-basis: 36px; height: 36px; margin-top: 0; padding: 8px; width: 36px; }
    .vm-trip__row > div { align-items: flex-start; }
    .vm-trip__price { flex-wrap: wrap; }
    .vm-trip__price > strong { font-size: 32px; }
    .vm-thankyou .vm-checkout__progress { margin-bottom: 0; }
    .vm-thankyou__card { background: transparent; border: 0; box-shadow: none; margin-top: 80px; max-width: 100%; padding: 0; }
    .vm-thankyou__check { height: 80px; margin-bottom: 12px; width: 80px; }
    .vm-thankyou__card h1 { font-size: 28px; }
    .vm-thankyou__card p { font-size: 16px; line-height: 28px; margin-bottom: 20px; }
    body.page-template-page-checkout .site-footer,
    body.page-template-page-thankyou .site-footer { display: none; }
}

@media (max-width: 399px) {
    .vm-checkout__container { width: calc(100% - 32px); }
    .vm-trip__row > div { gap: 8px; }
    .vm-trip__row span, .vm-trip__row strong { font-size: 13px; }
    .vm-trip__price { align-items: flex-start; flex-direction: column; }
}
