/* ==========================================================================
   Home hero: WhatsApp quick-request form
   Markup: components/sections/hero_request.php
   Script: assets/js/components/hero_request.js
   Uses logical properties (inline-start/end) so Arabic (RTL) mirrors itself.
   ========================================================================== */

.tlh {
  --tlh-gold: var(--color-primary, #E0A230);
  --tlh-gold-ink: #8A5A00;      /* gold text on light backgrounds (5.5:1) */
  --tlh-gold-tint: #FFF6E5;
  --tlh-ink: var(--color-ink, #111214);
  --tlh-muted: #5F6672;         /* 5.8:1 on white */
  --tlh-line: #E6E7EA;
  --tlh-wa: #118043;            /* WhatsApp green, 5:1 with white text */
  --tlh-wa-hover: #0E7A3C;
  --tlh-header: 80px;
  --tlh-bottom-nav: 0px;

  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--tlh-header) + 2.75rem) 0 3.5rem;
  overflow: hidden;
  background: #0f1012;
  color: #fff;
}

/* ---- Background photos ---- */
.tlh__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.tlh__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.tlh__slide.is-active { opacity: 1; }

.tlh__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(15, 16, 18, .30), rgba(15, 16, 18, 0) 70%),
    linear-gradient(180deg, rgba(15, 16, 18, .78) 0%, rgba(15, 16, 18, .58) 32%, rgba(15, 16, 18, .66) 64%, rgba(15, 16, 18, .94) 100%);
}

/* ---- Copy ---- */
.tlh__inner {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 2rem;
  text-align: center;
}

.tlh .tlh__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.1rem;
  padding: .4rem .95rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #F4F4F5;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
}
.tlh .tlh__eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tlh-gold);
  box-shadow: 0 0 0 4px rgba(224, 162, 48, .22);
}

.tlh .tlh__title {
  max-width: 17em;
  margin: 0 auto .9rem;
  color: #fff;
  font-family: var(--font-brand);
  font-size: clamp(1.85rem, 1.05rem + 3.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.tlh .tlh__title em {
  font-style: normal;
  color: var(--tlh-gold);
}

.tlh .tlh__lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(1rem, .94rem + .3vw, 1.15rem);
  line-height: 1.6;
  text-wrap: balance;
}

html[dir="rtl"] .tlh .tlh__title {
  font-family: var(--font-arabic);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

/* ---- Card ---- */
.tlh-card {
  max-width: 1100px;
  margin-inline: auto;
  padding: .75rem;
  border-radius: 22px;
  background: #fff;
  color: var(--tlh-ink);
  text-align: start;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 14px 28px -14px rgba(0, 0, 0, .4);
}

.tlh-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem .75rem;
  padding: .2rem .2rem .75rem;
}

/* Tabs (radio buttons styled as pills) */
.tlh .tlh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.tlh-tab {
  position: relative;
  display: block;
  cursor: pointer;
}
.tlh-tab input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.tlh-tab__inner {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 42px;
  padding: 0 1.05rem;
  border: 1px solid var(--tlh-line);
  border-radius: 999px;
  background: #fff;
  color: #3F4652;
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.tlh-tab__inner .tlh-ico {
  width: 19px;
  height: 19px;
  color: #8B919C;
  transition: color .15s ease;
}
.tlh-tab:hover .tlh-tab__inner { background: #F6F6F7; }
.tlh-tab input:checked + .tlh-tab__inner {
  border-color: var(--tlh-gold);
  background: var(--tlh-gold-tint);
  color: var(--tlh-gold-ink);
}
.tlh-tab input:checked + .tlh-tab__inner .tlh-ico { color: var(--tlh-gold-ink); }
.tlh-tab input:focus-visible + .tlh-tab__inner {
  outline: 2px solid var(--tlh-gold);
  outline-offset: 2px;
}

/* Optional price chip */
.tlh .tlh-price {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--tlh-gold-tint);
  color: var(--tlh-gold-ink);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.4;
}
.tlh .tlh-price[hidden] { display: none; }
.tlh-price .tlh-ico { width: 16px; height: 16px; }

/* Fields bar + button */
.tlh-bar {
  display: flex;
  align-items: stretch;
  gap: .6rem;
}
.tlh-panel {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tlh-line);
  border-radius: 16px;
}
.tlh-panel[hidden] { display: none; }

.tlh-field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 72px;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.tlh-field + .tlh-field { border-inline-start: 1px solid var(--tlh-line); }
.tlh-field:hover { background: #FAFAFB; }
.tlh-field:focus-within {
  background: #FFFBF3;
  box-shadow: inset 0 0 0 2px var(--tlh-gold);
}

.tlh-field__label {
  position: absolute;
  top: .8rem;
  inset-inline: 1rem 2.25rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  overflow: hidden;
  color: var(--tlh-muted);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}
.tlh-field__label .tlh-ico {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--tlh-gold-ink);
}
html[dir="rtl"] .tlh-field__label {
  font-size: .8125rem;
  letter-spacing: 0;
}

.tlh .tlh-field__control {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72px;
  margin: 0;
  padding-block: 2.05rem .7rem;
  padding-inline: 1rem 2.25rem;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--tlh-ink);
  font: inherit;
  font-size: 1rem; /* 16px stops iOS from zooming in on focus */
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.tlh input.tlh-field__control { cursor: text; }
.tlh-field--text .tlh-field__label { inset-inline-end: 1rem; }
.tlh .tlh-field--text .tlh-field__control { padding-inline-end: 1rem; }
.tlh .tlh-field__control::placeholder {
  color: #9AA0A8;
  font-weight: 500;
  opacity: 1;
}
.tlh-field__caret {
  position: absolute;
  inset-inline-end: .95rem;
  bottom: 1.05rem;
  width: 16px;
  height: 16px;
  color: #8B919C;
  pointer-events: none;
}

/* Travelers stepper */
.tlh-field--stepper {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  min-width: 9.75rem;
  padding: 0 .85rem .7rem 1rem;
  padding-inline: 1rem .85rem;
}
.tlh-field--stepper .tlh-field__label { inset-inline-end: .85rem; }
.tlh-stepper {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.tlh .tlh-stepper__btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #D5D8DE;
  border-radius: 50%;
  background: #fff;
  color: var(--tlh-ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.tlh .tlh-stepper__btn:hover:not(:disabled) {
  border-color: var(--tlh-gold);
  background: var(--tlh-gold-tint);
}
.tlh .tlh-stepper__btn:disabled { opacity: .4; cursor: not-allowed; }
.tlh .tlh-stepper__btn:focus-visible { outline: 2px solid var(--tlh-gold); outline-offset: 2px; }
.tlh-stepper__btn .tlh-ico { width: 15px; height: 15px; }
.tlh .tlh-stepper__input {
  width: 2.6rem;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--tlh-ink);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.tlh-stepper__input::-webkit-outer-spin-button,
.tlh-stepper__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

/* WhatsApp button */
.tlh .tlh-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 74px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 16px;
  background: var(--tlh-wa);
  color: #fff;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(17, 128, 67, .7);
  transition: background-color .15s ease, transform .15s ease;
}
.tlh .tlh-cta:hover { background: var(--tlh-wa-hover); transform: translateY(-1px); }
.tlh .tlh-cta:active { transform: translateY(0); }
.tlh .tlh-cta:focus-visible { outline: 3px solid var(--tlh-gold); outline-offset: 3px; }
.tlh-cta__wa { width: 24px; height: 24px; }
.tlh-cta__arrow { width: 18px; height: 18px; transition: transform .15s ease; }
.tlh-cta:hover .tlh-cta__arrow { transform: translateX(3px); }
html[dir="rtl"] .tlh-cta__arrow { transform: scaleX(-1); }
html[dir="rtl"] .tlh-cta:hover .tlh-cta__arrow { transform: scaleX(-1) translateX(3px); }

/* Trust points */
.tlh .tlh-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.75rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .86);
  font-size: .9rem;
}
.tlh-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.tlh-trust .tlh-ico { flex: none; width: 18px; height: 18px; color: var(--tlh-gold); }

