/*
 * TECS quote hero alignment bridge — v0.5.1.
 * Restores ONLY the outer layout rules removed when inline quote prototypes
 * were replaced with [tecs_quote_search]. Quote markup/logic stays in plugin.
 * The original per-page hero artwork remains in Elementor.
 */
:is(
  #book-your-ride,
  #chauffeur-service-quote-hero,
  #airport-transfer-quote-hero,
  #tecs-city-winter-hero,
  #tecs-tours-winter-hero,
  #tecs-event-winter-hero,
  #tecs-hotel-winter-hero,
  #tecs-vehicle-winter-hero,
  #tecs-guides-winter-hero,
  [id^="tecs-airport-batch-"],
  [id^="tecs-city-route-batch-"],
  [id^="tecs-event-route-batch-"]
):has(.tecs-quote-search-root) {
  padding-top:48px;
  padding-bottom:60px;
}
:is(
  #book-your-ride,
  #chauffeur-service-quote-hero,
  #airport-transfer-quote-hero,
  #tecs-city-winter-hero,
  #tecs-tours-winter-hero,
  #tecs-event-winter-hero,
  #tecs-hotel-winter-hero,
  #tecs-vehicle-winter-hero,
  #tecs-guides-winter-hero,
  [id^="tecs-airport-batch-"],
  [id^="tecs-city-route-batch-"],
  [id^="tecs-event-route-batch-"]
):has(.tecs-quote-search-root) .elementor-element-4b26c5a {
  width:100%!important;
  max-width:950px!important;
  align-items:center!important;
  text-align:center!important;
  margin:0 auto 14px!important;
}
:is(
  #book-your-ride,
  #chauffeur-service-quote-hero,
  #airport-transfer-quote-hero,
  #tecs-city-winter-hero,
  #tecs-tours-winter-hero,
  #tecs-event-winter-hero,
  #tecs-hotel-winter-hero,
  #tecs-vehicle-winter-hero,
  #tecs-guides-winter-hero,
  [id^="tecs-airport-batch-"],
  [id^="tecs-city-route-batch-"],
  [id^="tecs-event-route-batch-"]
):has(.tecs-quote-search-root) .elementor-element-4b26c5a
:is(.elementor-heading-title, .elementor-widget-text-editor, .elementor-button-wrapper) {
  text-align:center!important;
}
:is(
  #book-your-ride,
  #chauffeur-service-quote-hero,
  #airport-transfer-quote-hero,
  #tecs-city-winter-hero,
  #tecs-tours-winter-hero,
  #tecs-event-winter-hero,
  #tecs-hotel-winter-hero,
  #tecs-vehicle-winter-hero,
  #tecs-guides-winter-hero,
  [id^="tecs-airport-batch-"],
  [id^="tecs-city-route-batch-"],
  [id^="tecs-event-route-batch-"]
):has(.tecs-quote-search-root) .elementor-widget-shortcode:has(.tecs-quote-search-root) {
  width:100%!important;
  max-width:1120px!important;
  min-width:0!important;
  margin:0 auto!important;
}
@media(max-width:700px){
  :is(
    #book-your-ride,
    #chauffeur-service-quote-hero,
    #airport-transfer-quote-hero,
    #tecs-city-winter-hero,
    #tecs-tours-winter-hero,
    #tecs-event-winter-hero,
    #tecs-hotel-winter-hero,
    #tecs-vehicle-winter-hero,
    #tecs-guides-winter-hero,
    [id^="tecs-airport-batch-"],
    [id^="tecs-city-route-batch-"],
    [id^="tecs-event-route-batch-"]
  ):has(.tecs-quote-search-root){
    padding-top:30px;
    padding-bottom:35px;
  }
}


/* TECS live homepage hero: force stacked headline and booking form at all viewport sizes. */
#book-your-ride:has(.tecs-quote-search-root) {
  --flex-direction: column !important;
  flex-direction: column !important;
  align-items: center !important;
}
#book-your-ride:has(.tecs-quote-search-root) > .e-con-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
}
#book-your-ride:has(.tecs-quote-search-root) > .e-con,
#book-your-ride:has(.tecs-quote-search-root) > .e-con-inner > .e-con {
  width: 100% !important;
  max-width: 1120px !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
}
#book-your-ride:has(.tecs-quote-search-root) .tecs-quote-search-root {
  max-width: min(100%, 1120px) !important;
  min-width: 0 !important;
}
@media (max-width: 1024px) {
  #book-your-ride:has(.tecs-quote-search-root) .tecs-quote-search-root .vm-q-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 100% !important;
  }
  #book-your-ride:has(.tecs-quote-search-root) .tecs-quote-search-root .vm-q-submit {
    grid-column: 1 / -1;
  }
}
@media (max-width: 550px) {
  #book-your-ride:has(.tecs-quote-search-root) .tecs-quote-search-root .vm-q-fields {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
