/* First Class Driver — Frontend styles
   All colors resolve from CSS variables (see class-actb-shortcode.php::build_color_css)
   so the entire palette can be edited from Chauffeur Bookings > Settings.
   Design spec: border-radius is 0 across the whole form. */

.actb-app{
  --actb-bg: #0d0a07;
  --actb-panel: #16120d;
  --actb-panel-2: #1d1811;
  --actb-border: #2c2419;
  --actb-text: #f4ecdd;
  --actb-text-muted: #9c9284;
  --actb-accent: #d7a851;
  --actb-accent-light: #f2cd83;
  --actb-accent-dark: #a97c2f;
  --actb-success: #43cd8e;
  --actb-warning: #e7a83e;
  --actb-danger: #e35c62;
  --actb-disabled: #52493b;
  --actb-btn-text: #241a09;

  width: 100%;
  max-width: var(--actb-max-width, 460px);
  margin: 0 auto;
  font-family: 'Manrope', Arial, sans-serif;
  color: var(--actb-text);
  box-sizing: border-box;
  position: relative;
}
.actb-app *, .actb-app *::before, .actb-app *::after{ box-sizing: border-box; }

/* Tabs */
.actb-tabs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.actb-tab{
  padding: 13px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid var(--actb-border);
  background: var(--actb-panel);
  color: var(--actb-text-muted);
  cursor: pointer;
  transition: all .25s ease;
}
.actb-tab:hover{ color: var(--actb-text); border-color: var(--actb-accent-dark); }
.actb-tab.actb-active{
  background: linear-gradient(180deg, var(--actb-accent-light), var(--actb-accent));
  border-color: var(--actb-accent);
  color: var(--actb-btn-text);
}

/* Cards */
.actb-card{
  background: var(--actb-panel);
  border: 1px solid var(--actb-border);
  border-radius: 0;
  padding: 22px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.actb-card::before{
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--actb-accent), transparent);
  opacity: .5;
}

.actb-section-label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--actb-accent);
  margin-bottom: 16px;
}
.actb-section-label svg{ width: 14px; height: 14px; flex-shrink: 0; display: block; stroke: currentColor !important; fill: none !important; }

.actb-field{ margin-bottom: 14px; position: relative; }
.actb-field:last-child{ margin-bottom: 0; }
.actb-field label{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--actb-text-muted);
  margin-bottom: 7px;
}
.actb-field label svg{ width: 12px; height: 12px; color: var(--actb-accent-dark); display: block; stroke: currentColor !important; fill: none !important; }

.actb-input-wrap{ position: relative; }
.actb-input-wrap input{
  width: 100%;
  background: var(--actb-panel-2);
  border: 1px solid var(--actb-border);
  color: var(--actb-text);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 14px;
  padding: 12px 40px 12px 14px;
  border-radius: 0;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.actb-input-wrap input::placeholder{ color: var(--actb-text-muted); opacity: .8; }
.actb-input-wrap input:focus{
  border-color: var(--actb-accent);
  background: var(--actb-panel);
}
.actb-input-spin{
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--actb-text-muted);
}
.actb-input-spin svg{ width: 100%; height: 100%; }

/* Address autocomplete */
.actb-suggestions{
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  background: var(--actb-panel);
  border: 1px solid var(--actb-accent-dark);
  border-radius: 0;
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.55);
}
.actb-suggestion-item{
  padding: 10px 14px;
  font-size: 13px;
  color: var(--actb-text);
  cursor: pointer;
  border-bottom: 1px solid var(--actb-border);
}
.actb-suggestion-item:last-child{ border-bottom: none; }
.actb-suggestion-item:hover,
.actb-suggestion-item.actb-highlighted{
  background: rgba(215,168,81,0.12);
  color: var(--actb-accent-light);
}

