/**
 * SEO Solution X Form Mailer — compact #0c2c4c + overlay layout.
 * https://seosolutionx.com
 */

.afm-form-wrap {
  --afm-blue: #0c2c4c;
  --afm-blue-hover: #14406e;
  --afm-text: #1a2b3c;
  --afm-muted: #5a6b7d;
  --afm-white: #ffffff;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.afm-form-wrap *,
.afm-form-wrap *::before,
.afm-form-wrap *::after {
  box-sizing: border-box;
}

.afm-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.afm-compact.afm-theme-navy,
.afm-compact.afm-theme-light,
.afm-compact.afm-theme-minimal {
  background: #fff;
  color: var(--afm-text);
  padding: 14px 14px 16px;
  border-radius: 12px;
  border: 1px solid #e3eaf3;
  box-shadow: 0 8px 28px rgba(26, 43, 60, 0.12);
}

/* Desktop overlay — light glass */
@media screen and (min-width: 901px) {
  .ass-hero-with-form .afm-form-wrap.afm-layout-overlay {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
      0 10px 36px rgba(12,44,76, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
  }

  .ass-hero-with-form .afm-form-wrap.afm-layout-overlay .afm-field input,
  .ass-hero-with-form .afm-form-wrap.afm-layout-overlay .afm-field textarea,
  .ass-hero-with-form .afm-form-wrap.afm-layout-overlay .afm-field select {
    background: rgba(255, 255, 255, 0.88);
  }
}

.afm-compact .afm-heading {
  margin: 0 0 10px;
  color: #0c2c4c;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.afm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 10px;
}

.afm-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.afm-w-100 {
  flex: 1 1 100%;
  width: 100%;
}

.afm-w-50 {
  flex: 1 1 calc(50% - 5px);
  min-width: 0;
  width: calc(50% - 5px);
}

.afm-w-33 {
  flex: 1 1 calc(33.333% - 7px);
  min-width: 0;
}

.afm-field label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--afm-muted);
}

.afm-req {
  color: #e11d48;
  margin-left: 2px;
  font-weight: 700;
}

.afm-field input,
.afm-field textarea,
.afm-field select {
  width: 100%;
  border: 1px solid #d0dbe8;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--afm-text);
  background: #fff;
  min-height: 38px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.afm-field textarea {
  min-height: 56px;
  resize: vertical;
  padding-top: 8px;
}

.afm-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%175a6b7d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.afm-field input:focus,
.afm-field textarea:focus,
.afm-field select:focus {
  outline: none;
  border-color: #0c2c4c;
  box-shadow: 0 0 0 3px rgba(12,44,76, 0.15);
}

.afm-location-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.afm-location-row .afm-location-input {
  flex: 1 1 auto;
  min-width: 0;
}

.afm-geo-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  min-height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 7px;
  background: #0c2c4c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.afm-geo-btn:hover {
  background: #0284c7;
  color: #fff;
}

.afm-geo-btn.is-busy {
  opacity: 0.85;
  background: #334155;
  cursor: wait;
}

.afm-geo-spin {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: afm-geo-spinning 0.7s linear infinite;
}

@keyframes afm-geo-spinning {
  to {
    transform: rotate(360deg);
  }
}

.afm-located-flash {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
  transition: all 0.3s ease;
}

.afm-field--schedule[hidden] {
  display: none !important;
}

.afm-now-note {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #0b5ed7;
}
.afm-now-note[hidden] {
  display: none !important;
}

.afm-field input[type="date"],
.afm-field input[type="time"] {
  min-height: 38px;
  cursor: pointer;
}

.afm-actions {
  display: flex;
}

.afm-submit {
  position: relative;
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  min-height: 42px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #0c2c4c;
  transition: background 0.15s ease, transform 0.15s ease;
}

.afm-submit:hover:not(:disabled) {
  background: #14406e;
}

.afm-submit:disabled {
  cursor: wait;
}

.afm-submit__spin {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  margin: 0 auto;
  animation: afm-spin 0.7s linear infinite;
}

