@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@700&family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: rgb(204, 204, 204);
  flex-direction: column;
  gap: 20px;
  padding: 40px 0;
}

.price-details i {
  font-size: 48px;
  margin-bottom: 8px;
}

.wrapper {
  width: 300px;
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 10px 10px 15px rgba(0,0,0,0.05);
  position: relative;
}

/* Tab Header */
.wrapper header {
  height: 55px;
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 30px;
  position: relative;
  margin-bottom: 20px;
}

header label {
  height: 100%;
  z-index: 2;
  width: 60%;
  display: flex;
  cursor: pointer;
  font-size: 18px;
  position: relative;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

header label:nth-child(2) {
  width: 40%;
}

header .slider {
  position: absolute;
  height: 85%;
  border-radius: inherit;
  background: linear-gradient(145deg, #4EA473 0%, #6A75B1 100%);
  transition: all 0.3s ease;
}

/* Hide radio buttons */
.wrapper input[type="radio"] {
  display: none;
}

/* Active tab color */
.wrapper input[id$="-1"]:checked ~ header .tab-1,
.wrapper input[id$="-2"]:checked ~ header .tab-2,
.wrapper input[id$="-3"]:checked ~ header .tab-3 {
  color: #fff;
}

/* Slider movement */
.wrapper input[id$="-1"]:checked ~ header .slider {
  left: 2%;
  width: 70px;
  transform: translateX(5%);
}
.wrapper input[id$="-2"]:checked ~ header .slider {
  left: 50%;
  width: 65px;
  transform: translateX(-50%);
}
.wrapper input[id$="-3"]:checked ~ header .slider {
  left: 100%;
  width: 85px;
  transform: translateX(-105%);
}

/* Card area & tab content */
.card-area {
  overflow: hidden;
}
.card-area .cards {
  display: flex;
  width: 300%;
}
.cards .row {
  width: 33.4%;
}
.cards .row-1 {
  transition: all 0.3s ease;
}

/* Tab content switching */
.wrapper input[id$="-1"]:checked ~ .card-area .cards .row-1 {
  margin-left: 0%;
}
.wrapper input[id$="-2"]:checked ~ .card-area .cards .row-1 {
  margin-left: -33.4%;
}
.wrapper input[id$="-3"]:checked ~ .card-area .cards .row-1 {
  margin-left: -66.8%;
}

/* Price Details */
.row .price-details {
  margin: 20px 0;
  text-align: center;
  padding-bottom: 25px;
  border-bottom: 1px solid #e6e6e6;
}
.price-details .price {
  font-size: 65px;
  font-weight: 600;
  position: relative;
  font-family: 'Noto Sans', sans-serif;
}
.price-details .price::before,
.price-details .price::after {
  position: absolute;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
}
.price-details .price::before {
  content: "$";
  left: -13px;
  top: 17px;
  font-size: 20px;
}
.price-details .price::after {
  content: "/mon";
  right: -33px;
  bottom: 17px;
  font-size: 13px;
}
.price-details p {
  font-size: 18px;
  margin-top: 5px;
}

/* Features */
.row .features li {
  display: flex;
  font-size: 15px;
  list-style: none;
  margin-bottom: 10px;
  align-items: center;
}
.features li i {
  background: linear-gradient(#4EA473 0%, #6A75B1 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.features li span {
  margin-left: 10px;
}

/* Button */
.wrapper button {
  width: 100%;
  border-radius: 25px;
  border: none;
  outline: none;
  height: 50px;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  margin-top: 20px;
  background: linear-gradient(145deg, #4EA473 0%, #6A75B1 100%);
  transition: transform 0.3s ease;
}
.wrapper button:hover {
  transform: scale(0.98);
  transition: all 0.5s ease;
  border: solid 1px #6A75B1;
  background: none;
  color: #6A75B1;
}

.back-arrow {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #ffffff;
  color: #4EA473;
  border: 2px solid #4EA473;
  padding: 10px 18px 10px 14px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(30,144,255,0.2);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-arrow:hover {
  background-color: #4EA473;
  color: #fff;
  transform: translateX(-2px);
  box-shadow: 0 6px 20px rgba(30,144,255,0.3);
}

.back-arrow .icon {
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.back-arrow:hover .icon {
  transform: translateX(-2px);
}

@media (max-width: 600px) {
  .back-arrow {
    top: 10px;
    left: 10px;
    padding: 8px 14px;
    font-size: 14px;
    margin-bottom: 2rem;
  }
}