.tlh-ico { display: block; flex: none; }

.tlh-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Without JavaScript the tabs can't switch: show the default form only. */
html:not(.tlh-js) .tlh-tabs,
html:not(.tlh-js) .tlh-price { display: none; }

/* ---- Entrance ---- */
@media (prefers-reduced-motion: no-preference) {
  .tlh__inner > * { animation: tlh-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
  .tlh__inner > :nth-child(2) { animation-delay: .05s; }
  .tlh__inner > :nth-child(3) { animation-delay: .1s; }
  .tlh__inner > :nth-child(4) { animation-delay: .15s; }
  .tlh__inner > :nth-child(5) { animation-delay: .2s; }
}
@keyframes tlh-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tlh__slide { transition: none; }
}

/* ---- Tablet: button drops under the fields ---- */
@media (max-width: 1023px) {
  .tlh-bar { flex-direction: column; }
  .tlh .tlh-cta { width: 100%; min-height: 58px; }
}

/* ---- Mobile (matches the site's mobile header + bottom nav at <=768px) ---- */
@media (max-width: 768px) {
  .tlh {
    --tlh-header: 64px;
    --tlh-bottom-nav: 64px;
    padding: calc(var(--tlh-header) + 1.75rem) 0 calc(var(--tlh-bottom-nav) + 1.75rem + env(safe-area-inset-bottom, 0px));
  }
  .tlh__inner { padding-inline: 1rem; }
  .tlh .tlh__eyebrow { margin-bottom: .9rem; font-size: .8125rem; }
  .tlh .tlh__lead { margin-bottom: 1.5rem; }
}

@media (max-width: 768px) {
  .tlh-panel { flex-wrap: wrap; }
  .tlh-field { flex: 1 1 100%; min-height: 64px; }
  .tlh .tlh-field__control { min-height: 64px; padding-block: 1.9rem .6rem; }
  .tlh-field + .tlh-field { border-inline-start: 0; border-top: 1px solid var(--tlh-line); }
  .tlh-field--half { flex-basis: 50%; }
  .tlh-field--half + .tlh-field--half { border-top: 0; border-inline-start: 1px solid var(--tlh-line); }

  .tlh-field--stepper {
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding-block: 0;
  }
  .tlh-field--stepper .tlh-field__label { position: static; }
}

@media (max-width: 640px) {
  .tlh-card { padding: .5rem; border-radius: 18px; }
  .tlh-card__top { padding: .15rem 0 .5rem; }

  .tlh .tlh-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .35rem;
    width: 100%;
  }
  .tlh-tab__inner {
    flex-direction: column;
    justify-content: center;
    gap: .3rem;
    width: 100%;
    height: auto;
    min-height: 62px;
    padding: .45rem .2rem;
    border-radius: 14px;
    font-size: .78rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
  .tlh-tab__inner .tlh-ico { width: 22px; height: 22px; }

  .tlh .tlh-trust { gap: .5rem 1.1rem; font-size: .85rem; }
}
