/* Long-term rental page (/long-term/). Loaded only there as a standalone
   stylesheet (outside the compress bundles). Shares .responsive-lazy-image
   from style.global.css; the button mirrors .btn-primary from style.cars.css,
   which base_inner does not ship. */

.lt-wrapper {
  flex-direction: column;
  padding: 32px;
  box-sizing: border-box;
}

/* --- intro --- */
.lt-intro {
  max-width: 900px;
}
.lt-intro__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #000;
}
.lt-intro__text {
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
  color: #767676;
}

/* --- table --- */
.lt-table__scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lt-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  overflow: hidden;
  font-size: 16px;
}
.lt-table thead th {
  background: #f0f0f0;
  padding: 18px 20px;
  text-align: start;
  font-weight: 700;
  font-size: 15px;
  color: #252525;
  vertical-align: middle;
}
.lt-table__period {
  width: 18%;
  min-width: 150px;
  text-align: center !important;
}
.lt-table__period-name {
  display: block;
  font-size: 17px;
}
.lt-table__period-hint {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: #767676;
  margin-top: 2px;
}
.lt-table tbody td {
  padding: 16px 20px;
  border-top: 1px solid #e5e5e5;
  vertical-align: middle;
}
.lt-table tbody tr:hover td {
  background: #fafafa;
}

/* car cell */
.lt-car__inner {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lt-car__photo {
  flex: 0 0 136px;
  width: 136px;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f4;
}
.lt-car__title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}
.lt-car__meta {
  font-size: 14px;
  color: #767676;
  margin-top: 4px;
}

/* price cell */
.lt-cell {
  text-align: center;
}
.lt-price {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 16px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f4f4f4;
  color: #000;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}
.lt-price:hover,
.lt-price:focus-visible {
  border-color: #FF3720;
  background: #fff;
  outline: none;
}
.lt-price:active {
  transform: scale(0.98);
}
.lt-price__monthly {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.lt-price__value {
  display: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
/* Default before new_app.js applies the selected currency (it toggles
   .price-currency-* to flex and .price-currency-*-span to inline) */
.lt-price__value.price-currency-eur {
  display: flex;
}
.lt-price__unit {
  font-size: 12px;
  color: #767676;
}
/* Total for the whole period, one line under the monthly price */
.lt-price__total {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #767676;
  white-space: nowrap;
}
.lt-price__total [class*="price-currency-"] {
  display: none;
  font-weight: 600;
  color: #252525;
}
.lt-price__total .price-currency-eur-span {
  display: inline;
}
.lt-table__note,
.lt-empty {
  font-size: 14px;
  color: #767676;
  margin: -8px 0 0;
}
.lt-empty {
  font-size: 17px;
  color: #252525;
}

/* --- buttons --- */
.lt-btn {
  display: inline-block;
  background: #FF3720;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  height: 48px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.lt-btn:hover {
  background: #E8240D;
}
.lt-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.lt-btn_light {
  background: #f0f0f0;
  color: #252525;
}
.lt-btn_light:hover {
  background: #e5e5e5;
}
.lt-btn_white {
  background: #fff;
  color: #E8431F;
}
.lt-btn_white:hover {
  background: #fff1ee;
}
.lt-btn__arrow {
  display: inline-block;
  margin-inline-start: 8px;
  transition: transform 150ms ease;
}
.lt-btn_white:hover .lt-btn__arrow {
  transform: translateX(3px);
}

/* --- info cards row (conditions + request) --- */
.lt-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  align-items: stretch;
}
.lt-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  padding: 28px 32px;
  box-sizing: border-box;
}
.lt-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
}
.lt-card_green {
  background: #f1faf7;
  border: 1px solid #d5eee5;
  color: #000;
}
.lt-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lt-checklist__item {
  position: relative;
  padding-inline-start: 34px;
  font-size: 16px;
  line-height: 1.4;
  color: #252525;
}
.lt-checklist__item::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1a9f7a url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}
.lt-card_red {
  background: linear-gradient(160deg, #f3502f 0%, #dc3a1c 100%);
  color: #fff;
  justify-content: flex-start;
}
.lt-card_red .lt-card__title {
  color: #fff;
  margin-bottom: 10px;
}
.lt-card__text {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
}
.lt-card_red .lt-cta {
  align-self: flex-start;
  margin-top: auto;
}

/* --- SEO text under the table (main-page article styling) --- */
.lt-seo {
  width: 100%;
  max-width: 1000px;
}
.lt-seo .text__article {
  font-size: 17px;
  line-height: 1.5;
}
.lt-seo .text__article:empty {
  display: none;
}

/* --- modal --- */
.lt-modal {
  position: fixed;
  inset: 0;
  z-index: 10000100; /* same tier as the site's other popups (vienna popup 10000050) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.lt-modal[hidden] {
  display: none;
}
.lt-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.lt-modal__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.lt-modal__close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f0f0f0;
  cursor: pointer;
}
.lt-modal__close::before,
.lt-modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: #252525;
  transform: translate(-50%, -50%) rotate(45deg);
}
.lt-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.lt-modal__close:hover {
  background: #e5e5e5;
}
.lt-modal__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 40px 12px 0;
  color: #000;
}
[dir="rtl"] .lt-modal__title {
  margin: 0 0 12px 40px;
}
.lt-modal__text {
  font-size: 15px;
  color: #252525;
  margin: 0 0 20px;
}
.lt-modal__state[hidden] {
  display: none;
}
.lt-modal__icon_ok {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eaf9ee;
  margin-bottom: 16px;
  position: relative;
}
.lt-modal__icon_ok::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 14px;
  width: 12px;
  height: 22px;
  border: solid #2bb673;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.lt-modal__contacts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.lt-modal__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #f4f4f4;
  color: #252525;
  font-size: 15px;
  text-decoration: none;
}
.lt-modal__contact:hover {
  background: #e5e5e5;
}

/* --- form --- */
.lt-form__summary {
  font-size: 15px;
  font-weight: 600;
  color: #FF3720;
  margin-bottom: 16px;
  min-height: 1em;
}
.lt-form__summary:empty {
  display: none;
}
.lt-form__field {
  display: block;
  margin-bottom: 14px;
  min-width: 0;
}
.lt-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lt-form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #252525;
  margin-bottom: 6px;
}
.lt-form__star {
  color: #FF3720;
}
.lt-form__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: #000;
  transition: border-color 150ms ease;
}
.lt-form__input:focus {
  outline: none;
  border-color: #FF3720;
}
.lt-form__input.is-invalid {
  border-color: #FF3720;
  background: #fff5f4;
}
.lt-form__date {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23767676' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-inline-end: 44px;
}
[dir="rtl"] .lt-form__date {
  background-position: left 16px center;
}
/* Air datepicker mobile overlay must sit above the modal, and the picker above the overlay */
.air-datepicker-overlay {
  z-index: 10000105;
}
.air-datepicker.-is-mobile- {
  z-index: 10000110;
}
.lt-form__textarea {
  height: auto;
  min-height: 84px;
  padding: 12px 16px;
  resize: vertical;
}
.lt-form__select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23252525' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-inline-end: 40px;
}
[dir="rtl"] .lt-form__select {
  background-position: left 16px center;
}
.lt-form__error {
  font-size: 13px;
  color: #FF3720;
  margin: -6px 0 12px;
}
.lt-form__error[hidden] {
  display: none;
}
.lt-form__submit {
  width: 100%;
  margin-top: 4px;
}

