/* assets/css/style.css -- Vasanth Cab Booking plugin styles
   Uses Montserrat font (enqueue from Google in PHP).
   Theme primary color: #990F00 (deep red), secondary black/white accents.
*/

/* Basic reset inside form */
.vcb-form {
  font-family: "Montserrat", Arial, sans-serif;
  color: #111;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  padding: 22px;
  max-width: 1100px;
  margin: 18px auto;
  box-sizing: border-box;
}

/* Title */
.vcb-form-title {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin: 0 0 14px 0;
  text-align: left;
}

/* Layout columns */
.vcb-columns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Two columns: left + right */
.vcb-col {
  box-sizing: border-box;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

/* left 48%, right 48% on wide screens; full width on mobile */
.vcb-left, .vcb-right {
  flex: 1 1 48%;
  min-width: 280px;
}

/* Section wrapper with colored header */
.vcb-section {
  border: 1px solid #ddd;
}

/* section header */
.vcb-section-title {
  background: #990F00;    /* primary color */
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  font-size: 16px;
}

/* row style */
.vcb-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 16px;
  border-top: 1px solid #eee;
  background: #f7f7f7;
}

/* label column (left) and field (right) */
.vcb-row label {
  width: 33%;
  min-width: 120px;
  color: #fff;
  background: #114; /* fallback dark; we'll style label backgrounds below per section */
  padding: 10px;
  box-sizing: border-box;
  font-weight: 600;
  border-radius: 4px;
  text-align: left;
}

/* Make the label match the section header's red for consistent look */
.vcb-section .vcb-row label {
  background: #114; /* dark vertical label - replaced below by pseudo tweak for red header columns */
}

/* Field container */
.vcb-field {
  width: 67%;
}

/* Inputs / selects / textareas */
.vcb-field input[type="text"],
.vcb-field input[type="email"],
.vcb-field input[type="date"],
.vcb-field input[type="time"],
.vcb-field textarea,
.vcb-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  background: #fff;
  box-sizing: border-box;
  font-size: 14px;
  color: #222;
}

/* textarea height */
.vcb-field textarea { min-height: 90px; resize: vertical; }

/* passenger small layout */
.vcb-passengers {
  display: flex;
  gap: 12px;
  align-items: center;
}
.vcb-pass-col { flex: 1 1 50%; }
.vcb-pass-label { font-size: 13px; margin-bottom:6px; color:#333; font-weight:600; }

/* Total & amount display */
#vcb_total_passengers {
  font-weight: 700;
  font-size: 18px;
  color: #222;
}

#vcb_amount, #vcb_banner_amount {
  font-weight: 800;
  font-size: 22px;
  color: #990F00;
}

/* Summary row (full width) */
.vcb-summary {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.vcb-summary-left { flex: 1 1 60%; }
.vcb-summary-right { flex: 1 1 40%; text-align: right; }

/* Buttons */
.vcb-actions button {
  display: inline-block;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  margin-left: 8px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: none;
}

/* primary (book) */
#vcb_book {
  background: #990F00;
  color: #fff;
}

/* secondary (check) */
#vcb_check {
  background: #990F00;
  color: #fff;
}

/* Make buttons inline, nicely rounded */
.vcb-actions button { min-width: 160px; }

/* Fare banner (full width block under form) */
.vcb-fare-banner {
  margin-top: 22px;
  background: #0aa1c9;
  color: #fff;
  padding: 18px;
  text-align: center;
  border-radius: 6px;
}
.vcb-fare-banner h3 { margin: 4px 0 8px; font-size: 20px; font-weight:700; }
.vcb-fare-banner p { margin:0; font-size:14px; }

/* Success message */
.vcb-success {
  background: #e6ffed;
  border: 1px solid #b9f0c7;
  color: #085c22;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .vcb-columns { flex-direction: column; }
  .vcb-row { flex-direction: column; }
  .vcb-row label { width: 100%; margin-bottom:6px; background:#990F00; color:#fff; }
  .vcb-field { width: 100%; }
  .vcb-summary-right { text-align: left; margin-top: 10px; }
}

/* small enhancements */
.vcb-row:first-of-type { border-top: 0; }







.vcb-section .vcb-row label,
.vcb-row label {
  background: #081035 !important;   /* deep navy for labels */
  color: #ffffff !important;        /* force white label text */
  font-weight: 700 !important;
  box-shadow: none !important;
  border: none !important;
  padding: 12px !important;
}




/* ---- Button / actions mobile fix ----
   Place at the end of assets/css/style.css and clear caches
*/

.vcb-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end; /* desktop: right aligned */
  align-items: center;
}

/* keep desktop spacing and min width */
.vcb-actions button {
  min-width: 160px;
  padding: 12px 20px;
  border-radius: 8px;
  box-sizing: border-box;
}

/* mobile / small screens: stack buttons and make full width */
@media (max-width: 900px) {
  .vcb-actions {
    flex-direction: column;      /* stack vertically */
    align-items: stretch;        /* make children expand */
    justify-content: flex-start;
    gap: 10px;
    margin-top: 8px;
  }
  .vcb-actions button {
    width: 100% !important;      /* full width buttons */
    min-width: 0 !important;
    display: block;
    margin: 0 !important;
  }

  /* if you want smaller padding on phones */
  .vcb-actions button { padding: 10px 14px; font-size: 15px; }
}

