/* ═══════════════════════════════════════════════
   HOTEL PACK FORM — Styles
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --gold:    #034737;
  --gold-lt: #126351;
  --dark:    #ffffff;
  --dark2:   #f4f7f3;
  --dark3:   #e8ece7;
  --border:  #A9FF9B;
  --text:    #034737;
  --muted:   #5b6b5b;
  --error:   #d32f2f;
  --success: #034737;
  --radius:  14px;
  --shadow:  0 24px 64px rgba(3,71,55,.12);
}

/* ── Overlay ─────────────────────────────────── */
#hp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  z-index: 99998;
  align-items: center;
  justify-content: center;
}
#hp-overlay.hp-visible { display: flex; }

/* ── Modal shell ─────────────────────────────── */
#hp-modal {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(560px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  position: relative;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  animation: hp-slide-in .35s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes hp-slide-in {
  from { opacity:0; transform: translateY(28px) scale(.97); }
  to   { opacity:1; transform: translateY(0)   scale(1); }
}

/* ── Header ──────────────────────────────────── */
.hp-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hp-pack-badge {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(169,255,155,.15);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}
.hp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: .02em;
  margin: 0;
  flex: 1;
}
.hp-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px;
  transition: color .2s;
}
.hp-close:hover { color: var(--text); }

/* ── Progress bar ────────────────────────────── */
.hp-progress {
  display: flex;
  gap: 6px;
  padding: 18px 32px 0;
}
.hp-progress-dot {
  height: 3px;
  flex: 1;
  background: var(--dark3);
  border-radius: 999px;
  transition: background .3s;
}
.hp-progress-dot.active  { background: var(--gold); }
.hp-progress-dot.done    { background: rgba(201,168,76,.4); }

.hp-step-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 32px 0;
}

/* ── Steps container ─────────────────────────── */
.hp-steps { padding: 20px 32px 32px; }

.hp-step { display: none; }
.hp-step.hp-active {
  display: block;
  animation: hp-fade-step .3s ease both;
}
@keyframes hp-fade-step {
  from { opacity:0; transform: translateX(14px); }
  to   { opacity:1; transform: translateX(0); }
}

/* ── Form fields ─────────────────────────────── */
.hp-field {
  margin-bottom: 16px;
}
.hp-label {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 500;
}
.hp-label span { color: var(--gold); margin-left: 2px; }

.hp-input, .hp-select {
  width: 100%;
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.hp-input::placeholder { color: var(--muted); }
.hp-input:focus,
.hp-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.hp-input.hp-error { border-color: var(--error); }
.hp-field-error {
  color: var(--error);
  font-size: 11px;
  margin-top: 5px;
  margin-bottom: 0;
  display: block;
}

.hp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Hotel found card ────────────────────────── */
#hp-hotel-found {
  display: none;
  background: rgba(112,201,160,.07);
  border: 1px solid rgba(112,201,160,.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  gap: 12px;
  align-items: flex-start;
}
#hp-hotel-found.visible { display: flex; }
.hp-found-icon { font-size: 22px; }
.hp-found-name { font-size: 15px; font-weight: 500; }
.hp-found-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ── Search status ───────────────────────────── */
#hp-search-status {
  font-size: 12px;
  margin-top: 6px;
  min-height: 18px;
  transition: color .2s;
}
#hp-search-status.searching { color: var(--gold); }
#hp-search-status.not-found { color: var(--muted); }
#hp-search-status.found     { color: var(--success); }

/* ── Not-on-API fields ───────────────────────── */
#hp-manual-fields { display: none; }
#hp-manual-fields.visible { display: block; }
.hp-section-sep {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* ── Buttons ─────────────────────────────────── */
.hp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}
.hp-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .02em;
}
.hp-btn-secondary {
  background: var(--dark3);
  color: var(--muted);
  border: 1px solid var(--border);
}
.hp-btn-secondary:hover { color: var(--text); border-color: rgba(255,255,255,.2); }

.hp-btn-primary {
  background: var(--gold);
  color: #ffffff;
  font-weight: 600;
  flex: 1;
}
.hp-btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }
.hp-btn-primary:active { transform: translateY(0); }
.hp-btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* ── Success state ───────────────────────────── */
#hp-success {
  display: none;
  text-align: center;
  padding: 48px 32px;
}
#hp-success.visible { display: block; }
.hp-success-icon {
  font-size: 52px;
  margin-bottom: 16px;
  animation: hp-pop .5s cubic-bezier(.34,1.56,.64,1) both .1s;
}
@keyframes hp-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.hp-success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 10px;
}
.hp-success-msg { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ── Choose button (shortcode) ───────────────── */
.hp-choose-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 30px;
  background: var(--pack-color, #C9A84C);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: .04em;
  transition: opacity .2s, transform .2s;
}
.hp-choose-btn:hover { opacity: .88; transform: translateY(-2px); }

/* ── Scrollbar ───────────────────────────────── */
#hp-modal::-webkit-scrollbar { width: 5px; }
#hp-modal::-webkit-scrollbar-track { background: transparent; }
#hp-modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

@media (max-width: 480px) {
  .hp-header  { padding: 20px 20px 16px; }
  .hp-steps   { padding: 16px 20px 24px; }
  .hp-progress, .hp-step-label { padding-left: 20px; padding-right: 20px; }
  .hp-grid-2  { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   VIDEO LIGHTBOX
═══════════════════════════════════════════════ */
#hp-video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(6px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
#hp-video-overlay.hp-visible { display: flex; }

#hp-video-box {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(720px, 95vw);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: hp-slide-in .3s cubic-bezier(.34,1.56,.64,1) both;
  position: relative;
}

#hp-video-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  padding: 16px 50px 16px 20px;
  border-bottom: 1px solid var(--border);
}

#hp-video-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  transition: color .2s;
}
#hp-video-close:hover { color: var(--text); }

#hp-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
}
#hp-video-wrap iframe,
#hp-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

#hp-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}
#hp-video-placeholder svg { width: 64px; height: 64px; opacity: .6; }
#hp-video-placeholder p { font-size: 14px; }

/* ═══════════════════════════════════════════════
   BOOKING HELP BUTTON (ⓘ circle)
═══════════════════════════════════════════════ */
.hp-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  margin-left: 6px;
  color: var(--gold);
  cursor: pointer;
  vertical-align: middle;
  opacity: .8;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
.hp-help-btn:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* ═══════════════════════════════════════════════
   SUMMARY TABLE
═══════════════════════════════════════════════ */
.hp-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.9;
}
.hp-sum-key  { color: var(--muted); width: 40%; padding: 4px 0; }
.hp-sum-val  { padding: 4px 0; }
.hp-sum-pack { color: var(--gold); font-weight: 600; }
.hp-sum-divider td { height: 12px; }

/* ═══════════════════════════════════════════════
   RTL SUPPORT
═══════════════════════════════════════════════ */
[dir="rtl"] .hp-header  { flex-direction: row-reverse; }
[dir="rtl"] .hp-actions { flex-direction: row-reverse; }
[dir="rtl"] .hp-grid-2  { direction: rtl; }
[dir="rtl"] .hp-label   { text-align: right; }
[dir="rtl"] .hp-input   { text-align: right; direction: rtl; }
[dir="rtl"] .hp-found-icon { order: 1; }
[dir="rtl"] #hp-hotel-found > div:last-child { order: 0; }
[dir="rtl"] #hp-video-close { right: auto; left: 16px; }
[dir="rtl"] #hp-video-title { padding: 16px 20px 16px 50px; }
