/* ===============================
   COMPARE PLAN – REDESIGN (SAFE)
================================ */

.cp-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, #f7faf9, #ffffff);
  font-family: "Montserrat", sans-serif;
}

.cp-container {
  max-width: 1150px;
  margin: auto;
  text-align: center;
}

/* Badge */
.cp-badge {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #2a7f67;
  color: #2a7f67;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* Title */
.cp-title {
  font-size: 40px;
  line-height: 1.3;
  margin: 22px 0 50px;
  color: #083b32;
  font-weight: 700;
}

/* Tabs */
.cp-tabs {
  display: inline-flex;
  background: #e9f1ee;
  border-radius: 50px;
  padding: 6px;
  gap: 6px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.cp-tab {
  padding: 12px 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: #0b3b32;
  border-radius: 40px;
  transition: all 0.3s ease;
}

.cp-tab:hover {
  background: rgba(42, 127, 103, 0.12);
}

.cp-tab.cp-active {
  background: linear-gradient(90deg, #1e3a8a, #facc15);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(42, 127, 103, 0.3);
}

/* Content */
.cp-content {
  display: none;
  animation: cpFadeUp 0.45s ease;
}

.cp-content.cp-active {
  display: block;
}

@keyframes cpFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Headings */
.cp-heading {
  font-size: 24px;
  margin-bottom: 6px;
  color: #083b32;
  font-weight: 700;
}

.cp-subtext {
  color: #6b7d78;
  margin-bottom: 40px;
  font-size: 14px;
}

/* ===============================
   PLAN LEVEL LEGEND
================================ */

.cp-plan-legend {
  display: flex;
  justify-content: space-between;
  max-width: 550px;
  margin: 30px auto 0;
  padding: 14px 18px;
  background: #f1f6f4;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #0b3b32;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cp-plan-legend span {
  flex: 1;
  text-align: center;
  line-height: 1.8;
}

/* Hover effect on plan legend */
.cp-plan-legend:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Labels */
.cp-bar span {
  position: absolute;
  bottom: -32px;
  color: #233b36;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

/* Location Map */
.cp-map-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.cp-map-image {
  max-width: 700px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cp-map-image:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.cp-map-legend {
  display: flex;
  justify-content: space-between;
  max-width: 700px;
  margin: 30px auto 0;
  padding: 12px 16px;
  background: #f1f6f4;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #0b3b32;
}

.cp-map-legend span {
  flex: 1;
  text-align: center;
}

/* Age Tab Image */
.cp-age-image-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.cp-age-image {
  max-width: 720px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cp-age-image:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Company Tab Image */
.cp-company-image-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.cp-company-image {
  max-width: 740px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cp-company-image:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* ===============================
   RESPONSIVE STYLES
================================ */
@media (max-width: 1024px) {
  .cp-title {
    font-size: 32px;
  }

  .cp-heading {
    font-size: 22px;
  }

  .cp-plan-legend {
    max-width: 90%;
  }

  .cp-map-legend {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .cp-tabs {
    flex-direction: row;
    gap: 10px;
  }

  .cp-plan-legend,
  .cp-map-legend {
    flex-direction: row;
    gap: 8px;
  }

  .cp-plan-legend span,
  .cp-map-legend span {
    text-align: center;
    padding: 8px 0;
  }

  .cp-title {
    font-size: 28px;
  }

  .cp-heading {
    font-size: 20px;
  }

  .cp-subtext {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cp-title {
    font-size: 24px;
  }

  .cp-heading {
    font-size: 18px;
  }

  .cp-subtext {
    font-size: 12px;
  }

  .cp-tab {
    padding: 10px 16px;
    font-size: 14px;
  }

  .cp-plan-legend,
  .cp-map-legend {
    font-size: 12px;
    padding: 10px;
  }
}
