﻿/* ============================================================
   TarifaAerea — Enquiry / Flight details page
   Theme: navy + lime (depends on variables in styles.css)
   ============================================================ */

.enq-wrap { background: var(--slate-100); padding: 34px 0 80px; }

/* ---- Top summary bar ---- */
.enq-summary {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.enq-sum-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.enq-sum-ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255, 235, 255, 0.671);
  color: var(--lime-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.enq-sum-k { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--slate-500); font-weight: 800; }
.enq-sum-v { font-size: 0.98rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.enq-sum-arrow { color: var(--slate-400); }
.enq-sum-spacer { flex: 1; }
.enq-trip-badge {
  background: var(--navy-700);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* ---- Two column grid ---- */
.enq-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

/* ---- Left: offer card ---- */
.offer-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

/* hotline banner */
.hotline {
  color: #444;
  border-radius: 14px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  border: 1px solid #cedbe8;
}
.hotline-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgb(255 238 255);
  display: grid; place-items: center;
  color: var(--lime);
  flex-shrink: 0;
}
.hotline-k { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 1px; color: rgb(75 75 75 / 77%);; font-weight: 700; }
.hotline-num { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; }
.hotline-live { font-size: 0.78rem; color: rgb(91 91 91);; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.hotline-live .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(200,240,0,0.3); animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hotline-cta {
  margin-left: auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.hotline-cta:hover { transform: translateX(3px); }

/* offer head */
.offer-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tag-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.tag-nonstop { background: var(--navy-700); color: #fff; }
.tag-plane { background: var(--slate-100); color: var(--slate-700); }

.offer-priceblock { float: right; text-align: right; }
.offer-old { color: var(--slate-400); text-decoration: line-through; font-size: 0.9rem; font-weight: 600; }
.offer-price { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.offer-price span { font-size: 0.8rem; font-weight: 600; color: var(--slate-500); }
.offer-save {
  display: inline-block;
  margin-top: 4px;
  background: rgba(200,240,0,0.2);
  color: var(--lime-700);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.offer-route { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); margin-bottom: 6px; line-height: 1.2; }
.offer-desc { color: var(--slate-500); font-size: 0.92rem; margin-bottom: 20px; }

/* timeline */
.offer-timeline {
  background: var(--slate-100);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.tl-time { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1; }
.tl-code { font-size: 0.8rem; font-weight: 800; color: var(--navy-700); margin-top: 4px; }
.tl-city { font-size: 0.78rem; color: var(--slate-500); }
.tl-end { text-align: right; }
.tl-mid { flex: 1; text-align: center; position: relative; }
.tl-dur { font-size: 0.78rem; color: var(--slate-500); font-weight: 600; margin-bottom: 6px; }
.tl-line {
  position: relative;
  height: 2px;
  background: var(--slate-200);
  margin: 0 6px;
}
.tl-line::before, .tl-line::after {
  content: "";
  position: absolute; top: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  transform: translateY(-50%);
}
.tl-line::before { left: -2px; background: var(--navy-700); }
.tl-line::after { right: -2px; background: var(--lime-600); }
.tl-line .tl-plane {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--slate-100);
  padding: 0 6px;
  color: var(--lime-700);
}
.tl-type { font-size: 0.76rem; color: var(--lime-700); font-weight: 700; margin-top: 6px; }

/* amenities */
.offer-amenities { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.amenity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
}
.amenity svg { color: var(--lime-700); }

.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--slate-200); padding-top: 18px; }
.offer-calllink { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-700); font-weight: 700; font-size: 0.9rem; }
.btn-book {
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-book:hover { background: var(--lime-600); box-shadow: 0 8px 22px var(--ring); }

/* ---- Right: quote form ---- */
.quote-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 22px;
  position: sticky;
  top: 90px;
}
.quote-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.quote-lead { color: var(--slate-500); font-size: 0.9rem; margin-bottom: 18px; }

.q-field {
  border: 1.5px solid var(--slate-200);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.q-field.readonly { background: var(--slate-100); }
.q-field:focus-within { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(20,52,81,0.10); }
.q-field.invalid { border-color: #e11d48; }
.q-k { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--navy-700); font-weight: 800; }
.q-field.invalid .q-k { color: #e11d48; }
.q-field input {
  border: none; outline: none; background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  padding: 2px 0 0;
}
.q-field input::placeholder { color: var(--slate-400); font-weight: 500; }
.q-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-two .q-field { margin-bottom: 12px; }

.btn-quote {
  width: 100%;
  background: var(--navy-700);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 15px;
  border-radius: 12px;
  margin-top: 6px;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-quote:hover { background: var(--navy-600); box-shadow: 0 10px 26px rgba(20,52,81,0.28); }
.quote-consent { font-size: 0.78rem; color: var(--slate-500); text-align: center; margin-top: 14px; line-height: 1.5; }
.quote-consent strong { color: var(--ink); }

/* success modal */
.quote-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.quote-modal.show { display: flex; }
.quote-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  animation: qmFade 0.2s ease;
}
.quote-success {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  text-align: center;
  padding: 36px 28px 30px;
  animation: qmPop 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
.quote-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 34px; height: 34px;
  border: 0;
  background: transparent;
  color: var(--slate-500);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}
.quote-modal-close:hover { background: #f1f5f9; color: #0f172a; }
.quote-success .qs-ico {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(200,240,0,0.2);
  color: var(--lime-700);
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.quote-success h3 { font-size: 1.35rem; margin-bottom: 8px; }
.quote-success p { color: var(--slate-500); font-size: 0.92rem; margin-bottom: 18px; }

@keyframes qmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qmPop {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* trust row under form */
.quote-trust { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; color: var(--slate-500); font-size: 0.78rem; font-weight: 600; flex-wrap: wrap; }
.quote-trust span { display: inline-flex; align-items: center; gap: 6px; }
.quote-trust svg { color: var(--lime-700); }

@media (max-width: 880px) {
  .enq-grid { grid-template-columns: 1fr; }
  .quote-card { position: static; }
  .enq-summary { gap: 16px; }
}
@media (max-width: 560px) {
  .q-two { grid-template-columns: 1fr; }
  .offer-priceblock { float: none; text-align: left; margin-bottom: 10px; }
  .hotline-num { font-size: 1.25rem; }
}

/* ============================================================
   Enquiry — hotel offer variant
   ============================================================ */
.hotel-block { display: none; }
body.is-hotel .flight-block { display: none; }
body.is-hotel .hotel-block { display: block; }

.hotel-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  margin-bottom: 16px;
}
.hotel-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hotel-hero .hotel-score {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--navy-700);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 10px;
}
.hotel-name { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); margin-bottom: 4px; }
.hotel-stars { color: #f5a623; letter-spacing: 1px; font-size: 0.9rem; }
.hotel-loc { color: var(--slate-500); font-size: 0.9rem; margin-left: 6px; }
.hotel-meta-row {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.hotel-meta {
  flex: 1;
  min-width: 120px;
  background: var(--slate-100);
  border-radius: 12px;
  padding: 12px 14px;
}
.hotel-meta .hm-k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--slate-500); font-weight: 700; }
.hotel-meta .hm-v { font-size: 0.98rem; font-weight: 700; color: var(--ink); margin-top: 3px; }

/* Service select inside the quote form */
.q-field select {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  padding: 2px 0 0;
  cursor: pointer;
}
