/* ============================================================
   Quest Medical Career Summit – Event Page Styles
   Extends the main Quest Academy design system
   ============================================================ */

/* --- Countdown timer --- */
.summit-countdown {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.countdown-unit span:first-child {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #14919b);
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(15, 107, 111, 0.3);
}

.countdown-unit span:last-child {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-muted);
  margin-top: 8px;
}

/* --- Hero banner --- */
.summit-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.summit-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.summit-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.summit-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 107, 111, 0.28) 0%,
    rgba(10, 80, 83, 0.2) 50%,
    rgba(7, 16, 21, 0.4) 100%
  );
  z-index: 1;
}

.summit-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
}

.summit-hero-content {
  max-width: 680px;
}

.summit-hero .summit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 22px;
  animation: fadeInDown 0.6s ease forwards;
}

.summit-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.summit-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
  animation: fadeInUp 0.6s 0.1s ease backwards;
}

.summit-hero h1 span {
  background: linear-gradient(135deg, #66d2d6, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summit-hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 560px;
  animation: fadeInUp 0.6s 0.2s ease backwards;
}

.summit-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s 0.3s ease backwards;
}

.summit-hero-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
}

.meta-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: #66d2d6;
  stroke-width: 1.8;
}

.summit-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeInUp 0.6s 0.4s ease backwards;
}

.btn-glow {
  background: linear-gradient(135deg, var(--color-primary), #14919b);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(15, 107, 111, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(15, 107, 111, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Story section --- */
.summit-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.story-visual {
  position: relative;
}

.story-visual-img {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.story-visual-img img {
  width: 100%;
  height: auto;
  display: block;
}

.story-stat-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: linear-gradient(135deg, var(--color-primary), #14919b);
  color: #fff;
  padding: 16px 22px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 107, 111, 0.35);
  text-align: center;
}

.story-stat-badge strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.story-stat-badge span {
  font-size: 0.8rem;
  opacity: 0.85;
}

.story-features {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.story-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.story-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(var(--color-primary-rgb), 0.1);
  flex-shrink: 0;
}

.story-feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.8;
}

.story-feature h4 {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  margin-bottom: 2px;
}

.story-feature p {
  color: var(--color-muted);
  font-size: 0.88rem;
}

/* --- Time & Place section --- */
.summit-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.summit-info-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summit-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.summit-info-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.12), rgba(var(--color-primary-rgb), 0.04));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.summit-info-card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.8;
}

.summit-info-card h3 {
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.summit-info-card p {
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* --- Speakers section --- */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.speaker-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.speaker-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.speaker-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.speaker-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.speaker-card:hover .speaker-card-img img {
  transform: scale(1.05);
}

.speaker-card-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(7, 16, 21, 0.75), transparent);
  pointer-events: none;
}

.speaker-card-body {
  padding: 20px 22px 24px;
}

.speaker-card-body h3 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.speaker-card-body .speaker-title {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.speaker-topic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--color-primary-rgb), 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* --- Mystery speaker cards --- */
.speaker-card.mystery {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.04), rgba(var(--color-primary-rgb), 0.01));
  border: 2px dashed rgba(var(--color-primary-rgb), 0.25);
  cursor: default;
}

.speaker-card.mystery:hover {
  border-color: rgba(var(--color-primary-rgb), 0.45);
  box-shadow: 0 8px 32px rgba(15, 107, 111, 0.15);
}

.mystery-avatar {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a3d3f 0%, #0f6b6f 50%, #0a3d3f 100%);
}

.mystery-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(102, 210, 214, 0.08) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: mystery-shimmer 3s ease-in-out infinite;
}

@keyframes mystery-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.mystery-qmark {
  font-size: clamp(4rem, 6vw, 5.5rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  text-shadow: 0 0 40px rgba(102, 210, 214, 0.3);
  animation: mystery-pulse 2.5s ease-in-out infinite;
  z-index: 1;
  user-select: none;
}

@keyframes mystery-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); text-shadow: 0 0 40px rgba(102, 210, 214, 0.3); }
  50% { opacity: 1; transform: scale(1.08); text-shadow: 0 0 60px rgba(102, 210, 214, 0.5), 0 0 80px rgba(74, 222, 128, 0.2); }
}

