/* ===============================
GLOBAL RESET
=============================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:Arial, Helvetica, sans-serif;
background:#f5f7fa;
color:#333;
}


/* ===============================
HEADER
=============================== */

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 8%;
background:#111;
color:white;
}

.logo{
font-size:22px;
font-weight:bold;
}

nav ul{
display:flex;
list-style:none;
gap:25px;
}

nav ul li a{
color:white;
text-decoration:none;
font-size:14px;
}

nav ul li a:hover{
opacity:0.8;
}


/* ===============================
SECTIONS
=============================== */

.services{
padding:60px 20px;
text-align:center;
}

.services h2{
margin-bottom:30px;
font-size:28px;
}


/* ===============================
CARDS
=============================== */

.card-container{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px;
max-width:1100px;
margin:auto;
}

.card{
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 6px 20px rgba(0,0,0,0.08);
text-align:center;
}

.card h3{
margin-bottom:10px;
}

.card p{
margin-bottom:10px;
}

.card button{
padding:10px 18px;
border:none;
background:#007bff;
color:white;
border-radius:6px;
cursor:pointer;
}

.card button:hover{
background:#0056b3;
}


/* ===============================
FORMS
=============================== */

.booking-form{
max-width:450px;
margin:auto;
background:white;
padding:30px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.booking-form input,
.booking-form select{
width:100%;
padding:12px;
margin-top:10px;
margin-bottom:15px;
border:1px solid #ddd;
border-radius:6px;
font-size:14px;
}

.booking-form button{
width:100%;
padding:12px;
border:none;
background:#007bff;
color:white;
border-radius:6px;
cursor:pointer;
font-size:16px;
}

.booking-form button:hover{
background:#0056b3;
}

.map-actions{
display:flex;
gap:10px;
margin-top:-8px;
margin-bottom:12px;
}

.map-actions button{
flex:1;
padding:10px;
border:1px solid #007bff;
background:#f0f7ff;
color:#007bff;
border-radius:6px;
cursor:pointer;
}

.coord-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:10px;
margin-bottom:10px;
}

.fare-card{
background:#f8fbff;
border:1px solid #dbe9ff;
border-radius:8px;
padding:14px;
margin:10px 0 15px;
text-align:left;
}

.fare-card p{
margin:6px 0;
}

.map-mode-wrap{
margin-bottom:10px;
display:none;
}

#mapModeLabel{
text-align:left;
font-weight:bold;
margin-bottom:8px;
}

#bookingMap{
height:280px;
border:1px solid #ddd;
border-radius:8px;
margin:8px 0 16px;
display:none;
}


/* ===============================
PAYMENT CARD
=============================== */

