/**
 * Nowy zmodernizowany styl sekcji cennika dla PremiumOpinie.pl
 * Stworzone na podstawie zrzutu ekranu
 */

/* Sekcja główna */
#oferta.section.section__light-purple {
  background-color: #f9f5ff;
  padding: 70px 0 100px 0; /* Zmniejszony padding dolny */
  overflow: visible;
  margin-bottom: 80px; /* Zoptymalizowany margines dolny */
  position: relative;
  z-index: 1; /* Dodany z-index */
  min-height: 700px; /* Minimalna wysokość sekcji */
}

/* Poprawka na ucięcie sekcji */
#oferta::after {
  content: '';
  position: absolute;
  bottom: -60px; /* Zwiększona wysokość */
  left: 0;
  width: 100%;
  height: 60px; /* Zwiększona wysokość */
  background-color: #f9f5ff;
  z-index: -1; /* Ustawiony na warstwę poniżej */
}

/* Nagłówek sekcji */
#oferta .section__heading--label {
  color: #00C070;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 18px;
  margin-bottom: 10px;
  display: block;
}

#oferta .section__heading--title {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 50px;
  position: relative;
}

#oferta .section__heading--title:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 80px;
  height: 3px;
  background: #540C97;
}

/* Kontener kart */
.pricing-cards-container {
  margin-top: 60px;
  margin-bottom: 30px; /* Dodany margines dolny */
  position: relative; /* Pozycjonowanie względne */
  z-index: 2; /* Wyższy z-index niż tło sekcji */
  padding-bottom: 20px; /* Dodatkowy padding na dole */
}

/* Efekt przesunięcia dla karty Premium (środkowej) */
@media (min-width: 992px) {
  #pricing-premium.pricing-card {
    transform: translateY(-20px); /* Karta premium jest trochę wyżej */
  }
  
  #pricing-premium.pricing-card:hover {
    transform: translateY(-25px); /* Efekt hover uwzględnia początkowe przesunięcie */
  }
}

/* Karty cenowe */
.pricing-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  padding: 30px;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 60px; /* Zwiększony margines dolny */
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Karta premium - fioletowa */
.pricing-card.premium {
  background: #540C97;
  color: white;
}

/* Ikony */
.pricing-icon-container {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 10px; /* Dodany margines górny dla lepszego umiejscowienia */
  height: 80px; /* Ustalona wysokość kontenera */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* Upewniamy się, że ikona nie jest obcięta */
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  z-index: 2; /* Zwiększamy z-index, aby upewnić się, że kółko jest na wierzchu */
  position: relative; /* Potrzebne dla z-index */
  overflow: visible; /* Upewniamy się, że ikona nie jest obcięta */
}

.icon-circle svg {
  width: 30px;
  height: 30px;
}

.icon-circle.yellow {
  background-color: #FFF6E5;
  color: #FFA500;
  box-shadow: 0 0 0 10px rgba(255, 246, 229, 0.3);
}

.icon-circle.green {
  background-color: #E8F8F0;
  color: #2ECC71;
  box-shadow: 0 0 0 10px rgba(232, 248, 240, 0.3);
}

.icon-circle.purple {
  background-color: #F0E5FF;
  color: #9B59B6;
  box-shadow: 0 0 0 10px rgba(240, 229, 255, 0.3);
}

/* Tytuły i napisy */
.pricing-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 5px;
  color: #333;
}

.pricing-card.premium .pricing-title {
  color: white;
}

.pricing-subtitle {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 20px;
}

.pricing-card.premium .pricing-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Lista cech */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.pricing-features li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
  color: #555;
  font-size: 15px;
  line-height: 1.5;
}

.pricing-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  color: #00C070;
  font-weight: bold;
}

.pricing-card.premium .pricing-features li {
  color: white;
}

.pricing-card.premium .pricing-features li:before {
  color: #2ECC71;
}

/* Przyciski */
.pricing-action {
  text-align: center;
}

.pricing-button {
  background: #540C97;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.pricing-button:hover {
  background: #7B2CBF;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(84, 12, 151, 0.3);
  color: white;
  text-decoration: none;
}

.pricing-card.premium .pricing-button {
  background: white;
  color: #540C97;
}

.pricing-card.premium .pricing-button:hover {
  background: #f8f8f8;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
  color: #540C97;
}

/* Styl dla informacji o wybranym planie w formularzu */
.selected-plan-info {
  background-color: #f8f4ff;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  margin-bottom: 15px;
  text-align: center;
  border: 1px solid #e0d8eb;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.selected-plan-info strong {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-size: 14px;
}

.selected-plan-info span {
  color: #540C97;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.selected-plan-info svg {
  margin-right: 8px;
}

/* Styl dla formularza po wybraniu pakietu */
.masthead__form.plan-selected {
  animation: formHighlight 1.5s ease;
  box-shadow: 0 10px 40px rgba(84, 12, 151, 0.15);
}

@keyframes formHighlight {
  0% { box-shadow: 0 10px 40px rgba(84, 12, 151, 0.05); }
  50% { box-shadow: 0 10px 40px rgba(84, 12, 151, 0.3); }
  100% { box-shadow: 0 10px 40px rgba(84, 12, 151, 0.15); }
}

/* Responsywność */
@media (max-width: 992px) {
  .pricing-card {
    margin-bottom: 30px;
  }
  
  #oferta .section__heading--title {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  #oferta.section.section__light-purple {
    padding: 50px 0 140px 0; /* Dostosowany padding dla mobilnych */
    margin-bottom: 80px;
  }
  
  #oferta .section__heading--label {
    font-size: 16px;
  }
  
  #oferta .section__heading--title {
    font-size: 26px;
  }
  
  .pricing-card {
    padding: 25px 20px;
    margin-bottom: 40px; /* Mniejszy margines na mobilnych */
  }
  
  /* Dodatkowy styl dla wybranego planu w formularzu (mobilne) */
  .selected-plan-info {
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 8px;
  }
  
  .selected-plan-info strong {
    font-size: 13px;
  }
  
  .selected-plan-info span {
    font-size: 16px;
  }
}