/* ==========================================================================
   Tayyab Cabs Solutions – Public Styles
   Developer: Tayyab Shahzad | https://web.facebook.com/GulamTayyabShahzad/
   ========================================================================== */

:root {
  --tcs-black:    #000000;
  --tcs-dark:     #1a1a1a;
  --tcs-card:     #111111;
  --tcs-input:    #2d2d2d;
  --tcs-border:   #3a3a3a;
  --tcs-yellow:   #f5c518;
  --tcs-yellow2:  #d4a800;
  --tcs-white:    #ffffff;
  --tcs-muted:    #aaaaaa;
  --tcs-radius:   6px;
  --tcs-shadow:   0 20px 60px rgba(0,0,0,.90);
  --tcs-error:    #e74c3c;
  --tcs-success:  #2ecc71;
}

/* ── Popup open button ─────────────────────────────────────────────────── */
.tcs-popup-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--tcs-yellow);
  color: #000;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: var(--tcs-radius);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(245,197,24,.4);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.tcs-popup-open-btn:hover {
  transform: translateY(-2px);
  background: var(--tcs-yellow2);
  box-shadow: 0 8px 28px rgba(245,197,24,.55);
}

/* ── Overlay ───────────────────────────────────────────────────────────── */
#tcs-quote-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 99998;
  backdrop-filter: blur(4px);
  animation: tcsFadeIn .25s ease;
}
#tcs-quote-modal-overlay.tcs-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Modal container ────────────────────────────────────────────────────── */
#tcs-quote-modal {
  position: relative;
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 6px;
  width: 96%;
  max-width: 560px;
  height: 360px;
  max-height: 360px;
  overflow-y: auto;
  box-shadow: var(--tcs-shadow);
  animation: tcsSlideUp .3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--tcs-border) transparent;
}
#tcs-quote-modal::-webkit-scrollbar { width: 5px; }
#tcs-quote-modal::-webkit-scrollbar-thumb { background: var(--tcs-border); border-radius: 4px; }

