/**
 * 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: 4px;
  padding: 0 10px;
  border: none;
  border-radius: 7px;
  background: #0c2c4c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.afm-geo-btn:hover {
  background: #14406e;
}

.afm-geo-btn.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.afm-field--location:not(.is-now) .afm-geo-btn {
  display: none;
}

.afm-field--schedule[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%;
}

.ass-hero-with-form .afm-form-wrap.afm-layout-overlay {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  max-width: 360px;
  width: min(360px, calc(100% - 48px));
}

@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, #0c2c4c 0%, #1a5384 100%);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px 9px;
  margin: 0 0 10px;
  text-align: center;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}
.afm-form-wrap .afm-highlight__line {
  display: block;
  font-size: 13px;
}
.afm-form-wrap .afm-highlight__line:first-child {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Card */
.afm-form-wrap.afm-booking {
  --afm-line: #e3e9f2;
  --afm-label: #0c2c4c;
  --afm-accent: #0c2c4c;
  --afm-navy: #0c2c4c;
  background: #fff !important;
  color: var(--afm-navy);
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 40px rgba(12,44,76, 0.24) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 0 14px !important;
  overflow: hidden;
}
.afm-form-wrap.afm-booking .afm-highlight {
  border-radius: 0;
  margin: 0;
  padding: 10px 16px 9px;
}
.afm-form-wrap.afm-booking .afm-heading {
  margin: 9px 16px 7px !important;
  font-size: 14px !important;
  letter-spacing: 0.08em !important;
  text-align: center;
  color: var(--afm-accent);
}

/* Grid of bordered cells */
.afm-form-wrap.afm-booking .afm-grid {
  gap: 0 !important;
  margin: 0 -1px 0 0 !important;
  border-top: 1px solid var(--afm-line);
}
.afm-form-wrap.afm-booking .afm-field {
  position: relative;
  gap: 2px !important;
  padding: 7px 12px 6px;
  min-width: 0;
  background: #fff;
  border-right: 1px solid var(--afm-line);
  border-bottom: 1px solid var(--afm-line);
  transition: background-color 0.15s ease;
}
.afm-form-wrap.afm-booking .afm-w-100 { flex: 0 0 100%; width: 100%; max-width: 100%; }
.afm-form-wrap.afm-booking .afm-w-50 { flex: 0 0 50%; width: 50%; max-width: 50%; }
.afm-form-wrap.afm-booking .afm-w-33 { flex: 0 0 33.3333%; width: 33.3333%; max-width: 33.3333%; }
.afm-form-wrap.afm-booking .afm-field:focus-within { background: #f4f8ff; }

/* Labels */
.afm-form-wrap.afm-booking .afm-field label {
  margin: 0;
  font-size: 10.5px !important;
  font-weight: 700 !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-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: 30px;
  min-height: 30px !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: 15px !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;
  opacity: 1;
}

/* 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: 26px !important;
  background-repeat: no-repeat !important;
  background-position: left 1px center !important;
  background-size: 18px 18px !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='%235b6b7d' stroke-width='1.6' 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='%235b6b7d' stroke-width='1.6' 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='%235b6b7d' stroke-width='1.6' 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;
}

/* Native date / time pickers: whole field opens the picker, empty value looks muted */
.afm-form-wrap.afm-booking input[type="date"],
.afm-form-wrap.afm-booking input[type="time"] {
  position: relative;
  cursor: pointer;
}
.afm-form-wrap.afm-booking input[type="date"]::-webkit-calendar-picker-indicator,
.afm-form-wrap.afm-booking input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  opacity: 0;
  cursor: pointer;
}
.afm-form-wrap.afm-booking input[type="date"]:invalid::-webkit-datetime-edit,
.afm-form-wrap.afm-booking input[type="time"]:invalid::-webkit-datetime-edit {
  color: #8a99ad;
  font-weight: 500;
}

/* Selects with chevron */
.afm-form-wrap.afm-booking .afm-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 22px !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='%23177dff' 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: 16px 16px !important;
}

/* Pickup location: Track (GPS) button always available */
.afm-form-wrap.afm-booking .afm-location-row {
  gap: 6px;
  align-items: center;
}
.afm-form-wrap.afm-booking .afm-field--location .afm-geo-btn {
  display: inline-flex !important;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}

/* 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; }

/* BOOK NOW */
.afm-form-wrap.afm-booking .afm-actions {
  padding: 12px 16px 0;
}
.afm-form-wrap.afm-booking .afm-submit {
  min-height: 50px !important;
  border: 3px solid #fff !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #16466f 0%, #0c2c4c 100%) !important;
  box-shadow: 0 6px 18px rgba(12,44,76, 0.42), 0 0 0 1px rgba(12,44,76, 0.35) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
}
.afm-form-wrap.afm-booking .afm-submit:hover { filter: brightness(1.06); }
.afm-form-wrap.afm-booking .afm-message { margin: 10px 16px 0; }

/* 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: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
  .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: 18px !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: 14px; }
  .afm-form-wrap.afm-booking .afm-highlight__line:first-child { font-size: 19px; }
}
@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; }
}
