/* Joomla integration bridge for the supplied independent page designs. */
body.cosmo-design-page #main,
body.cosmo-design-page #main-container,
body.cosmo-design-page #container {
  width: 100%;
  max-width: none;
}

body.cosmo-design-page main#main {
  display: block;
  padding: 0;
  margin: 0;
  overflow: visible;
}

body.cosmo-interior-page #main,
body.cosmo-interior-page #main-container,
body.cosmo-interior-page #container {
  width: 100%;
  max-width: none;
}

/* Live VikRentCar availability module inside the redesigned homepage card. */
body.cosmo-page-home .cosmo-live-home-search {
  margin-top: 24px;
}

body.cosmo-page-home .home-v2-hero h1,
body.cosmo-page-home .arrival-card h2,
body.cosmo-page-fleet .fleet-v2-hero h1,
body.cosmo-page-fleet .fleet-advice h2 {
  color: #fff !important;
}

body.cosmo-page-home .cosmo-live-home-search .vrc-searchmod-heading {
  display: none !important;
}

body.cosmo-page-home .cosmo-live-home-search .vrcdivsearch,
body.cosmo-page-home .cosmo-live-home-search form {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.cosmo-page-home .cosmo-live-home-search form {
  display: grid;
  grid-template-columns: 1.15fr 1.55fr auto;
  gap: 16px;
  align-items: end;
}

body.cosmo-page-home .cosmo-live-home-search .vrc-searchmod-section-pickup,
body.cosmo-page-home .cosmo-live-home-search .vrc-searchmod-section-datetimes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.cosmo-page-home .cosmo-live-home-search .vrc-searchmod-section-datetimes .vrcsfentrycont {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 9px;
  align-items: end;
}

body.cosmo-page-home .cosmo-live-home-search label {
  display: block;
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.cosmo-page-home .cosmo-live-home-search input,
body.cosmo-page-home .cosmo-live-home-search select {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 12px;
  color: var(--ink);
  background: #f8fbfa;
  border: 1px solid #d6e0e1;
  border-radius: 10px;
  box-shadow: none;
}

body.cosmo-page-home .cosmo-live-home-search .vrc-sm-time-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 4px;
  align-items: center;
}

body.cosmo-page-home .cosmo-live-home-search .vrc-sm-time-container select {
  padding-inline: 5px;
}

body.cosmo-page-home .cosmo-live-home-search .vrc-caltrigger {
  display: none;
}

body.cosmo-page-home .cosmo-live-home-search .vrcsearch {
  min-height: 50px;
  margin: 0;
  padding: 0 22px;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  white-space: nowrap;
}

body.cosmo-page-home .cosmo-live-home-fleet > div,
body.cosmo-page-home .cosmo-live-home-fleet .vrcmodcarsgridcontainer,
body.cosmo-page-home .cosmo-live-home-fleet .vrcmodcarsgridcontainer > div,
body.cosmo-page-home .cosmo-live-home-fleet .vrcmodcarsgridcont-items,
body.cosmo-page-home .cosmo-live-home-fleet .vrc-modcars-item {
  display: contents !important;
}

body.cosmo-page-home .cosmo-live-home-fleet .vrc-modcars-item[hidden] {
  display: none !important;
}

/* VikRentCar catalogue output becomes the redesigned live fleet grid. */
body.cosmo-page-fleet .cosmo-live-fleet-grid > .page-header,
body.cosmo-page-fleet .cosmo-live-fleet-grid > .vrc-main-title,
body.cosmo-page-fleet .cosmo-live-fleet-grid > .vrcclistheadt,
body.cosmo-page-fleet .cosmo-live-fleet-grid > .vrccatdescr,
body.cosmo-page-fleet .cosmo-live-fleet-grid > script,
body.cosmo-page-fleet .cosmo-live-fleet-grid .vrc-pagination {
  display: none !important;
}

body.cosmo-page-fleet .cosmo-live-fleet-grid > .vrc-search-results-block {
  display: contents !important;
}

body.cosmo-page-fleet .fleet-v2-card[hidden] {
  display: none !important;
}

body.cosmo-page-fleet .fleet-v2-card__visual img {
  max-width: 88%;
  max-height: 185px;
}

@media (max-width: 1180px) {
  body.cosmo-page-home .cosmo-live-home-search form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body.cosmo-page-home .cosmo-live-home-search .vrc-searchmod-section-pickup,
  body.cosmo-page-home .cosmo-live-home-search .vrc-searchmod-section-datetimes {
    grid-template-columns: 1fr;
  }

  body.cosmo-page-home .cosmo-live-home-search .vrc-searchmod-section-datetimes .vrcsfentrycont {
    grid-template-columns: minmax(0, 1fr) 112px;
  }
}

@media (max-width: 390px) {
  body.cosmo-page-home .cosmo-live-home-search .vrc-searchmod-section-datetimes .vrcsfentrycont {
    grid-template-columns: 1fr;
  }
}

body.cosmo-interior-page #main {
  display: block;
  padding: 0;
  margin: 0;
  overflow: visible;
}

body.cosmo-interior-page .cosmo-site-header {
  position: relative;
  z-index: 50;
}

body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form .com-contact > h1,
body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form .page-header,
body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form .com-contact__container > h3,
body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form .com-contact > h3,
body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form .com-contact__info,
body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form .com-contact__miscinfo,
body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form .field-spacer {
  display: none;
}

body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form .com-contact,
body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form .com-contact__container,
body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form .com-contact__form,
body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form form {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form .control-group {
  margin: 0 0 18px;
}

body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form .control-label {
  margin-bottom: 7px;
  float: none;
  width: auto;
  text-align: left;
}

body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form .controls {
  margin-left: 0;
}

body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form label {
  display: block;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
}

body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form input[type="text"],
body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form input[type="email"],
body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ccd7dc;
  border-radius: 10px;
  box-shadow: none;
  box-sizing: border-box;
}

body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form input:focus,
body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form textarea:focus {
  outline: 3px solid rgba(8, 151, 165, .18);
  border-color: var(--teal);
}

body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

body.cosmo-interior-page .contact-form-panel .cosmo-live-contact-form button[type="submit"]:hover {
  background: var(--orange-dark);
}

@media (max-width: 760px) {
  body.cosmo-interior-page .contact-v2-hero,
  body.cosmo-interior-page .about-v2-hero,
  body.cosmo-interior-page .driving-hero {
    padding-top: 54px;
  }
}