.mystery-glow-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(102, 210, 214, 0.15);
  animation: mystery-ring 3s ease-in-out infinite;
}

@keyframes mystery-ring {
  0%, 100% { transform: scale(0.8); opacity: 0.3; }
  50% { transform: scale(1.3); opacity: 0; }
}

.mystery-card-body {
  padding: 20px 22px 24px;
  text-align: center;
}

.mystery-card-body h3 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 4px;
  font-weight: 700;
}

.mystery-card-body p {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

.mystery-coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1), rgba(var(--color-primary-rgb), 0.04));
  color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
}

.mystery-coming-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* --- Agenda section --- */
.agenda-timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.agenda-timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-primary), rgba(var(--color-primary-rgb), 0.15));
  border-radius: 4px;
}

.agenda-item {
  position: relative;
  margin-bottom: 28px;
  padding: 22px 24px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agenda-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.agenda-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2);
}

.agenda-item .agenda-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.agenda-item h4 {
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.agenda-item p {
  font-size: 0.88rem;
  color: var(--color-muted);
}

/* --- Location section --- */
.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.location-details {
  display: grid;
  gap: 20px;
}

.location-detail-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.location-detail-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
  margin-top: 2px;
}

.location-detail-item h4 {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  margin-bottom: 3px;
}

.location-detail-item p {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.location-map {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.location-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* --- Pricing / Book card --- */
.pricing-card-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.pricing-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  padding: 40px 48px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #14919b, #4ade80);
}

.pricing-card .pricing-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.pricing-current {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.pricing-original {
  font-size: 1.1rem;
  color: var(--color-muted);
  text-decoration: line-through;
  opacity: 0.65;
}

.pricing-discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.pricing-features {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  text-align: left;
}

.pricing-feature {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.pricing-feature svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.btn-book {
  display: block;
  width: 100%;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #57b9c0, #48a1c7);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(72, 161, 199, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  text-align: center;
}

.btn-book:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(72, 161, 199, 0.5);
}

/* --- Previous Events --- */
.prev-events-placeholder {
  text-align: center;
  padding: 60px 20px;
  background: var(--color-card);
  border: 2px dashed var(--color-border);
  border-radius: 22px;
  color: var(--color-muted);
}

.prev-events-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--color-border);
  fill: none;
  stroke-width: 1.4;
  margin-bottom: 14px;
}

/* --- Booking modal (Google Form iframe) --- */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 21, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 300;
  backdrop-filter: blur(4px);
}

.booking-modal-overlay.is-visible {
  display: flex;
}

.booking-modal {
  width: min(780px, 96%);
  max-height: 90vh;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.35s ease forwards;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.booking-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
}

.booking-modal-header h3 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.booking-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.booking-modal-close:hover {
  background: rgba(var(--color-primary-rgb), 0.06);
}

.booking-modal-body {
  flex: 1;
  overflow: hidden;
}

.booking-modal-body iframe {
  width: 100%;
  height: 75vh;
  border: 0;
  display: block;
}

/* --- Floating price card (sticky sidebar-style) --- */
.summit-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.summit-main {
  min-width: 0;
}

.summit-sidebar {
  position: sticky;
  top: 100px;
}

/* --- Section divider --- */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .summit-layout {
    grid-template-columns: 1fr;
  }

  .summit-sidebar {
    position: static;
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .summit-story-grid {
    grid-template-columns: 1fr;
  }

  .location-content {
    grid-template-columns: 1fr;
  }

  .speakers-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 600px) {
  .summit-hero .container {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .summit-hero h1 {
    font-size: 1.8rem;
  }

  .summit-countdown {
    gap: 10px;
  }

  .countdown-unit span:first-child {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    border-radius: 12px;
  }

  .pricing-card {
    padding: 28px 24px;
  }

  .summit-hero-meta {
    flex-direction: column;
    gap: 12px;
  }

  .agenda-timeline {
    padding-left: 32px;
  }

  .booking-modal-body iframe {
    height: 65vh;
  }
}
