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

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

:root {
  --primary:   #034737;
  --primary-rgb: 3, 71, 55;
  --accent:    #A9FF9B;
  --accent-rgb: 169, 255, 155;
  --bg-modal:  rgba(255, 255, 255, 0.95);
  --bg-card:   #ffffff;
  --text-main: #1a1a1a;
  --text-muted: #666666;
  --border:    rgba(169, 255, 155, 0.3);
  --border-focus: #034737;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-premium: 0 20px 50px rgba(0,0,0,0.1);
}

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

/* ── Modal shell ─────────────────────────────── */
#hp-modal {
  background: var(--bg-modal);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  width: min(600px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-premium);
  position: relative;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  animation: hp-premium-entry 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hp-premium-entry {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ────────────────────────────────── */
.hp-header {
  padding: 32px 40px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.hp-modal-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 2.2rem !important;
  font-weight: 500 !important;
  color: var(--primary) !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}
.hp-close {
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
}
.hp-close:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

/* ── Progress Bar ──────────────────────────── */
.hp-progress {
  display: flex;
  gap: 8px;
  padding: 0 40px;
  margin-bottom: 8px;
}
.hp-progress-dot {
  height: 4px;
  flex: 1;
  background: #eee;
  border-radius: 10px;
  transition: all 0.4s ease;
}
.hp-progress-dot.active { background: var(--primary); width: 200%; flex: 2; }
.hp-progress-dot.done { background: var(--accent); }

.hp-step-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0 40px;
  margin-bottom: 32px;
}

/* ── Content ────────────────────────────────── */
.hp-steps { padding: 0 40px 40px; }

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

/* ── Pack Cards ────────────────────────────── */
.hp-pack-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.hp-pack-card {
  position: relative;
  background: #fff;
  border: 2px solid #f0f0f0;
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.24, 0, 0.64, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hp-pack-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.hp-pack-card--selected {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(3, 71, 55, 0.2);
}

.hp-pack-card-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.hp-pack-card-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.hp-pack-card--selected .hp-pack-card-check {
  background: #fff;
  border-color: #fff;
}
.hp-pack-card--selected .hp-pack-card-check svg polyline { stroke: var(--primary); }

/* ── Form Fields ────────────────────────────── */
.hp-field { margin-bottom: 24px; }
.hp-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}
.hp-input, .hp-select {
  width: 100%;
  background: #f9f9f9;
  border: 1.5px solid #eee;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
  color: var(--text-main);
}
.hp-input:focus, .hp-select:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(3, 71, 55, 0.05);
  outline: none;
}

/* ── Buttons ────────────────────────────────── */
.hp-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.hp-btn {
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-btn-primary {
  background: var(--primary);
  color: #fff;
  flex: 2;
}
.hp-btn-primary:hover { background: #045a46; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(3, 71, 55, 0.25); }

.hp-btn-secondary {
  background: #f5f5f5;
  color: var(--text-muted);
  flex: 1;
}
.hp-btn-secondary:hover { background: #eee; color: var(--text-main); }

/* ── Search UI ──────────────────────────────── */
.hp-search-input-row {
  display: flex;
  gap: 8px;
}
.hp-search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.hp-search-btn:hover { background: #045a46; transform: scale(1.05); }

/* ── Hotel Found Card ───────────────────────── */
.hp-hotel-found-card {
  background: #fff;
  border: 1px solid var(--accent);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 10px 30px rgba(169, 255, 155, 0.1);
}
.hp-found-badge {
  background: var(--accent);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  display: inline-flex;
  margin-bottom: 16px;
}
.hp-found-name { font-size: 18px; font-weight: 700; color: var(--primary); }

/* ── Video Lightbox (Help) ─────────────────── */
#hp-video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
#hp-video-overlay.hp-visible { display: flex; }

#hp-video-box {
  background: #111;
  border-radius: 24px;
  width: min(800px, 100%);
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: visible;
}

#hp-video-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--primary);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
#hp-video-close:hover { transform: scale(1.1) rotate(90deg); }

#hp-video-title {
  padding: 20px 30px;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 16:9 Responsive Wrapper */
#hp-video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}
#hp-video-wrap iframe,
#hp-video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 0 24px 24px;
}
#hp-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 30px;
}

/* ── Summary Table ──────────────────────────── */
.hp-summary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}
.hp-sum-key { color: var(--text-muted); font-weight: 500; }
.hp-sum-val { color: var(--text-main); font-weight: 700; text-align: right; }
.hp-sum-pack { color: var(--primary); }

/* ── Success ────────────────────────────────── */
#hp-success {
  display: none;
  text-align: center;
  padding: 60px 40px;
}
#hp-success.visible { display: block; }
.hp-success-icon { font-size: 80px; margin-bottom: 24px; }
.hp-success-title { font-size: 32px; font-family: 'Cormorant Garamond', serif; color: var(--primary); }

/* ── Help Button ────────────────────────────── */
.hp-help-btn {
  background: #f0f0f0;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 12px;
  margin-left: 8px;
  cursor: pointer;
  transition: all 0.3s;
}
.hp-help-btn:hover { background: var(--primary); color: #fff; }

@media (max-width: 480px) {
  .hp-header, .hp-steps, .hp-progress, .hp-step-label { padding-left: 24px; padding-right: 24px; }
  .hp-modal-title { font-size: 1.8rem !important; }
}