/* Desktop: the 1-month cell has no total line; give every price button the
   two-line height so the row reads as three equal blocks, content centered */
@media (min-width: 768px) {
  .lt-price {
    min-height: 69px;
    box-sizing: border-box;
    justify-content: center;
  }
}

/* --- responsive --- */
@media (max-width: 970px) {
  .lt-wrapper {
    padding: 24px;
  }
  .lt-card {
    padding: 24px;
  }
  .lt-intro__title {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .lt-wrapper {
    padding: 20px 16px;
    gap: 20px;
  }
  .lt-intro__title {
    font-size: 26px;
  }
  .lt-intro__text {
    font-size: 15px;
  }
  /* table becomes a list of cards */
  .lt-table__scroll {
    overflow: visible;
  }
  .lt-table {
    min-width: 0;
    border: none;
    border-radius: 0;
    display: block;
  }
  .lt-table thead {
    display: none;
  }
  .lt-table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .lt-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #fff;
  }
  .lt-table tbody tr:hover td {
    background: transparent;
  }
  .lt-table tbody td {
    display: block;
    padding: 0;
    border: none;
  }
  .lt-table tbody td.lt-car {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
  .lt-car__photo {
    flex-basis: 112px;
    width: 112px;
  }
  .lt-car__title {
    font-size: 17px;
  }
  .lt-cell::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #767676;
    text-align: center;
    margin-bottom: 6px;
  }
  /* Equal-height price buttons: the grid stretches the cells, the cell is a
     flex column, and the button fills whatever is left under the label */
  .lt-table tbody td.lt-cell {
    display: flex;
    flex-direction: column;
  }
  .lt-price {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 4px;
  }
  /* Four-digit prices must fit three columns on a 375px screen: smaller
     type, and "/ мес." may wrap under the amount instead of overflowing */
  .lt-price__monthly {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }
  .lt-price__value {
    font-size: 16px;
  }
  .lt-price__unit {
    font-size: 11px;
  }
  .lt-price__total {
    font-size: 11px;
    white-space: normal;
  }
  .lt-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lt-card {
    padding: 24px 20px;
  }
  .lt-card__title {
    font-size: 20px;
  }
  .lt-card_red .lt-cta {
    align-self: stretch;
    width: 100%;
  }
  .lt-modal {
    padding: 0;
    align-items: flex-end;
  }
  .lt-modal__card {
    max-width: none;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    padding: 24px 20px 28px;
  }
}
