.pt-modal-container.pt-open {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body:has(.pt-modal-container.pt-open) {
  overflow: hidden;
}

.pt-modal-container {
  display: none;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999999;
  top: 0;
  left: 0;
  position: fixed;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

.pt-modal-container .pt-modal {
  max-width: 75vw;
  max-height: 80%;
  width: 600px;
  padding: 20px;
  overflow-y: scroll;
  background-color: white;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  padding: 40px;
  font-size: 14px;
  border-radius: 11px;
  position: relative;
}

/* Mobile: keep modals inside the viewport with internal scroll. Many modals set an
   inline px width (e.g. width:600px) or a maxWidth via JS, so override with !important
   to beat that inline specificity. */
@media (max-width: 600px) {
  .pt-modal-container .pt-modal {
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px) !important;
    padding: 22px !important;
    box-sizing: border-box;
    overflow-y: auto;
  }
}

.pt-modal-close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  color: #000;
  cursor: pointer;
  transform: scale(0.7);
}

/* Facility Modal */
.pt-modal-facilty-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  place-content: center;
  justify-content: center;
}
.pt-modal-facilty-image > img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
/* Google Maps embed fallback when a facility has no uploaded photo */
.pt-modal-facilty-map {
  width: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

/* Level Modal */
.pt-modal-criteria-list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.pt-modal-criteria-item {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.4;
}

.pt-modal-criteria-item label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 10px;
}

.pt-modal-criteria-checkbox {
  transform: scale(1.2);
  margin-top: 2px;
  cursor: pointer;
}

.pt-level-modal-cta {
    background-color: var(--green);
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    display: block;
    border-radius: 25px;
    text-align: center;
    margin: 15px auto 0;
    width: fit-content;
    font-weight: 600;
    font-size: 16px;
}

/* Disabled state */
.pt-level-modal-cta.disabled {
  background: #cccccc !important;
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

/* Self-assessment instruction + disabled-reason hint */
.pt-level-modal-intro {
  margin: 6px 0 0;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}

.pt-level-modal-hint {
  margin: 10px auto 0;
  color: #888;
  font-size: 13px;
  text-align: center;
}

/* Hint only shows while the CTA is disabled (boxes not all checked) */
.pt-level-modal-cta:not(.disabled) + .pt-level-modal-hint {
  display: none;
}

/* Promo Callout */
.pt-promo-callout {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s ease;
}

.pt-promo-callout:hover {
  opacity: 0.8;
}

.pt-promo-callout-text {
  text-decoration: underline;
}

.pt-promo-callout:hover .pt-promo-callout-text {
  text-decoration: none;
}

/* Promo Callout Color Variants */
.pt-promo-callout--red {
  color: #d32f2f;
}

.pt-promo-callout--blue {
  color: #1976d2;
}

.pt-promo-callout--green {
  color: #2e7d32;
}

.pt-promo-callout--orange {
  color: #e65100;
}

.pt-promo-callout--purple {
  color: #6a1b9a;
}

/* Promo Expiration Pill */
.pt-promo-expiration {
  display: block;
  background-color: #e0e0e0;
  color: #666;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  margin-top: 8px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-transform: none;
  text-decoration: none !important;
}

/* Promo Modal */
.pt-modal-container[data-promo-modal] {
  z-index: 9999999; /* Higher than level modals to appear on top */
}

/* Waitlist modal - highest z-index to layer above all other modals */
#pt-waitlist-modal {
  z-index: 99999999;
}

.pt-promo-modal-content {
  margin-bottom: 20px;
  line-height: 1.6;
}

.pt-promo-terms {
  font-size: 12px;
  font-style: italic;
  color: #666;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

/* Level Guide Modal */
.pt-lg-modal {
  width: 750px;
  max-width: 90vw;
}

.pt-lg-modal h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.pt-lg-subtitle {
  color: #666;
  margin: 0 0 20px;
  font-size: 14px;
}

.pt-lg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e0e0e0;
}

.pt-lg-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
}

.pt-lg-tab:hover {
  color: #333;
}

.pt-lg-tab-active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.pt-lg-panel {
  display: none;
}

.pt-lg-panel-active {
  display: block;
}

.pt-lg-section {
  margin-bottom: 22px;
}

.pt-lg-section:last-of-type {
  margin-bottom: 0;
}

.pt-lg-section-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pt-lg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 600px) {
  .pt-lg-grid {
    grid-template-columns: 1fr;
  }
}

.pt-lg-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  background: #fafafa;
}

.pt-lg-card-header {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  color: #222;
}

.pt-lg-criteria {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.pt-lg-criteria li {
  font-size: 13px;
  line-height: 1.5;
  color: #444;
  margin-bottom: 4px;
}

.pt-lg-resources {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
}

.pt-lg-resources span {
  font-weight: 600;
  color: #333;
}

.pt-lg-resources a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--green);
}

.pt-lg-resources a:hover {
  opacity: 0.7;
}

.pt-lg-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #555;
}

.pt-lg-footer a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--green);
}

.pt-lg-footer a:hover {
  opacity: 0.7;
}

