/*----------------------
# HP V2 Plan Section
------------------------------*/
.hp-v2-plan {
  padding: 0;
  background: #FFFFFF;
}

.hp-v2-plan .hp-v2-section-title {
  margin-bottom: 20px;
}

.plan-subtitle {
  color: #221E1F;
  line-height: 1.6;
  margin-bottom: 40px;
  font-family: 'Lato', sans-serif;
}

/*----------------------
# Plan Grid
------------------------------*/
.plan-grid-wrapper {
  margin-bottom: 40px;
  padding: 0 30px;
  position: relative;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 20px;
}

.plan-card {
  padding: 40px 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
}

/* Color variations */
.plan-card-yellow1 {
  background: #C6EAFA;
}

.plan-card-yellow2 {
  background: #A0C9EB;
}

.plan-card-orange {
  background: #5BA8DC;
}

.plan-card-green1 {
  background: #2783C5;
}

.plan-card-title {
  font-size: 24px;
  font-weight: bold;
  color: #221E1F;
  margin: 0 0 15px 0;
  line-height: 1.3;
  font-family: 'Lato', sans-serif;
}

.plan-card-exp {
  color: #221E1F;
  margin: 0 0 30px 0;
  font-family: 'Lato', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.plan-card-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 50px;
}

.price-original {
  font-size: 24px;
  font-weight: bold;
  color: #221E1F;
  font-family: 'Lato', sans-serif;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.price-original::after {
  content: '';
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  height: 2px;
  background: #FF0000;
  transform: translateY(-50%) rotate(-10deg);
  transform-origin: center;
}

.price-currency {
  font-size: 24px;
  font-weight: bold;
  color: #221E1F;
  font-family: 'Lato', sans-serif;
}

.plan-card-price-discount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 70px;
}

.price-discount {
  font-size: 26px;
  font-weight: bold;
  color: #221E1F;
  font-family: 'Lato', sans-serif;
}

/*----------------------
# Discount Banner Overlay
------------------------------*/
.plan-discount-banner-overlay {
  position: absolute;
  top: 185px;
  left: 50px;
  right: 50px;
  background: #EE4056 !important;
  color: white !important;
  text-align: center;
  padding: 15px 20px;
  font-size: 26px;
  font-weight: bold;
  font-family: 'Lato', sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4);
  z-index: 999;
  display: block !important;
  visibility: visible !important;
}

/* Plan Disclaimer */
.plan-disclaimer {
  margin-top: 30px;
  text-align: center;
}

@media (max-width: 768px) {
  .plan-disclaimer {
    font-size: 13px;
    padding: 10px 8px;
    max-width: 98vw;
  }
}

@media (max-width: 480px) {
  .plan-disclaimer {
    font-size: 12px;
    padding: 8px 4px;
    max-width: 100vw;
  }
}

/*----------------------
# CTA Buttons
------------------------------*/
.plan-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Button styles inherited from common-button.css */
.plan-cta-buttons .btn-common2 {
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  font-size: 24px !important;
  color: #221E1F;
  height: 70px !important;
  line-height: normal !important;
  padding: 8px 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Download button specific styles */
.plan-cta-buttons .plan-btn-download {
  flex-direction: column !important;
  gap: 0px !important;
  width: 300px !important;
}

.plan-cta-buttons .plan-btn-download .btn-subtitle {
  font-size: 16px;
  font-weight: bold;
  display: block;
  line-height: 1;
  white-space: nowrap;
}

.plan-cta-buttons .plan-btn-download strong {
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

.plan-cta-buttons .btn-common2::after {
  background-color: #FFC13A;
}

/* Download button - Orange background */
.plan-cta-buttons .plan-btn-download::after {
  background-color: #FF9933;
}

/* Consultation button - Yellow background */
.plan-cta-buttons .plan-btn-consultation::after {
  background-color: #FFC13A;
}

/*----------------------
# Responsive Styles
------------------------------*/

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .plan-subtitle {
    font-size: 18px;
    margin: 0 0 30px 0;
  }

  .plan-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0 10px;
  }

  .plan-card {
    padding: 30px 10px;
  }

  .plan-card-title {
    font-size: 24px;
  }

  .plan-card-exp {
    font-size: 16px;
  }

  .price-original,
  .price-discount {
    font-size: 18px;
  }

  .price-currency {
    font-size: 16px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .hp-v2-plan {
    padding-bottom: 0px;
    margin-bottom: 0px !important;
  }

  .plan-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 15px 20px 15px;
    margin: 0 -15px;
  }

  .plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 160px);
    /* Fixed width for scrolling */
    gap: 0 8px;
    width: max-content;
    position: relative;
  }

  .plan-card-title {
    font-size: 16px;
  }

  .plan-card-exp {
    font-size: 16px;
  }

  .price-original,
  .price-discount {
    font-size: 16px;
  }

  .price-currency {
    font-size: 16px;
  }

  .plan-disclaimer {
    font-size: 16px;
    padding: 10px 8px;
    max-width: 98vw;
  }

  .plan-discount-banner-overlay {
    top: 135px;
    left: 0;
    width: 100%;
    right: auto;
    padding: 10px;
    font-size: 16px;
  }
}
