.package-detail-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);

  /* Initial state: Hidden and non-interactive */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.package-detail-modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.package-detail-modal {
  background: #fff;
  width: 90%;
  max-width: 1280px;
  height: 90vh;
  border-radius: 20px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Initial state: Scale down */
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.package-detail-modal-overlay.show .package-detail-modal {
  transform: scale(1);
}

.package-detail-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.package-detail-modal-header h3 {
  margin: 0;
  color: #030303;
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.package-detail-modal-close {
  background: none;
  border: none;
  color: #030303;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.package-detail-modal-body {
  padding: 30px;
  overflow-y: auto;
  flex-grow: 1;
  background-color: #fafafa;
}

.package-detail-item {
  background: #f2f2f2;
  border-radius: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  padding: 5px;
}

.package-detail-item-header {
  background: transparent;
  padding: 2px 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.package-detail-item-header .title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.package-detail-modal-header h3 {
  text-align: center;
  flex-grow: 2;
}

.package-detail-item-header h4 {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #030303;
  text-transform: uppercase;
}

.package-detail-item-header .subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #030303;
  margin: 0;
  text-transform: capitalize;
}

.package-detail-item-header .price {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-size: 34px;
  color: #e63822;
  margin: 0;
}

.package-detail-item-body {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 35px;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}

.package-detail-summary-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px 40px;
  width: 500px;
  flex-shrink: 0;
}

.summary-info-block {
  display: flex;
  flex-direction: column;
  width: calc(50% - 20px);
}

.summary-info-label {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.summary-info-value {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #4d4d4d;
  text-transform: capitalize;
}

.package-detail-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.feature-list-title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

.feature-list-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

.feature-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.feature-item-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .feature-item-icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
  }
  .feature-item-icon > img {
    width: 12px;
    height: 12px;
  }
}

.feature-item-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #030303;
  text-transform: uppercase;
}

.btn-see-detail {
  background: none;
  border: none;
  color: #e63822;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.summary-header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .package-detail-modal-header {
    padding: 15px;
  }

  .package-detail-modal-header h3 {
    font-size: 18px;
  }

  .package-detail-item-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
  }

  .package-detail-item-header h4 {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    color: #030303;
  }

  .package-detail-item-header .subtitle {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 130%;
    color: #030303;
  }

  .package-detail-item-header .price {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #e63822;
  }

  .package-detail-item-body {
    flex-direction: column;
    padding: 16px;
    gap: 20px;
  }

  .package-detail-summary-info {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .summary-info-block {
    width: calc(50% - 15px);
  }

  .summary-info-label {
    font-size: 10px;
  }

  .summary-info-value {
    font-family: "Lato", sans-serif;
    font-size: 12px;
    font-weight: 700;
  }

  .feature-list-title {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .feature-item-text {
    font-size: 9px;
  }

  .feature-list-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
}