/* ── Modal header ───────────────────────────────────────────────────────── */
.tcs-modal-header {
  background: #111111;
  border-bottom: 2px solid var(--tcs-yellow);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tcs-modal-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tcs-modal-logo .tcs-taxi-icon {
  font-size: 22px;
}
.tcs-modal-logo h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--tcs-white);
  line-height: 1.2;
}
.tcs-modal-logo span {
  display: block;
  font-size: 11px;
  color: var(--tcs-yellow);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tcs-modal-close {
  background: #333;
  border: none;
  color: var(--tcs-white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.tcs-modal-close:hover { background: var(--tcs-yellow); color: #000; }

/* ── Tabs ─────────────────────────────────────────────────────────────── */
.tcs-tabs {
  display: flex;
  background: #111111;
  border-bottom: none;
  gap: 0;
}
.tcs-tab-btn {
  flex: 1;
  padding: 8px 14px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-transform: uppercase;
  letter-spacing: .8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0;
}
.tcs-tab-btn.tcs-active {
  background: var(--tcs-yellow);
  color: #000;
  border-bottom: none;
}
.tcs-tab-btn:not(.tcs-active) {
  background: #2d2d2d;
  color: var(--tcs-muted);
  border-bottom: none;
}
.tcs-tab-btn:hover:not(.tcs-active) {
  background: #3a3a3a;
  color: var(--tcs-white);
}

/* ── Tab panels ─────────────────────────────────────────────────────────── */
.tcs-tab-panel { display: none; padding: 12px 16px; background: #1c1c1c; }
.tcs-tab-panel.tcs-active { display: block; }

/* ── Form-wrap shortcode ──────────────────────────────────────────────── */
.tcs-form-wrap {
  background: #1c1c1c;
  border-radius: 4px;
  overflow: hidden;
}

/* ── Form grid ───────────────────────────────────────────────────────────── */
.tcs-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tcs-form-grid .tcs-full { grid-column: 1 / -1; }

/* ── Form fields ─────────────────────────────────────────────────────────── */
.tcs-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tcs-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--tcs-muted);
  text-transform: uppercase;
  letter-spacing: .7px;
}
.tcs-field label .tcs-req { color: var(--tcs-yellow); margin-left: 2px; }

/* ── Inputs / selects / textareas – always readable white text ──────────── */
.tcs-field input,
.tcs-field select,
.tcs-field textarea {
  background: #2a2a2a;
  border: 1px solid #555;          /* slightly brighter border – easier to see */
  border-radius: var(--tcs-radius);
  color: #ffffff;                  /* always white text – readable at all times */
  padding: 7px 10px;
  font-size: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
  box-sizing: border-box;
}

/* Placeholder – softer grey so the real typed text stands out */
.tcs-field input::placeholder,
.tcs-field textarea::placeholder {
  color: #777;
}

/* Hover – slightly lighter background so user knows it's interactive */
.tcs-field input:hover,
.tcs-field select:hover,
.tcs-field textarea:hover {
  background: #323232;
  border-color: #888;
}

/* Focus – yellow glow, white text, brighter background */
.tcs-field input:focus,
.tcs-field select:focus,
.tcs-field textarea:focus {
  background: #333;
  border-color: var(--tcs-yellow);
  box-shadow: 0 0 0 3px rgba(245,197,24,.22);
  color: #ffffff;
}

/* Select custom arrow */
.tcs-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23f5c518'%3E%3Cpath d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
/* Option items inside select – dark bg, white text */
.tcs-field select option {
  background: #2a2a2a;
  color: #ffffff;
}

.tcs-field textarea { resize: vertical; min-height: 50px; }

/* ── Validation error state ─────────────────────────────────────────────── */
.tcs-field input.tcs-invalid,
.tcs-field select.tcs-invalid,
.tcs-field textarea.tcs-invalid {
  border-color: var(--tcs-error) !important;
  box-shadow: 0 0 0 3px rgba(231,76,60,.18) !important;
}
.tcs-field-error {
  font-size: 11px;
  color: var(--tcs-error);
  margin-top: 3px;
  display: none;
}
.tcs-field-error.tcs-visible { display: block; }

/* ── Submit button ──────────────────────────────────────────────────────── */
.tcs-submit-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  background: var(--tcs-yellow);
  color: #000;
  font-size: 13px;
  font-weight: 800;
  border: none;
  border-radius: var(--tcs-radius);
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.tcs-submit-btn:hover:not(:disabled) {
  background: var(--tcs-yellow2);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245,197,24,.40);
}
.tcs-submit-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Checkbox row ──────────────────────────────────────────────────────── */
.tcs-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.tcs-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--tcs-yellow);
  cursor: pointer;
  flex-shrink: 0;
}
.tcs-check-row label {
  font-size: 12px;
  color: var(--tcs-muted);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Notices ─────────────────────────────────────────────────────────────── */
.tcs-notice {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--tcs-radius);
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.tcs-notice.tcs-success { background: rgba(39,174,96,.15); border: 1px solid #27ae60; color: #2ecc71; }
.tcs-notice.tcs-error   { background: rgba(192,57,43,.15);  border: 1px solid #c0392b; color: #e74c3c; }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.tcs-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: tcsSpin .7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

/* ── Section dividers ───────────────────────────────────────────────────── */
.tcs-form-section-title {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--tcs-yellow);
  padding-bottom: 6px;
  border-bottom: 1px solid #333;
  margin-top: 4px;
}

/* ── Flatpickr calendar – white background, black text ──────────────────── */
.flatpickr-calendar { background: #ffffff !important; border: 1px solid #ddd !important; color: #000000 !important; box-shadow: 0 4px 20px rgba(0,0,0,.15) !important; border-radius: 6px !important; }
.flatpickr-day { color: #000000 !important; border-radius: 4px !important; }
.flatpickr-day.selected,
.flatpickr-day.selected:hover { background: var(--tcs-yellow) !important; border-color: var(--tcs-yellow) !important; color: #000 !important; }
.flatpickr-day:hover { background: #f5f5f5 !important; color: #000 !important; }
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay { color: #bbb !important; }
.flatpickr-months,
.flatpickr-weekdays { background: #ffffff !important; }
.flatpickr-current-month,
.flatpickr-weekday,
.flatpickr-months .flatpickr-month { color: #000000 !important; }
span.flatpickr-weekday { color: #555 !important; font-weight: 700; }
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg { fill: #000 !important; }
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg { fill: var(--tcs-yellow) !important; }
.numInputWrapper span.arrowUp:after  { border-bottom-color: #000 !important; }
.numInputWrapper span.arrowDown:after { border-top-color: #000 !important; }
.flatpickr-current-month input.cur-year { color: #000 !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months { color: #000 !important; background: #fff !important; }

/* ── Custom time-grid popup ─────────────────────────────────────────────── */
.tcs-time-grid-popup {
  position: absolute;
  z-index: 100000;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  width: 300px;
  max-height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}
.tcs-tg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.tcs-tg-back,
.tcs-tg-fwd {
  cursor: pointer;
  font-size: 18px;
  color: #000;
  padding: 0 6px;
  transition: color .15s;
  user-select: none;
}
.tcs-tg-back:hover,
.tcs-tg-fwd:hover { color: var(--tcs-yellow); }
.tcs-tg-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow-y: auto;
  padding: 8px;
  background: #fff;
}
.tcs-tg-slot {
  background: none;
  border: none;
  color: #000;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 4px;
  cursor: pointer;
  text-align: center;
  border-radius: 4px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.tcs-tg-slot:hover {
  background: var(--tcs-yellow);
  color: #000;
}
.tcs-tg-slot.tcs-tg-selected {
  background: var(--tcs-yellow);
  color: #000;
  font-weight: 700;
}
/* Ensure the date-wrap is positioned so the popup anchors correctly */
.tcs-date-wrap {
  position: relative;
}

/* ── Keyframes ────────────────────────────────────────────────────────────── */
@keyframes tcsFadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes tcsSlideUp { from { transform: translateY(30px); opacity:0 } to { transform: translateY(0); opacity:1 } }
@keyframes tcsSpin    { to { transform: rotate(360deg) } }

/* ── Tab radio icons ─────────────────────────────────────────────────────── */
.tcs-tab-radio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}
.tcs-tab-btn.tcs-active .tcs-tab-radio {
  background: #000;
  border-color: #000;
  color: var(--tcs-yellow);
}

/* ── Via / helper buttons ────────────────────────────────────────────────── */
.tcs-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tcs-input-row input { flex: 1; }
.tcs-via-btn {
  background: var(--tcs-yellow);
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: var(--tcs-radius);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.tcs-via-btn:hover { background: var(--tcs-yellow2); }

/* ── Date-picker icon button ─────────────────────────────────────────────── */
.tcs-date-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tcs-date-wrap input { flex: 1; }
.tcs-date-icon-btn {
  background: var(--tcs-yellow);
  border: none;
  color: #000;
  padding: 11px 13px;
  border-radius: var(--tcs-radius);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 15px;
  transition: background .2s;
}
.tcs-date-icon-btn:hover { background: var(--tcs-yellow2); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .tcs-form-grid { grid-template-columns: 1fr; }
  .tcs-tab-panel { padding: 18px 14px; }
  .tcs-modal-header { padding: 16px 14px; }
  .tcs-modal-logo h2 { font-size: 17px; }
  .tcs-tab-btn { font-size: 12px; padding: 12px 10px; }
}

/* ==========================================================================
   intl-tel-input dark theme overrides
   Developer: Tayyab Shahzad | https://web.facebook.com/GulamTayyabShahzad/
   ========================================================================== */

/* Wrapper that intl-tel-input injects */
.tcs-phone-wrap .iti {
  width: 100%;
  display: block;
}

/* The flag/dial-code button */
.tcs-phone-wrap .iti__flag-container,
.tcs-phone-wrap .iti__selected-flag {
  background: #333 !important;
  border-right: 1px solid #555 !important;
  border-radius: var(--tcs-radius) 0 0 var(--tcs-radius) !important;
}
.tcs-phone-wrap .iti__selected-flag:hover,
.tcs-phone-wrap .iti__selected-flag:focus {
  background: #3e3e3e !important;
}

/* Dial code text shown next to flag */
.tcs-phone-wrap .iti__selected-dial-code {
  color: var(--tcs-yellow) !important;
  font-weight: 700;
  font-size: 13px;
}

/* The dropdown list */
.tcs-phone-wrap .iti__country-list {
  background: #222 !important;
  border: 1px solid #444 !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.7) !important;
  max-height: 200px;
}
.tcs-phone-wrap .iti__country-list .iti__country {
  color: #fff !important;
  padding: 8px 12px !important;
}
.tcs-phone-wrap .iti__country-list .iti__country:hover,
.tcs-phone-wrap .iti__country-list .iti__country.iti__highlight {
  background: #333 !important;
}
.tcs-phone-wrap .iti__country-list .iti__dial-code {
  color: var(--tcs-yellow) !important;
  font-weight: 600;
}
.tcs-phone-wrap .iti__country-list .iti__divider {
  border-color: #444 !important;
}

/* Search box inside dropdown */
.tcs-phone-wrap .iti__search-input {
  background: #2a2a2a !important;
  border: 1px solid #555 !important;
  color: #fff !important;
  padding: 7px 10px !important;
  width: 100%;
  box-sizing: border-box;
}
.tcs-phone-wrap .iti__search-input::placeholder { color: #777 !important; }

/* Arrow chevron */
.tcs-phone-wrap .iti__arrow {
  border-top-color: var(--tcs-yellow) !important;
}
.tcs-phone-wrap .iti__arrow--up {
  border-bottom-color: var(--tcs-yellow) !important;
  border-top-color: transparent !important;
}

/* ── Developer credit footer ─────────────────────────────────────────────── */
.tcs-dev-credit {
  text-align: center;
  padding: 10px 24px 14px;
  font-size: 11px;
  color: #ffffff;
  background: #111;
  border-top: 1px solid #2a2a2a;
}
.tcs-dev-credit a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.tcs-dev-credit a:hover {
  color: var(--tcs-yellow);
  text-decoration: none;
}

/* ── Nominatim Address Autocomplete Dropdown ─────────────────────────────── */
.tcs-nominatim-dropdown {
    position       : absolute;
    z-index        : 99999;
    background     : #ffffff;
    border         : 1px solid #d1d5db;
    border-radius  : 8px;
    box-shadow     : 0 6px 24px rgba(0,0,0,0.12);
    list-style     : none;
    margin         : 0;
    padding        : 4px 0;
    max-height     : 240px;
    overflow-y     : auto;
    display        : none;
}

.tcs-nominatim-item {
    padding        : 9px 14px;
    font-size      : 13.5px;
    color          : #1f2937;
    cursor         : pointer;
    line-height    : 1.4;
    border-bottom  : 1px solid #f3f4f6;
    transition     : background 0.12s;
}

.tcs-nominatim-item:last-child {
    border-bottom  : none;
}

.tcs-nominatim-item:hover,
.tcs-nominatim-item.tcs-nominatim-active {
    background     : #eff6ff;
    color          : #1d4ed8;
}

/* ── Alberta Map Section ─────────────────────────────────────────────────── */
.tcs-map-section {
    margin-top     : 28px;
    border-top     : 1px solid #e5e7eb;
    padding-top    : 20px;
}

.tcs-map-label {
    font-size      : 14px;
    font-weight    : 600;
    color          : #374151;
    margin-bottom  : 10px;
    display        : flex;
    align-items    : center;
    gap            : 6px;
}

.tcs-map-icon {
    font-size      : 16px;
}

#tcs-alberta-map {
    width          : 100%;
    height         : 380px;
    border-radius  : 10px;
    border         : 1px solid #d1d5db;
    overflow       : hidden;
    box-shadow     : 0 2px 10px rgba(0,0,0,0.08);
}

.tcs-map-hint {
    font-size      : 12px;
    color          : #6b7280;
    margin-top     : 8px;
    text-align     : center;
}

/* ── Nominatim "no results" item ─────────────────────────────────────────── */
.tcs-nominatim-empty {
    color          : #9ca3af;
    font-style     : italic;
    cursor         : default;
}

.tcs-nominatim-empty:hover {
    background     : transparent;
    color          : #9ca3af;
}
