/* Estimate pages: step 1 (details) and step 2 (fare + vehicle) */
.est-body { background: #f6faf7; }
.est-hero { background: linear-gradient(135deg, #064d2b 0%, #0a6b3c 55%, #1a8f55 100%); color: #fff; padding: 54px 18px 110px; text-align: center; position: relative; overflow: hidden; }
.est-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(244,196,48,.18); }
.est-hero-in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.est-hero h1 { font-family: "Lexend", sans-serif; font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.2; margin-bottom: .8rem; }
.est-hero h1 span { color: #f4c430; }
.est-hero p { font-size: 1.02rem; opacity: .92; margin: 0 auto; max-width: 560px; }

.est-card-wrap { max-width: 1120px; margin: -64px auto 0; padding: 0 14px; position: relative; z-index: 5; }
.est-card { background: #fff; border-radius: 18px; padding: 1.4rem 1.4rem 1.5rem; box-shadow: 0 18px 50px rgba(8,40,22,.18); }
.est-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 16px; align-items: end; }
.est-f { grid-column: span 3; min-width: 0; position: relative; }
.est-f-addr { grid-column: span 6; }
.est-f-btn { grid-column: span 3; }
.est-f .lbl b { color: #d63a2f; }
.est-in { width: 100%; height: 46px; border: 1px solid #d9e2dc; border-radius: 10px; padding: 0 .85rem; font-size: .92rem; background: #fff; outline: none; color: var(--ink, #14231a); }
.est-in:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,107,60,.14); }
.est-phone { display: flex; }
.est-phone span { display: flex; align-items: center; padding: 0 .75rem; background: var(--accent); border: 1px solid #d9e2dc; border-right: 0; border-radius: 10px 0 0 10px; font-weight: 600; color: var(--primary-dark); font-size: .9rem; }
.est-phone .est-in { border-radius: 0 10px 10px 0; }
.est-go { width: 100%; height: 46px; }
/* "Use my current location" sits on the label line (top right), so Pickup and Drop boxes are on exactly the same level */
.est-f-addr .link-btn { position: absolute; top: -1px; right: 0; padding: 0; font-size: .76rem; line-height: 1.3; white-space: nowrap; }

.est-points { max-width: 1120px; margin: 34px auto 60px; padding: 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.est-points div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; }
.est-points i { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.est-points strong { font-size: .95rem; }
.est-points span { color: var(--text-muted); font-size: .82rem; }

/* step 2 */
.fare-card { max-width: 920px; margin: 48px auto 60px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 50px rgba(8,40,22,.12); display: grid; grid-template-columns: 1fr 1.05fr; overflow: hidden; }
.fare-left, .fare-right { padding: 1.6rem 1.6rem 1.5rem; }
.fare-left { border-right: 1px solid var(--line); }
.fare-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; color: var(--ink, #14231a); }
.addr-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: start; }
.addr-tx strong { display: block; font-size: .88rem; }
.addr-tx span { display: block; font-size: .85rem; color: var(--text-muted); line-height: 1.35; margin-top: 2px; }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; }
.dot-a { background: #1fa45b; } .dot-b { background: #e03131; }
.addr-line { margin: 4px 0 4px 5px; height: 26px; border-left: 2px dashed #c9d8cf; }
.edit-btn { border: 0; background: none; color: #1558d6; font-weight: 600; font-size: .8rem; padding: 0; }
.edit-btn:hover { text-decoration: underline; }
.fare-km { margin-top: 18px; display: inline-block; background: var(--accent); color: var(--primary-dark); font-weight: 600; font-size: .82rem; border-radius: 50px; padding: .3rem .85rem; }

.fare-right { display: flex; flex-direction: column; }
.fare-veh { display: flex; flex-direction: column; gap: 10px; flex: 1; max-height: 420px; overflow-y: auto; padding: 2px; }
.fv { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: .7rem .85rem; cursor: pointer; transition: all .18s; background: #fff; }
.fv:hover { border-color: #b7d3c1; }
.fv.sel { border-color: var(--primary); background: var(--accent); box-shadow: 0 6px 18px rgba(10,107,60,.14); }
.fv .ico { width: 56px; height: 56px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.4rem; overflow: hidden; }
.fv .ico img { width: 100%; height: 100%; object-fit: contain; }
.fv strong { display: block; font-size: .95rem; }
.fv small { color: var(--text-muted); font-size: .78rem; }
.fv .price { font-weight: 800; font-size: 1.1rem; color: var(--primary-dark); }
.fare-veh .spin { padding: 2rem 1rem; }
.login-note { background: #fff8e1; border: 1px solid #f1dc9a; color: #6b5200; border-radius: 12px; padding: .8rem .95rem; font-size: .88rem; display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.fare-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.fare-sum { flex: 1; line-height: 1.15; min-width: 0; }
.fare-sum small { display: block; color: var(--text-muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fare-sum strong { font-size: 1.35rem; color: var(--primary-dark); }
.fare-sum { display: none; }
.fare-foot .btn { flex: 1; min-width: 160px; }

@media (max-width: 991px) {
  .est-f, .est-f-addr { grid-column: span 6; }
  .est-f-btn { grid-column: span 12; }
  .fare-card { grid-template-columns: 1fr; margin: 18px 12px 40px; }
  .fare-left { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 575px) {
  .est-hero { padding: 36px 16px 96px; }
  .est-f, .est-f-addr { grid-column: span 12; }
  .est-points { grid-template-columns: 1fr; }
  .fare-left, .fare-right { padding: 1.2rem 1.1rem; }
  .fare-foot .btn { min-width: 0; padding: 0 1.3rem; }
}