/* ======================================================
   AgilityPro Course Pricing page styles
   ====================================================== */

/* ── Hero ─────────────────────────────────────────────── */

#calc-hero {
  background: linear-gradient(135deg, #0f2640 0%, #1a3a5c 45%, #2e75b6 100%);
  padding: 120px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#calc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(61,155,212,0.18) 0%, transparent 65%);
  pointer-events: none;
}

#calc-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.15;
}

#calc-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

@media (max-width: 576px) {
  #calc-hero { padding: 90px 0 50px; }
  #calc-hero h1 { font-size: 1.9rem; }
}

/* ── Pricing section ──────────────────────────────────── */

#calculator-section {
  background: #f3f6fb;
  padding: 48px 0 80px;
  position: relative;
}

.calc-lift {
  margin-top: 0;
}

/* ── Pricing card ─────────────────────────────────────── */

.calc-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(15, 38, 64, 0.13), 0 2px 8px rgba(15,38,64,0.06);
  padding: 48px 52px 40px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .calc-card { padding: 32px 24px 28px; }
}

/* ── Field blocks ─────────────────────────────────────── */

.calc-field {
  margin-bottom: 38px;
}

.calc-field:last-of-type {
  margin-bottom: 0;
}

.calc-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #2b3d52;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2e75b6;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Course select ────────────────────────────────────── */

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background: #2e75b6;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
}

#courseSelect {
  width: 100%;
  padding: 14px 44px 14px 18px;
  border: 2px solid #dde5f0;
  border-radius: 10px;
  font-size: 1rem;
  color: #1a2b3c;
  background: #f8fafd;
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.5;
}

#courseSelect:focus {
  outline: none;
  border-color: #2e75b6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(46,117,182,0.14);
}

/* ── Participant counter ──────────────────────────────── */

.participant-count-display {
  text-align: center;
  margin: 0 0 20px;
  position: relative;
}

.participant-count-display .count-number {
  font-size: 4.5rem;
  font-weight: 800;
  color: #2e75b6;
  line-height: 1;
  display: block;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}

.participant-count-display .count-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fa3bc;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* ── Slider ───────────────────────────────────────────── */

.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slider-bound {
  font-size: 0.8rem;
  color: #8fa3bc;
  font-weight: 600;
  white-space: nowrap;
  min-width: 36px;
  text-align: center;
}

.slider-bound span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.7;
}

#participantSlider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background: #dde5f0; /* overridden by JS */
  border: none;
  transition: opacity 0.2s;
}

#participantSlider::-webkit-slider-thumb {
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2e75b6;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(46,117,182,0.45);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

#participantSlider::-webkit-slider-thumb:hover,
#participantSlider::-webkit-slider-thumb:active {
  transform: scale(1.18);
  box-shadow: 0 4px 16px rgba(46,117,182,0.55);
}

#participantSlider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2e75b6;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(46,117,182,0.45);
  cursor: pointer;
}

#participantSlider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: transparent;
}

/* ── Divider ──────────────────────────────────────────── */

.calc-divider {
  height: 1px;
  background: #edf0f5;
  margin: 36px 0;
}

/* ── Price panels ─────────────────────────────────────── */

.price-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

@media (max-width: 520px) {
  .price-output { grid-template-columns: 1fr; }
}

.price-panel {
  padding: 28px 24px 24px;
  border-radius: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.price-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background: repeating-linear-gradient(
    45deg,
    #ffffff 0, #ffffff 1px,
    transparent 1px, transparent 8px
  );
  pointer-events: none;
}

.price-panel.total-panel {
  background: linear-gradient(140deg, #1a3a5c 0%, #2e75b6 100%);
  color: #ffffff;
}

.price-panel.per-person-panel {
  background: linear-gradient(140deg, #c06000 0%, #f59e1b 100%);
  color: #ffffff;
}

.price-panel-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.8;
  margin-bottom: 10px;
}

.price-panel-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.price-panel-value.price-animating {
  opacity: 0.3;
  transform: scale(0.95);
}

/* ── Price note ───────────────────────────────────────── */

.price-note {
  font-size: 0.8rem;
  color: #8fa3bc;
  text-align: center;
  margin: 0;
  line-height: 1.6;
}


/* ── Pricing detail panels ─────────────────────────────── */

.pricing-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

@media (max-width: 768px) {
  .pricing-details-grid { grid-template-columns: 1fr; }
}

.pricing-detail-panel {
  background: #f8fafd;
  border: 1px solid #e1e9f2;
  border-radius: 14px;
  padding: 22px 22px 18px;
}

.pricing-detail-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2b3c;
  margin: 0 0 12px;
}

.pricing-detail-panel ul {
  margin: 0;
  padding-left: 18px;
}

.pricing-detail-panel li {
  color: #5a7a99;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.pricing-detail-panel li:last-child {
  margin-bottom: 0;
}

.included-panel {
  border-left: 4px solid #2e75b6;
}

.excluded-panel {
  border-left: 4px solid #f59e1b;
}

/* ── CTA card ─────────────────────────────────────────── */

.calc-cta-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(15, 38, 64, 0.10), 0 2px 8px rgba(15,38,64,0.05);
  padding: 40px 52px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .calc-cta-card {
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
  }
}

.cta-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a3a5c, #2e75b6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon-wrap i {
  font-size: 1.6rem;
  color: #ffffff;
  line-height: 1;
}

.cta-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cta-body p {
  font-size: 0.92rem;
  color: #5a7a99;
  margin-bottom: 22px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: #2e75b6;
  color: #ffffff;
  padding: 11px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-block;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(46,117,182,0.25);
}

.btn-cta-primary:hover {
  background: #1d588f;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(46,117,182,0.35);
}

.btn-cta-secondary {
  background: transparent;
  color: #2e75b6;
  padding: 11px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-block;
  border: 2px solid #2e75b6;
  transition: background 0.2s, color 0.2s;
}

.btn-cta-secondary:hover {
  background: #2e75b6;
  color: #ffffff;
  text-decoration: none;
}

/* ── "Contact for pricing" state ─────────────────────── */

.price-on-request {
  background: linear-gradient(140deg, #f3f6fb, #e8eef6);
  border: 2px dashed #b8cce0;
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  margin-bottom: 28px;
}

.price-on-request i {
  font-size: 2rem;
  color: #2e75b6;
  margin-bottom: 10px;
  display: block;
}

.price-on-request p {
  margin: 0;
  color: #3d5a7a;
  font-size: 0.95rem;
  line-height: 1.6;
}

.price-on-request strong {
  color: #1a3a5c;
}