.afm-submit.is-loading .afm-submit__label {
  visibility: hidden;
}

.afm-submit.is-loading .afm-submit__spin {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -9px 0 0 -9px;
}

@keyframes afm-spin {
  to {
    transform: rotate(360deg);
  }
}

.afm-message {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.afm-message.is-success {
  background: #e8f1ff;
  border: 1px solid #b7d4ff;
  color: #14406e;
}

.afm-message.is-error {
  background: #fdecea;
  border: 1px solid #e74c3c;
  color: #c0392b;
}

/* Desktop overlay on hero / slider */
.afm-layout-overlay {
  max-width: 380px;
  width: 100%;
}

.ass-hero-with-form {
  position: relative;
  width: 100%;
}

.ass-hero-with-form .ass-slider {
  width: 100%;
}

@media screen and (min-width: 901px) {
  /* Elementor widget wrapper inside hero container */
  .ass-hero-with-form .elementor-widget-annapolis_form_mailer,
  .ass-hero-with-form [data-widget_type*="annapolis_form_mailer"] {
    position: absolute !important;
    right: 32px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 40 !important;
    max-width: 600px !important;
    width: min(600px, calc(100% - 64px)) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ass-hero-with-form .elementor-widget-annapolis_form_mailer .elementor-widget-container,
  .ass-hero-with-form [data-widget_type*="annapolis_form_mailer"] .elementor-widget-container {
    width: 100% !important;
    display: block !important;
  }

  .ass-hero-with-form .elementor-widget-annapolis_form_mailer .afm-form-wrap.afm-layout-overlay,
  .ass-hero-with-form [data-widget_type*="annapolis_form_mailer"] .afm-form-wrap.afm-layout-overlay {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* Direct child fallback */
  .ass-hero-with-form > .afm-form-wrap.afm-layout-overlay {
    position: absolute !important;
    right: 32px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 40 !important;
    max-width: 360px;
    width: min(360px, calc(100% - 64px));
  }

  .ass-hero-with-form > .afm-form-wrap.afm-layout-overlay.afm-booking {
    max-width: 600px !important;
    width: min(600px, calc(100% - 64px)) !important;
  }
}

@media screen and (max-width: 900px) {
  .ass-hero-with-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .ass-hero-with-form .afm-form-wrap.afm-layout-overlay {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    z-index: 5;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 28px rgba(26, 43, 60, 0.1);
    border-left: none;
    border-right: none;
  }

  .afm-compact {
    padding: 14px 14px 18px;
  }

  .afm-compact .afm-heading {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .afm-grid {
    gap: 10px 8px;
  }

  /* Name + Phone stay 2-col but usable */
  .afm-w-50 {
    flex: 1 1 calc(50% - 4px);
    width: calc(50% - 4px);
    min-width: 0;
  }

  .afm-field label {
    font-size: 12px;
  }

  .afm-field input,
  .afm-field textarea,
  .afm-field select {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 16px; /* prevents iOS zoom */
  }

  .afm-field textarea {
    min-height: 64px;
  }

  .afm-geo-btn {
    min-width: 72px;
    padding: 0 12px;
    font-size: 13px;
    min-height: 44px;
  }

  .afm-submit {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 15px;
  }
}

@media screen and (max-width: 380px) {
  .afm-w-50 {
    flex: 1 1 100%;
    width: 100%;
  }

  .afm-geo-btn span {
    display: none;
  }

  .afm-geo-btn {
    min-width: 48px;
    padding: 0;
  }

  #top-wrapper.ahw-original .ahw-call-btn span {
    font-size: 12px;
  }
}

/* =====================================================================
   Booking layout v1.2.0 (SEO Solution X)
   Reference-style form: bordered cells, icons, Transfer Type + Return,
   Persons / Children, highlight banner, BOOK NOW pill.
   Applies only to forms that contain a date or time field
   (the renderer adds .afm-booking), so other AFM forms are unchanged.
   ===================================================================== */

/* Highlight banner (any form with "Highlight text" set) */
.afm-form-wrap .afm-highlight {
  background: linear-gradient(135deg, #081f36 0%, #0c2c4c 55%, #164670 100%);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px 11px;
  margin: 0 0 10px;
  text-align: center;
  font-weight: 800;
  line-height: 1.3;
  border-bottom: 3px solid #f2b705;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}
.afm-form-wrap .afm-highlight__line {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}
.afm-form-wrap .afm-highlight__line:first-child {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* Ensure Elementor widget wrapper and form wrap always fill their column */
.elementor-widget-annapolis_form_mailer,
.elementor-widget-annapolis_form_mailer > .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

/* Card */
.afm-form-wrap.afm-booking {
  --afm-line: #e2e8f0;
  --afm-label: #0c2c4c;
  --afm-accent: #0c2c4c;
  --afm-navy: #0c2c4c;
  --afm-gold: #f2b705;
  width: 100%;
  background: #fff !important;
  color: var(--afm-navy);
  border: 1px solid rgba(12, 44, 76, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 40px rgba(12, 44, 76, 0.2) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 0 12px !important;
  overflow: hidden;
  box-sizing: border-box !important;
}
.afm-form-wrap.afm-booking .afm-highlight {
  border-radius: 0;
  margin: 0;
  padding: 10px 16px 8px;
}
.afm-form-wrap.afm-booking .afm-highlight__line:first-child {
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.afm-form-wrap.afm-booking .afm-highlight__line {
  font-size: 12px !important;
  line-height: 1.25 !important;
}
.afm-form-wrap.afm-booking .afm-heading {
  margin: 8px 16px 6px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-align: center;
  color: var(--afm-accent);
}

/* Grid of bordered cells */
.afm-form-wrap.afm-booking .afm-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  margin: 0 !important;
  border-top: 1px solid var(--afm-line);
}
.afm-form-wrap.afm-booking .afm-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px !important;
  padding: 5px 12px 4px !important;
  min-width: 0;
  background: #fff;
  border-right: 1px solid var(--afm-line);
  border-bottom: 1px solid var(--afm-line);
  box-sizing: border-box !important;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.afm-form-wrap.afm-booking .afm-w-100 { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
.afm-form-wrap.afm-booking .afm-w-50 { flex: 0 0 50% !important; width: 50% !important; max-width: 50% !important; box-sizing: border-box !important; }
.afm-form-wrap.afm-booking .afm-w-33 { flex: 0 0 33.3333% !important; width: 33.3333% !important; max-width: 33.3333% !important; box-sizing: border-box !important; }
.afm-form-wrap.afm-booking .afm-field:hover { background: #fafcff; }
.afm-form-wrap.afm-booking .afm-field:focus-within,
.afm-form-wrap.afm-booking .afm-field.is-picker-open {
  background: #f2f7ff;
  box-shadow: inset 0 -2px 0 #f2b705;
}

/* Labels */
.afm-form-wrap.afm-booking .afm-field label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 3px;
  margin: 0 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--afm-label) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.afm-form-wrap .afm-lbl-txt {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.afm-form-wrap .afm-tz-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(242, 183, 5, 0.22);
  border: 1px solid rgba(242, 183, 5, 0.6);
  color: #0c2c4c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.afm-form-wrap.afm-booking .afm-field:focus-within label { color: var(--afm-accent) !important; }

/* Inputs: borderless inside the cells */
.afm-form-wrap.afm-booking .afm-field input,
.afm-form-wrap.afm-booking .afm-field select,
.afm-form-wrap.afm-booking .afm-field textarea {
  width: 100%;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0;
  padding: 2px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none;
  font-size: 13.5px !important;
  font-weight: 600;
  color: var(--afm-navy) !important;
}
.afm-form-wrap.afm-booking .afm-field input::placeholder,
.afm-form-wrap.afm-booking .afm-field textarea::placeholder {
  color: #8a99ad;
  font-weight: 500;
  font-size: 12.5px;
  opacity: 1;
}

/* Clean autofill background */
.afm-form-wrap.afm-booking .afm-field input:-webkit-autofill,
.afm-form-wrap.afm-booking .afm-field input:-webkit-autofill:hover,
.afm-form-wrap.afm-booking .afm-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0c2c4c !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Icons: calendar, clock, location pin */
.afm-form-wrap.afm-booking .afm-type-date input,
.afm-form-wrap.afm-booking .afm-type-time input,
.afm-form-wrap.afm-booking .afm-field--location .afm-location-input,
.afm-form-wrap.afm-booking [data-afm-name="dropoff_address"] input {
  padding-left: 22px !important;
  background-repeat: no-repeat !important;
  background-position: left 0 center !important;
  background-size: 15px 15px !important;
}
.afm-form-wrap.afm-booking .afm-type-date input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2c4c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 9.5h17M8 3v4M16 3v4'/%3E%3C/svg%3E") !important;
}
.afm-form-wrap.afm-booking .afm-type-time input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2c4c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") !important;
}
.afm-form-wrap.afm-booking .afm-field--location .afm-location-input,
.afm-form-wrap.afm-booking [data-afm-name="dropoff_address"] input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2c4c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6.2-6.5-11a6.5 6.5 0 0 1 13 0c0 4.8-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E") !important;
}

/* Selects with chevron */
.afm-form-wrap.afm-booking .afm-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 20px !important;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2c4c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0 center !important;
  background-size: 15px 15px !important;
}

/* Pickup location: Track (GPS) button */
.afm-form-wrap.afm-booking .afm-location-row {
  gap: 5px;
  align-items: center;
}
.afm-form-wrap.afm-booking .afm-field--location .afm-geo-btn {
  display: inline-flex !important;
  min-height: 24px !important;
  height: 24px !important;
  min-width: 0 !important;
  padding: 0 8px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: #0c2c4c !important;
  color: #f2b705 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 6px rgba(12, 44, 76, 0.18) !important;
  transition: background 0.15s ease, transform 0.15s ease;
}
.afm-form-wrap.afm-booking .afm-field--location .afm-geo-btn:hover {
  background: #14406e !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Return date / time only when Transfer Type = Return */
.afm-form-wrap .afm-field--return { display: none !important; }
.afm-form-wrap .afm-form.is-return .afm-field--return {
  display: flex !important;
  flex: 0 0 50% !important;
  width: 50% !important;
  max-width: 50% !important;
  box-sizing: border-box !important;
}

/* BOOK NOW */
.afm-form-wrap.afm-booking .afm-actions {
  padding: 10px 16px 0 !important;
}
.afm-form-wrap.afm-booking .afm-submit {
  min-height: 46px !important;
  border: 2px solid #f2b705 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #16466f 0%, #0c2c4c 100%) !important;
  box-shadow: 0 6px 18px rgba(12, 44, 76, 0.3) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: #ffffff !important;
  transition: all 0.2s ease !important;
}
.afm-form-wrap.afm-booking .afm-submit:hover {
  background: linear-gradient(180deg, #f2b705 0%, #d9a300 100%) !important;
  color: #0c2c4c !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(242, 183, 5, 0.4) !important;
}
.afm-form-wrap.afm-booking .afm-message {
  margin: 10px 16px 0 !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  text-align: center;
}
.afm-form-wrap.afm-booking .afm-message.is-success {
  background: #f0fdf4 !important;
  border: 1px solid #86efac !important;
  color: #166534 !important;
}
.afm-form-wrap.afm-booking .afm-message.is-error {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

/* Desktop: wider overlay on the hero (height stays inside the slider) */
@media screen and (min-width: 901px) {
  .ass-hero-with-form .afm-form-wrap.afm-layout-overlay.afm-booking {
    max-width: 600px;
    width: min(600px, calc(100% - 48px));
  }
}

/* Tablet + mobile: full width under the slider, easy to tap */
@media screen and (max-width: 900px) {
  .afm-form-wrap.afm-booking { border-radius: 14px !important; }
  .afm-form-wrap.afm-booking .afm-w-33 { flex: 0 0 50%; width: 50%; max-width: 50%; }
  .afm-form-wrap.afm-booking [data-afm-name="your_email"],
  .afm-form-wrap.afm-booking [data-afm-name="transfer_type"],
  .afm-form-wrap.afm-booking .afm-field--location,
  .afm-form-wrap.afm-booking [data-afm-name="dropoff_address"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
  .afm-form-wrap.afm-booking .afm-field { padding: 8px 12px 7px; }
  .afm-form-wrap.afm-booking .afm-field input,
  .afm-form-wrap.afm-booking .afm-field select,
  .afm-form-wrap.afm-booking .afm-field textarea {
    height: 36px;
    min-height: 36px !important;
    font-size: 16px !important;
  }
  .afm-form-wrap.afm-booking .afm-field--location .afm-geo-btn {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 12px !important;
    font-size: 12.5px !important;
  }
  .afm-form-wrap.afm-booking .afm-highlight__line { font-size: 13px; }
  .afm-form-wrap.afm-booking .afm-highlight__line:first-child { font-size: 16px; }
  .afm-form-wrap.afm-booking .afm-submit { min-height: 52px !important; font-size: 17px !important; }
}

/* Booking v1.2.0 tweaks: bigger highlight on desktop; on mobile show Return date/time right after Transfer Type */
@media screen and (min-width: 901px) {
  .afm-form-wrap.afm-booking .afm-highlight__line { font-size: 13.5px; }
  .afm-form-wrap.afm-booking .afm-highlight__line:first-child { font-size: 18.5px; }
}
@media screen and (max-width: 900px) {
  .afm-form-wrap.afm-booking [data-afm-name="persons"],
  .afm-form-wrap.afm-booking [data-afm-name="children"],
  .afm-form-wrap.afm-booking [data-afm-name="trip_details"] { order: 1; }
}

/* Narrow sidebar forms (e.g. Blog right sidebar) */
.ssx-blog-right-sidebar .afm-form-wrap.afm-booking .afm-w-33 {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
}
.ssx-blog-right-sidebar .afm-form-wrap.afm-booking [data-afm-name="your_email"],
.ssx-blog-right-sidebar .afm-form-wrap.afm-booking [data-afm-name="transfer_type"],
.ssx-blog-right-sidebar .afm-form-wrap.afm-booking .afm-field--location,
.ssx-blog-right-sidebar .afm-form-wrap.afm-booking [data-afm-name="dropoff_address"] {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}
.ssx-blog-right-sidebar .afm-form-wrap.afm-booking [data-afm-name="persons"],
.ssx-blog-right-sidebar .afm-form-wrap.afm-booking [data-afm-name="children"],
.ssx-blog-right-sidebar .afm-form-wrap.afm-booking [data-afm-name="trip_details"] {
  order: 1;
}

/* =====================================================================
   Smooth dropdowns & Custom Date / Time Pickers v1.4.0 (SEO Solution X)
   Native select, date, and time inputs stay in the DOM for submission,
   while custom theme-branded buttons & floating popovers handle UI.
   ===================================================================== */
.afm-form-wrap .afm-sel,
.afm-form-wrap .afm-picker { position: relative; width: 100%; }

.afm-form-wrap select.afm-sel-native,
.afm-form-wrap input.afm-picker-native {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.afm-form-wrap .afm-sel__btn,
.afm-form-wrap .afm-picker__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 2px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: var(--afm-navy, #0c2c4c) !important;
  text-align: left !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.afm-form-wrap .afm-sel__btn:focus,
.afm-form-wrap .afm-picker__btn:focus { outline: none !important; }

.afm-form-wrap .afm-picker__main {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
}
.afm-form-wrap .afm-picker__ico {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #0c2c4c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.afm-form-wrap .afm-picker__ico svg {
  width: 16px;
  height: 16px;
  display: block;
}

.afm-form-wrap .afm-sel__label,
.afm-form-wrap .afm-picker__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.afm-form-wrap .afm-sel__label.is-placeholder,
.afm-form-wrap .afm-picker__label.is-placeholder {
  color: #8a99ad !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
}

.afm-form-wrap .afm-sel__chev,
.afm-form-wrap .afm-picker__chev {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2c4c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  transition: transform .18s cubic-bezier(.4,0,.2,1);
}
.afm-form-wrap .afm-sel.is-open .afm-sel__chev,
.afm-form-wrap .afm-picker.is-open .afm-picker__chev {
  transform: rotate(180deg);
}

/* Floating Select, Date & Time Panels */
.afm-sel-panel,
.afm-dp-panel,
.afm-tp-panel {
  position: fixed;
  z-index: 2147483000;
  box-sizing: border-box;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(12, 44, 76, 0.28), 0 0 0 1px rgba(12, 44, 76, 0.12);
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  transform-origin: top center;
  transition: opacity .17s ease, transform .17s cubic-bezier(.2,.9,.3,1.1);
}
.afm-sel-panel *,
.afm-dp-panel *,
.afm-tp-panel * {
  box-sizing: border-box;
}
.afm-sel-panel.is-up,
.afm-dp-panel.is-up,
.afm-tp-panel.is-up {
  transform: translateY(8px) scale(.97);
  transform-origin: bottom center;
}
.afm-sel-panel.is-open,
.afm-dp-panel.is-open,
.afm-tp-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.afm-sel-panel {
  min-width: 150px;
  max-height: 268px;
  padding: 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.afm-sel-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; line-height: 1.25; color: #0c2c4c;
  cursor: pointer; user-select: none;
  transition: background-color .12s ease, color .12s ease;
}
.afm-sel-opt.is-active { background: #eaf1f9; }
.afm-sel-opt[aria-selected="true"] { background: #0c2c4c; color: #f2b705; }
.afm-sel-opt.is-disabled { opacity: .45; cursor: default; }
.afm-sel-panel::-webkit-scrollbar { width: 8px; }
.afm-sel-panel::-webkit-scrollbar-track { background: transparent; }
.afm-sel-panel::-webkit-scrollbar-thumb { background: rgba(12,44,76,.22); border-radius: 8px; }

/* =====================================================================
   Custom Date Picker Panel (.afm-dp-panel) & Time Picker Panel (.afm-tp-panel)
   Strictly reset Astra theme button padding/min-width!
   ===================================================================== */
.afm-dp-panel {
  width: 312px !important;
  max-width: calc(100vw - 16px) !important;
  overflow: hidden !important;
}
.afm-tp-panel {
  width: 220px !important;
  max-width: calc(100vw - 16px) !important;
  overflow: hidden !important;
}

.afm-dp-panel button,
.afm-tp-panel button {
  min-width: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.2 !important;
}

/* Shared Popover Banner Header */
.afm-pk-head {
  background: linear-gradient(135deg, #081f36 0%, #0c2c4c 65%, #164670 100%);
  color: #ffffff;
  padding: 10px 14px 9px;
  border-bottom: 2px solid #f2b705;
}
.afm-pk-tz-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.afm-pk-tz-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f2b705;
  font-weight: 800;
  font-size: 11.5px;
}
.afm-pk-tz-now {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
}

/* Quick Select Chips Bar */
.afm-pk-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 6px;
  padding: 8px 12px;
  background: #f4f7fb;
  border-bottom: 1px solid #e3e9f2;
}
.afm-dp-panel button.afm-pk-chip,
.afm-tp-panel button.afm-pk-chip {
  appearance: none !important;
  border: 1px solid #cfdbe8 !important;
  background: #ffffff !important;
  color: #0c2c4c !important;
  font-family: inherit !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 5px 6px !important;
  height: 28px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  transition: all 0.14s ease !important;
}
.afm-dp-panel button.afm-pk-chip:hover,
.afm-tp-panel button.afm-pk-chip:hover {
  border-color: #0c2c4c !important;
  background: #eaf1f9 !important;
}
.afm-dp-panel button.afm-pk-chip.is-active,
.afm-tp-panel button.afm-pk-chip.is-active {
  background: #0c2c4c !important;
  border-color: #0c2c4c !important;
  color: #f2b705 !important;
}

/* Date Picker Month Nav */
.afm-dp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 4px;
}
.afm-dp-title {
  font-size: 14px;
  font-weight: 800;
  color: #0c2c4c;
}
.afm-dp-panel button.afm-dp-nav-btn {
  width: 30px !important;
  height: 28px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  border: 1px solid #dbe4f0 !important;
  background: #ffffff !important;
  color: #0c2c4c !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.14s ease !important;
}
.afm-dp-panel button.afm-dp-nav-btn:hover:not(:disabled) {
  background: #0c2c4c !important;
  border-color: #0c2c4c !important;
  color: #f2b705 !important;
}
.afm-dp-panel button.afm-dp-nav-btn:disabled {
  opacity: 0.35 !important;
  cursor: default !important;
}

/* Date Picker Calendar Grid (7 exact columns, zero overflow) */
.afm-dp-dow {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  padding: 4px 10px 2px !important;
  text-align: center !important;
}
.afm-dp-dow span {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  padding: 3px 0 !important;
}
.afm-dp-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 3px !important;
  padding: 4px 10px 12px !important;
}
.afm-dp-panel button.afm-dp-day,
.afm-dp-panel span.afm-dp-day {
  appearance: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #0c2c4c !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.12s ease !important;
}
.afm-dp-panel button.afm-dp-day:hover:not(:disabled) {
  background: #eaf1f9 !important;
  border-color: #cbd5e1 !important;
}
.afm-dp-panel button.afm-dp-day.is-today {
  border-color: #f2b705 !important;
  background: rgba(242, 183, 5, 0.14) !important;
}
.afm-dp-panel button.afm-dp-day.is-selected {
  background: #0c2c4c !important;
  border-color: #0c2c4c !important;
  color: #f2b705 !important;
  box-shadow: 0 3px 8px rgba(12, 44, 76, 0.25) !important;
}
.afm-dp-panel button.afm-dp-day:disabled,
.afm-dp-panel button.afm-dp-day.is-disabled {
  color: #cbd5e1 !important;
  background: transparent !important;
  cursor: default !important;
  pointer-events: none !important;
}
.afm-dp-panel span.afm-dp-day.is-empty {
  pointer-events: none !important;
}

/* =====================================================================
   Compact Roller Time Picker (.afm-tp-panel--roller)
   Ultra-short, mobile-clean, 3-column scrollable drum roller
   ===================================================================== */
.afm-tp-panel,
.afm-tp-panel--roller {
  width: 220px !important;
  max-width: calc(100vw - 20px) !important;
  background: #ffffff !important;
  border: 1px solid #cfdbe8 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(12, 44, 76, 0.25), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  overflow: hidden !important;
  z-index: 99999 !important;
}

.afm-pk-head--roller {
  background: linear-gradient(135deg, #081f36 0%, #0c2c4c 100%) !important;
  padding: 8px 10px !important;
  border-bottom: 2px solid #f2b705 !important;
}
.afm-pk-head--roller .afm-pk-tz-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
}
.afm-pk-head--roller .afm-pk-tz-badge {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #f2b705 !important;
  white-space: nowrap !important;
}
.afm-pk-head--roller button.afm-pk-now-btn {
  appearance: none !important;
  border: 0 !important;
  background: #f2b705 !important;
  color: #0c2c4c !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  line-height: 1.2 !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
}
.afm-pk-head--roller button.afm-pk-now-btn:hover {
  background: #ffd644 !important;
  transform: translateY(-1px) !important;
}

/* Roller Drum Area */
.afm-roller-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 102px !important;
  background: #f8fbff !important;
  user-select: none !important;
  overflow: hidden !important;
}

/* Middle Selection Line/Bar */
.afm-roller-highlight {
  position: absolute !important;
  top: 34px !important;
  left: 6px !important;
  right: 6px !important;
  height: 34px !important;
  background: rgba(12, 44, 76, 0.06) !important;
  border-top: 1.5px solid #0c2c4c !important;
  border-bottom: 1.5px solid #0c2c4c !important;
  border-radius: 6px !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Individual Roller Column */
.afm-roller-col {
  flex: 1 1 0 !important;
  height: 102px !important;
  overflow-y: scroll !important;
  scroll-snap-type: y mandatory !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  position: relative !important;
  z-index: 2 !important;
}
.afm-roller-col::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.afm-roller-spacer {
  height: 34px !important;
  flex-shrink: 0 !important;
}

.afm-roller-item {
  height: 34px !important;
  line-height: 34px !important;
  text-align: center !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  cursor: pointer !important;
  scroll-snap-align: center !important;
  transition: all 0.15s ease !important;
  opacity: 0.38 !important;
}

.afm-roller-item.is-selected {
  color: #0c2c4c !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

.afm-roller-sep {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0c2c4c !important;
  line-height: 1 !important;
  padding: 0 2px !important;
  z-index: 3 !important;
  user-select: none !important;
}

/* Footer with Live Time Preview & Done button */
.afm-roller-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 10px !important;
  background: #ffffff !important;
  border-top: 1px solid #e3e9f2 !important;
  gap: 8px !important;
}

.afm-roller-preview {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #0c2c4c !important;
  letter-spacing: 0.02em !important;
}

.afm-roller-footer button.afm-tp-done {
  appearance: none !important;
  border: 0 !important;
  background: linear-gradient(135deg, #f2b705 0%, #e0a800 100%) !important;
  color: #0c2c4c !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 5px 14px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(242, 183, 5, 0.35) !important;
  line-height: 1.2 !important;
  transition: all 0.14s ease !important;
}
.afm-roller-footer button.afm-tp-done:hover {
  background: #0c2c4c !important;
  color: #f2b705 !important;
}

@media screen and (max-width: 900px) {
  .afm-form-wrap .afm-sel__btn,
  .afm-form-wrap .afm-picker__btn { height: 36px !important; min-height: 36px !important; font-size: 16px !important; }
  .afm-sel-panel { max-height: 300px; border-radius: 16px; }
  .afm-sel-opt { padding: 12px 14px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .afm-sel-panel, .afm-dp-panel, .afm-tp-panel, .afm-form-wrap .afm-sel__chev, .afm-form-wrap .afm-picker__chev { transition: none; }
}

/* =====================================================================
   Address Autocomplete Dropdown (SEO Solution X)
   ===================================================================== */
.afm-ac-wrap {
  position: relative !important;
  width: 100% !important;
}
.afm-ac-dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999999 !important;
  margin: 4px 0 0 0 !important;
  padding: 4px 0 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 28px -4px rgba(12, 44, 76, 0.22), 0 6px 12px -3px rgba(12, 44, 76, 0.12) !important;
  max-height: 250px !important;
  overflow-y: auto !important;
  list-style: none !important;
}
.afm-ac-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  font-size: 13px !important;
  color: #1e293b !important;
  transition: background 0.12s ease !important;
  border-bottom: 1px solid #f1f5f9 !important;
  user-select: none !important;
}
.afm-ac-item:last-child {
  border-bottom: none !important;
}
.afm-ac-item:hover,
.afm-ac-item.is-selected {
  background: #f1f7fe !important;
  color: #0c2c4c !important;
}
.afm-ac-item-icon {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  color: #f2b705 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.afm-ac-item-icon svg {
  width: 15px !important;
  height: 15px !important;
}
.afm-ac-item-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-align: left !important;
}
.afm-ac-item-title {
  font-weight: 700 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}
.afm-ac-item:hover .afm-ac-item-title,
.afm-ac-item.is-selected .afm-ac-item-title {
  color: #0c2c4c !important;
}
.afm-ac-item-sub {
  font-size: 11px !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
  margin-top: 2px !important;
}
.afm-ac-loading {
  padding: 8px 12px !important;
  font-size: 12px !important;
  color: #64748b !important;
  font-style: italic !important;
  text-align: center !important;
}