/* Select fields (Vehicle Type, etc.) */
.actb-input-wrap select.actb-select{
  width: 100%;
  background: var(--actb-panel-2);
  border: 1px solid var(--actb-border);
  color: var(--actb-text);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 0;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d7a851' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
.actb-input-wrap select.actb-select:focus{
  border-color: var(--actb-accent);
  background-color: var(--actb-panel);
}

/* Multi-stop */
.actb-stops{ display: flex; flex-direction: column; gap: 12px; }
.actb-stop-row{ display: flex; align-items: flex-start; gap: 8px; }
.actb-stop-index{
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 0;
  border: 1px solid var(--actb-accent-dark);
  color: var(--actb-accent);
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 6px;
}
.actb-stop-main{ flex: 1; min-width: 0; }
.actb-stop-actions{ display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.actb-icon-btn{
  width: 26px; height: 26px;
  border-radius: 0;
  border: 1px solid var(--actb-border) !important;
  background: var(--actb-panel-2) !important;
  color: var(--actb-text-muted) !important;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .18s ease;
  padding: 0;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}
.actb-icon-btn:hover{ border-color: var(--actb-accent) !important; color: var(--actb-accent-light) !important; }
.actb-icon-btn.actb-danger:hover{ border-color: var(--actb-danger) !important; color: var(--actb-danger) !important; }
.actb-icon-btn svg{
  width: 14px !important; height: 14px !important;
  display: block;
  color: inherit !important;
  stroke: currentColor !important;
  fill: none !important;
  flex-shrink: 0;
  pointer-events: none;
}
.actb-icon-btn:disabled{ opacity: .3; cursor: not-allowed; }
.actb-icon-btn:disabled:hover{ border-color: var(--actb-border) !important; color: var(--actb-text-muted) !important; }

.actb-wait-time{
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; font-size: 11.5px; color: var(--actb-text-muted);
}
.actb-wait-time svg{ width: 13px; height: 13px; color: var(--actb-accent-dark); }
.actb-wait-time input{
  width: 52px;
  background: var(--actb-panel-2);
  border: 1px solid var(--actb-border);
  color: var(--actb-text);
  border-radius: 0;
  padding: 5px 6px;
  text-align: center;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 12.5px;
  outline: none;
}
.actb-wait-time input:focus{ border-color: var(--actb-accent); }
.actb-wait-label{ text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.actb-mins{ text-transform: lowercase; }

.actb-add-stop{
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: none !important;
  border: 1px dashed var(--actb-border) !important;
  color: var(--actb-accent) !important;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px;
  border-radius: 0;
  width: 100%;
  cursor: pointer;
  margin-top: 4px;
  transition: all .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.actb-add-stop svg{ width: 14px !important; height: 14px !important; display: block; color: inherit !important; stroke: currentColor !important; fill: none !important; pointer-events: none; }
.actb-add-stop:hover{ border-color: var(--actb-accent) !important; background: rgba(215,168,81,0.06) !important; }

/* Calendar */
.actb-cal-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.actb-cal-nav{
  width: 32px; height: 32px;
  border-radius: 0;
  border: 1px solid var(--actb-border) !important;
  background: var(--actb-panel-2) !important;
  color: var(--actb-accent) !important;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .18s ease;
}
.actb-cal-nav:hover{ border-color: var(--actb-accent) !important; background: var(--actb-panel) !important; }
.actb-cal-nav svg{ width: 14px !important; height: 14px !important; display: block; color: inherit !important; stroke: currentColor !important; fill: none !important; pointer-events: none; }
.actb-cal-title{ font-size: 18px; font-weight: 700; text-align: center; }
.actb-cal-title .actb-year{ color: var(--actb-accent); }

.actb-cal-grid{ display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; transition: opacity .15s ease; }
.actb-cal-grid.actb-loading{ opacity: .35; }
.actb-cal-dow{
  text-align: center; font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.08em; color: var(--actb-text-muted);
  padding-bottom: 6px; text-transform: uppercase;
}

.actb-cal-day{
  position: relative;
  aspect-ratio: 1;
  border-radius: 0;
  border: 1px solid transparent;
  background: var(--actb-panel-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--actb-text);
  opacity: 0;
  animation: actbDayIn .35s ease forwards;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.actb-cal-day.actb-empty{ background: transparent; cursor: default; }
.actb-cal-day.actb-unavailable{ color: var(--actb-text-muted); cursor: not-allowed; }
.actb-cal-day:not(.actb-empty):not(.actb-unavailable):hover{
  transform: translateY(-2px);
  border-color: var(--actb-border);
  background: var(--actb-panel);
}
.actb-cal-day .actb-ring{
  position: absolute; inset: 1px;
  border-radius: 0;
  border: 1.5px solid var(--actb-accent);
  opacity: 0;
  transition: opacity .15s ease;
}
.actb-cal-day.actb-selected{ background: rgba(215,168,81,0.08); color: var(--actb-accent-light); }
.actb-cal-day.actb-selected .actb-ring{ opacity: 1; }

.actb-avail-pill{ width: 16px; height: 4px; border-radius: 0; background: var(--actb-disabled); }
.actb-cal-day.actb-wide .actb-avail-pill{ background: var(--actb-success); }
.actb-cal-day.actb-limited .actb-avail-pill{ background: var(--actb-warning); }
.actb-cal-day.actb-scarce .actb-avail-pill{ background: var(--actb-danger); }
.actb-cal-day.actb-unavailable .actb-avail-pill{ background: var(--actb-disabled); opacity: .5; }

@keyframes actbDayIn{ from{ opacity: 0; transform: translateY(4px); } to{ opacity: 1; transform: translateY(0); } }

.actb-cal-legend{
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--actb-border);
}
.actb-legend-item{ display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--actb-text-muted); }
.actb-legend-dot{ width: 7px; height: 7px; border-radius: 0; }
.actb-legend-dot.actb-wide{ background: var(--actb-success); }
.actb-legend-dot.actb-limited{ background: var(--actb-warning); }
.actb-legend-dot.actb-scarce{ background: var(--actb-danger); }
.actb-legend-dot.actb-unavailable{ background: var(--actb-disabled); }

.actb-time-row{ margin-top: 16px; }

.actb-time-row .actb-input-wrap{ cursor: pointer; }
.actb-time-row .actb-input-wrap input{ cursor: pointer; }

.actb-row-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.actb-submit-btn{
  width: 100%;
  margin-top: 4px;
  padding: 15px;
  border: none !important;
  border-radius: 0;
  background: linear-gradient(180deg, var(--actb-accent-light), var(--actb-accent-dark)) !important;
  color: var(--actb-btn-text) !important;
  font-family: 'Manrope', Arial, sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.actb-submit-btn:hover{ transform: translateY(-1px); }
.actb-submit-btn:disabled{ opacity: .6; cursor: not-allowed; transform: none; }

.actb-selected-summary{
  font-size: 11.5px; color: var(--actb-text-muted);
  text-align: center; margin-top: 12px; min-height: 15px;
}
.actb-selected-summary strong{ color: var(--actb-accent-light); font-weight: 700; }

.actb-form-message{
  margin-top: 12px;
  font-size: 12.5px;
  text-align: center;
  border-radius: 0;
  padding: 0;
}
.actb-form-message.actb-success{ color: var(--actb-success); }
.actb-form-message.actb-error{ color: var(--actb-danger); }

@media (max-width: 380px){
  .actb-card{ padding: 16px; }
}

/* Success modal */
.actb-modal-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 2, 0.72);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.actb-modal-overlay.actb-open{ display: flex; }
.actb-modal-box{
  background: var(--actb-panel);
  border: 1px solid var(--actb-border);
  border-radius: 0;
  max-width: 360px;
  width: 100%;
  padding: 32px 26px;
  text-align: center;
  position: relative;
  animation: actbModalIn .25s ease;
}
@keyframes actbModalIn{
  from{ opacity: 0; transform: translateY(10px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
.actb-modal-icon{
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 0;
  border: 1.5px solid var(--actb-success);
  color: var(--actb-success);
  display: flex; align-items: center; justify-content: center;
}
.actb-modal-icon svg{ width: 28px; height: 28px; display: block; stroke: currentColor !important; fill: none !important; }
.actb-modal-box h3{
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--actb-text);
}
.actb-modal-box p{
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--actb-text-muted);
  line-height: 1.5;
}
.actb-modal-close{
  width: 100%;
  padding: 12px;
  border: none !important;
  border-radius: 0;
  background: linear-gradient(180deg, var(--actb-accent-light), var(--actb-accent-dark)) !important;
  color: var(--actb-btn-text) !important;
  font-family: 'Manrope', Arial, sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
