/* Brand overrides for AltCal legacy page */

:root {
  --brand: #FDBE00;
  --brand-dark: #e5aa00;
  --brand-soft: rgba(253, 190, 0, 0.15);
}

/* Kill Bootstrap blue on pills / tabs */
.nav-pills .nav-link {
  color: #f8f9fa;
  border-radius: 0;
  padding: 0.6rem 1rem;
  margin-bottom: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-pills .nav-link:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--brand) !important;
  color: #111 !important;
  font-weight: 600;
}

/* Selection bar (left column) – control right margin */
.bs-tabs-vertical .col-4,
.bs-tabs-vertical .col-md-4 {
  padding-right: 1.25rem;
}

/* Content bounding box – increase left margin so it lines up with the button above */
.bs-tabs-vertical .col-8,
.bs-tabs-vertical .col-md-8 {
  padding-left: 2.5rem;
}

/* Tighten internal padding of the yellow-bordered box */
.bs-tabs-vertical .tab-content {
  padding: 1.25rem 1.5rem !important;
  border-width: 1px !important;
  border-color: var(--brand) !important;
}

/* Reduce extra space inside tab panes */
.bs-tabs-vertical .tab-pane p:last-child {
  margin-bottom: 0;
}
.bs-tabs-vertical .tab-pane ul {
  margin-bottom: 0.75rem;
}

/* Form popup — fixed overlay */
.form-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.form-popup.open {
  display: flex !important;
}
.form-popup .form-container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.form-popup .form-container h4 {
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.form-popup .form-container input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
}
.form-popup .form-container .btn {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  background: #1e293b;
  color: #fbbf24;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.form-popup .form-container .btn.cancel {
  background: #e2e8f0;
  color: #475569;
  width: auto;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 1rem;
}

/* Mobile popup */
@media (max-width: 576px) {
  .form-popup {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    align-items: flex-end;
  }
  .form-popup .form-container {
    width: 100%;
    max-width: none;
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 16px 16px 12px 12px;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .form-popup .form-container h4 {
    font-size: 1.15rem;
    padding-right: 2rem;
    margin-bottom: 1rem;
  }
  .form-popup .form-container input {
    font-size: 16px; /* prevents iOS zoom */
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
  }
  .form-popup .form-container .btn {
    padding: 0.9rem;
    font-size: 1rem;
    min-height: 48px;
  }
  .form-popup .form-container .btn.cancel {
    top: 0.6rem;
    right: 0.6rem;
    min-height: auto;
    padding: 0.35rem 0.65rem;
  }
}

.schedule-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}
.schedule-wrap > img.img-fluid {
  display: block;
  width: 100%;
  height: auto;
}
.sched-icon {
  position: absolute !important;
  width: 36px !important;
  height: 36px !important;
  object-fit: contain;
  z-index: 5;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.sched-icon-1 { right: 5% !important; top: 18% !important; left: auto !important; }
.sched-icon-2 { right: 5% !important; top: 44% !important; left: auto !important; }
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 1.5rem;
  font-size: 0.95rem;
}
.site-footer .footer-main {
  margin-bottom: 2.5rem;
}
.site-footer .footer-col {
  margin-bottom: 2rem;
}
.site-footer .footer-heading {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer .footer-text {
  line-height: 1.65;
  margin: 0;
  max-width: 280px;
}
.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-links li {
  margin-bottom: 0.45rem;
}
.site-footer .footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer .footer-links a:hover {
  color: var(--brand);
}
.site-footer .footer-download img {
  max-width: 160px;
  height: auto;
  display: block;
}
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Feature slides — alignment + hover */
.feature-slide {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  height: 100%;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.feature-slide img.bs-glow-warning {
  max-width: 180px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-slide:hover img.bs-glow-warning {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(253, 190, 0, 0.55);
  border-radius: 8px;
}
.feature-slide img[style*="max-width:64px"] {
  margin-left: auto;
  margin-right: auto;
  display: block;
}
@media (max-width: 767px) {
  .feature-slide { padding: 1rem; }
  .feature-slide h2 { font-size: 1.25rem; }
  .feature-slide img.bs-glow-warning { max-width: 140px; }
}
.owl-nav { text-align: center; margin-top: 1rem; }
.owl-nav button {
  background: #1e293b !important;
  color: #fbbf24 !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 6px;
  border: none;
}
.owl-dots { text-align: center; margin-top: 1rem; }
.owl-dots .owl-dot span {
  background: #cbd5e1;
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  margin: 0 4px;
}
.owl-dots .owl-dot.active span { background: #fbbf24; }

/* Paired media rows */
.media-pair {
  max-height: 420px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.media-pair:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}