.payment-card{
max-width:400px;
margin:auto;
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.payment-card select{
width:100%;
padding:10px;
margin:10px 0;
border:1px solid #ccc;
border-radius:5px;
}

.payment-card button{
width:100%;
padding:12px;
background:#28a745;
border:none;
color:white;
border-radius:6px;
cursor:pointer;
}

.payment-card button:hover{
background:#218838;
}


/* ===============================
CHAT UI
=============================== */

.chat-box{
max-width:600px;
margin:auto;
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.messages{
height:300px;
overflow-y:auto;
border:1px solid #ddd;
padding:10px;
margin-bottom:10px;
}

.message{
padding:8px 12px;
margin:5px 0;
border-radius:6px;
max-width:70%;
}

.client{
background:#007bff;
color:white;
margin-left:auto;
}

.driver{
background:#eee;
}

.chat-input{
display:flex;
gap:10px;
}

.chat-input input{
flex:1;
padding:10px;
border:1px solid #ccc;
border-radius:5px;
}

.chat-input button{
padding:10px 15px;
background:#007bff;
color:white;
border:none;
border-radius:5px;
cursor:pointer;
}


/* ===============================
RESPONSIVE
=============================== */

@media(max-width:1024px){

.card-container{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

header{
flex-direction:column;
gap:15px;
}

nav ul{
flex-direction:column;
gap:10px;
align-items:center;
}

.card-container{
grid-template-columns:1fr;
}

.services{
padding:40px 10px;
}

.map-actions{
flex-direction:column;
}

.coord-grid{
grid-template-columns:1fr;
}

}

/* ===============================
   CLIENT BOOKING — friendly layout (booking.html)
=============================== */

.page-booking {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #eef4ff 0%, #f5f7fa 32%);
  color: #1a1d26;
  min-height: 100vh;
}

.client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 5%;
  background: linear-gradient(135deg, #0f1419 0%, #1c2834 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.client-header .logo-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.client-header nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 8px 20px;
  align-items: center;
  justify-content: flex-end;
}

.client-header nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.client-header nav a:hover,
.client-header nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #4dabf7;
}

.booking-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.booking-intro {
  text-align: center;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.booking-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.booking-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #4b5563;
}

.booking-form-v2 {
  max-width: none;
  margin: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.booking-form-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 960px) {
  .booking-form-grid {
    grid-template-columns: 1fr minmax(280px, 340px);
    gap: 32px;
  }
}

.booking-fields {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 32px;
  box-shadow: 0 4px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.form-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eef2f7;
}

.form-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #228be6, #339af0);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.form-section-hint {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 18px;
  text-align: left;
  line-height: 1.45;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.req {
  color: #e03131;
}

.optional-tag {
  font-weight: 500;
  font-size: 0.8rem;
  color: #868e96;
}

.booking-form-v2 input,
.booking-form-v2 select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 0;
  margin-bottom: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafbfc;
}

.booking-form-v2 input:hover,
.booking-form-v2 select:hover {
  border-color: #cbd5e1;
}

.booking-form-v2 input:focus,
.booking-form-v2 select:focus {
  outline: none;
  border-color: #339af0;
  box-shadow: 0 0 0 3px rgba(51, 154, 240, 0.2);
  background: #fff;
}

.input-readonly {
  background: #f1f5f9 !important;
  color: #475569;
  cursor: default;
}

.field-hint {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 6px;
}

.form-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.advanced-block {
  margin: 12px 0 16px;
  text-align: left;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  padding: 8px 12px;
  background: #f8fafc;
}

.advanced-block summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  padding: 4px 0;
}

.advanced-block[open] {
  padding-bottom: 12px;
}

.booking-form-v2 .map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 0;
}

.booking-form-v2 .map-actions-tight {
  margin-top: 8px;
}

.btn-outline {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  border: 1px solid #339af0;
  background: #f0f7ff;
  color: #1864ab;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}

.btn-outline:hover {
  background: #d0ebff;
}

.btn-outline:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.82rem;
  min-width: 0;
}

.btn-ghost {
  border-color: #dee2e6;
  background: #fff;
  color: #495057;
}

.map-mode-label {
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 8px;
}

.booking-form-v2 #bookingMap {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.fare-summary-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fare-card-sticky {
  position: sticky;
  top: 20px;
  background: linear-gradient(165deg, #f0f7ff 0%, #fff 45%);
  border: 2px solid #bfdbfe;
  border-radius: 16px;
  padding: 22px 20px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
}

.fare-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 6px;
}

.fare-card-note {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.4;
}

.fare-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fare-lines li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
}

.fare-lines li:last-child {
  border-bottom: none;
}

.fare-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid #2563eb;
  font-size: 1.05rem;
  color: #0f172a;
}

.fare-total strong {
  font-size: 1.35rem;
  color: #1d4ed8;
}

.btn-submit-booking {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #228be6 0%, #1c7ed6 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 139, 230, 0.45);
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-submit-booking:hover {
  box-shadow: 0 6px 20px rgba(34, 139, 230, 0.5);
  transform: translateY(-1px);
}

.btn-submit-booking:active {
  transform: translateY(0);
}

.booking-trust {
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 959px) {
  .fare-card-sticky {
    position: relative;
    top: 0;
  }

  .booking-fields {
    padding: 22px 18px 26px;
  }
}