/* ============================================================
   PASSPORT GATEWAY — Price Calculator Modal
   Reuses from modal.css: .modal-overlay, .modal-panel, .modal-close,
   .modal-header, .modal-title, .modal-subtitle, .form-label, .form-select
   ============================================================ */

/* Calculator layout */
.pl-calculator {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.pl-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Trip type pill group */
.pl-type-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pl-type-btn {
  flex: 1 1 auto;
  padding: 0.55rem var(--space-4);
  border: 1.5px solid var(--color-border-gold);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-dim);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.pl-type-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.pl-type-btn.is-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy-deep);
  font-weight: 600;
}

.pl-type-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Passengers stepper */
.pl-stepper {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-surface-input);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-md);
  padding: 0.5rem var(--space-4);
  width: fit-content;
}

.pl-stepper-btn {
  background: transparent;
  border: 1.5px solid rgba(201, 162, 74, 0.4);
  color: var(--color-gold);
  border-radius: var(--radius-sm);
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pl-stepper-btn:hover {
  background: rgba(201, 162, 74, 0.12);
  border-color: var(--color-gold);
}

.pl-stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pl-stepper-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.pl-stepper-count {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-cream);
  min-width: 1.5rem;
  text-align: center;
}

/* Result block */
.pl-result {
  border-top: 1px solid var(--color-border-gold);
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  animation: pl-fade-in 0.2s ease;
}

@keyframes pl-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pl-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--text-sm);
  color: var(--color-text-dim);
}

.pl-total-row {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-cream);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border-gold);
  margin-top: var(--space-1);
}

.pl-total-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-gold);
}

.pl-note {
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  text-align: center;
  margin-top: var(--space-1);
}

/* CTA row — two WhatsApp buttons */
.pl-cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.pl-cta-row .btn {
  flex: 1 1 auto;
  justify-content: center;
}

.pl-custom {
  text-align: center;
  margin-top: var(--space-2);
}

.pl-custom a {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.pl-custom a:hover { color: var(--color-gold); }

/* Native select options — force dark theme (CSS variables don't reach OS-rendered dropdowns) */
#pl-destination optgroup {
  background-color: #131D3B;
  color: #C9A24A;
  font-style: normal;
  font-weight: 700;
}

#pl-destination option {
  background-color: #0A0F22;
  color: #F7F4EC;
}

/* ── Inline mode (prices/index.html) ────────────────────────── */
.prices-page {
  min-height: calc(100dvh - var(--nav-height));
  background-color: var(--color-navy-deep);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g fill='none' stroke='%23C9A24A' stroke-width='1.5' opacity='0.7'><circle cx='0' cy='70' r='70'/><circle cx='70' cy='0' r='70'/><circle cx='140' cy='70' r='70'/><circle cx='70' cy='140' r='70'/><circle cx='70' cy='70' r='70'/></g></svg>");
  background-size: 140px 140px;
  background-position: top left;
  background-attachment: fixed;
  background-blend-mode: soft-light;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.prices-inner {
  display: grid;
  grid-template-columns: 1fr min(560px, 100%);
  gap: var(--space-10);
  align-items: start;
}

.prices-head {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
}

.prices-head .eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.prices-head .section-ornament {
  justify-content: flex-start;
  margin: 0 0 var(--space-4);
}

.prices-head h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-cream);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.prices-head p {
  font-size: var(--text-base);
  color: var(--color-text-dim);
  line-height: 1.6;
  max-width: 38ch;
}

/* Card header — title + logo (mirrors the modal header) */
.pl-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border-gold);
}

.pl-card-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-cream);
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.pl-card-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  line-height: 1.5;
  max-width: 28ch;
}

.pl-card-logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  opacity: 0.9;
}

/* Suppress the left-column subtitle (the card has it now) */
.prices-head-sub {
  display: none;
}

.pl-inline {
  background-color: var(--color-navy-deep);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g fill='none' stroke='%23C9A24A' stroke-width='1.5' opacity='0.7'><circle cx='0' cy='70' r='70'/><circle cx='70' cy='0' r='70'/><circle cx='140' cy='70' r='70'/><circle cx='70' cy='140' r='70'/><circle cx='70' cy='70' r='70'/></g></svg>");
  background-size: 140px 140px;
  background-position: top left;
  background-attachment: fixed;
  background-blend-mode: soft-light;
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* How-to steps inside prices-head (reuses events-how classes) */
.prices-head .events-how {
  margin-top: var(--space-7);
}

/* Single-column on smaller screens */
@media (max-width: 900px) {
  .prices-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .prices-head {
    position: static;
    text-align: center;
    margin-bottom: 0;
  }
  .prices-head p { margin-inline: auto; }
  .prices-head .section-ornament { justify-content: center; }
  .prices-head .events-how { max-width: 380px; margin-inline: auto; text-align: left; }
}

/* Mobile — compact layout */
@media (max-width: 600px) {
  .prices-page {
    padding-block: 2rem 2.5rem;
  }
  .prices-inner {
    gap: 1.25rem;
  }
  /* How-to steps hidden on mobile — form card is self-explanatory */
  .prices-head .events-how {
    display: none;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .pl-type-btn    { padding: 0.5rem var(--space-3); font-size: var(--text-xs); }
  .pl-cta-row     { flex-direction: column; }
  .pl-inline      { padding: 20px; }
  .pl-card-header { flex-direction: column; gap: var(--space-3); }
  .pl-card-logo   { width: 52px; height: 52px; }

  /* Ensure select doesn't overflow the card */
  .pl-inline .form-select {
    max-width: 100%;
    box-sizing: border-box;
  }
}
