/* Brand colours taken from the BINGO LOGISTICS logo */
:root {
  --brand: #0f5132;      /* logo green */
  --brand-2: #146c43;
  --accent: #f5b700;     /* logo yellow */
  --accent-dark: #d9a200;
  --ink: #1d1d1b;        /* logo black */
  --cream: #fbf7ee;      /* logo background */
  --bs-primary: #0f5132;
  --bs-primary-rgb: 15, 81, 50;
  --bs-link-color: #146c43;
  --bs-link-color-rgb: 20, 108, 67;
  --bs-link-hover-color: #0f5132;
  --bs-body-color: #1d1d1b;
}

body { background: #f6f3ea; padding-bottom: env(safe-area-inset-bottom); }

.bg-brand { background: var(--brand) !important; }
.brand-bar { background: var(--cream); border-bottom: 3px solid var(--accent); }
.brand-bar .navbar-brand img { height: 44px; width: auto; }
.brand-bar .nav-link { color: var(--brand); font-weight: 500; }
.brand-bar .nav-link:hover, .brand-bar .nav-link.active { color: var(--ink); }
.brand-bar .nav-link.active { box-shadow: inset 0 -3px 0 var(--accent); }
@media (max-width: 400px) { .brand-bar .navbar-brand img { height: 36px; } }
.slogan { font-style: italic; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--brand); }
.form-control:focus, .form-select:focus { border-color: #6fa58a; box-shadow: 0 0 0 .25rem rgba(15, 81, 50, .2); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.text-brand { color: var(--brand) !important; }
.text-accent { color: var(--accent) !important; }

.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-2); --bs-btn-hover-border-color: var(--brand-2); --bs-btn-active-bg: var(--brand-2); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.btn-accent:hover, .btn-accent:focus, .btn-accent.active { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--ink); }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: #1ebe5a; border-color: #1ebe5a; color: #fff; }

.card { border: 0; border-radius: .9rem; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
.card-header { background: transparent; font-weight: 600; border-bottom: 1px solid rgba(0,0,0,.06); }

.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 70%, #1f7a4f 100%);
  color: #fff; border-radius: 1.1rem; overflow: hidden; position: relative;
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(245, 183, 0, .22);
}
.hero .hero-mark { position: absolute; right: 1.5rem; bottom: 1.25rem; width: 190px; z-index: 1; border-radius: .75rem; opacity: .97; }
@media (max-width: 767.98px) { .hero .hero-mark { display: none; } }
.step-num {
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}

.stat-card .label { font-size: .8rem; color: #6c757d; text-transform: uppercase; letter-spacing: .03em; }
.stat-card .value { font-size: 1.45rem; font-weight: 700; color: var(--brand); line-height: 1.2; }
.stat-card i { font-size: 1.5rem; color: var(--accent); }

.req-item { border-left: 4px solid transparent; }
.req-item.st-pending { border-left-color: #ffc107; }
.req-item.st-quoted { border-left-color: #0dcaf0; }
.req-item.st-accepted, .req-item.st-collected, .req-item.st-in_transit { border-left-color: var(--brand); }
.req-item.st-delivered { border-left-color: #198754; }
.req-item .route { font-weight: 600; }

.form-label { font-weight: 500; }
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; font-weight: 600; }

/* Place suggestions dropdown */
.place-list { position: absolute; left: 0; right: 0; z-index: 1050; max-height: 340px; overflow-y: auto; border-radius: .6rem; }
.place-list .list-group-item { border-left: 0; border-right: 0; }
.place-list .list-group-item-action { cursor: pointer; padding-top: .6rem; padding-bottom: .6rem; }
.place-list .list-group-item-action.active { background: #e7f1ec; color: var(--ink); border-color: rgba(0,0,0,.125); }
.place-list .list-group-item-action i { color: var(--brand); font-size: 1.05rem; }
.place-list .place-head { background: var(--cream); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; font-weight: 600; padding: .3rem .9rem; }

.map-box { height: 300px; border-radius: .75rem; overflow: hidden; z-index: 0; }
.map-modes .btn.active { color: #fff; }
.photo-preview { max-height: 180px; border-radius: .5rem; }
.photo-thumb { max-width: 100%; max-height: 260px; border-radius: .75rem; object-fit: cover; }

.timeline { list-style: none; padding-left: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: .4rem; top: .35rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ""; position: absolute; left: .7rem; top: 1.1rem; bottom: 0; width: 2px; background: #dee2e6; }
.timeline li:last-child::after { display: none; }
.timeline li:last-child::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(245,183,0,.25); }

.quote-amount { font-size: 2rem; font-weight: 800; color: var(--brand); }

/* Star rating input */
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .25rem; }
.rating-input input { display: none; }
.rating-input label { font-size: 2rem; color: #ced4da; cursor: pointer; line-height: 1; }
.rating-input input:checked ~ label,
.rating-input label:hover, .rating-input label:hover ~ label { color: #ffc107; }

.bar { height: .55rem; background: var(--accent); border-radius: 1rem; min-width: 2px; }

/* Mobile bottom navigation */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; display: flex;
  background: #fff; border-top: 1px solid #e3e6ea; padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(0,0,0,.05);
}
.bottom-nav a {
  flex: 1; text-align: center; padding: .45rem 0 .4rem; color: #6c757d; text-decoration: none;
  font-size: .7rem; position: relative; display: flex; flex-direction: column; align-items: center;
}
.bottom-nav a i { font-size: 1.3rem; }
.bottom-nav a.active { color: var(--brand); font-weight: 600; }
.bottom-nav .dot {
  position: absolute; top: .2rem; left: 55%; background: var(--accent); color: var(--ink); border-radius: 1rem;
  font-size: .65rem; padding: 0 .35rem; line-height: 1.2rem;
}
@media (max-width: 767.98px) {
  .footer-space { padding-bottom: 5rem !important; }
  .quote-amount { font-size: 1.7rem; }
}
