.plans {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.plans-content {
  width: 100%;
  max-width: 1200px;
  padding: 32px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease-out;
}


.plans h2 {
  text-align: center;
  margin: 0 auto 1.5rem;
  color: #333;
  font-size: 1.5rem;
}


.plan-options-container {
display: flex;
gap: 1rem;
justify-content: space-between;
flex-wrap: wrap;
}

.plan-option {
background: white;
flex: 1 1 30%;
min-width: 250px;
max-width: 450px;
box-sizing: border-box;
text-align: center;
padding: 32px;
border-radius: 32px;

box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

display: flex;
flex-direction: column;
justify-content: space-between;
}


.plan-option:hover {
  border-color: #49505E;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(74, 108, 247, 0.1);
}

.plan-option h3 {
  color: #222;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.plan-option h4 {
  color: #222;
  margin-top: 36px;
  font-size: 1rem;
  font-weight: 500;
}

.plan-option p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.plan-option img {
  width: 80px;
}

.plan-benefits {
list-style: none;
padding: 0;
margin: 0 0 1rem;
}

.plan-benefits li {
position: relative;
padding-left: 1.5rem;
margin-bottom: 0.5rem;
color: #444;
font-size: 0.95rem;
}

.plan-benefits li::before {
content: "✔";
position: absolute;
left: 0;
color: #49505E;
font-size: 0.9rem;
}

.select-plan {
  margin-top: 12px;
  background-color: #49505E;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 400;
  width: 100%;
  transition: background 0.2s;
  font-size: 16px;
}

.select-plan:hover {
  background-color: #49505E;
}

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

@media (max-width: 600px) {
  .plans-content {
    padding: 1.5rem;
    width: 95%;
    max-width: 100%;
    margin: 0 auto; /* ← dalej centruj */
  }

  .plan-options-container {
    flex-direction: column;
    align-items: center;
  }

  .plan-option {
      padding: 1.2rem;
  }

  .plans h2 {
    font-size: 1.25rem;
    text-align: center; /* ← upewnij się, że dalej jest */
  }
}



.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;

  color: black;
}

.register {
  display: flex;
  flex-direction: column;
}


/* Style dla przełącznika */
.billing-toggle {
display: flex;
align-items: center;
justify-content: center;
margin: 1rem 0 2rem;
gap: 1rem;
}

.billing-option {
font-weight: 500;
color: #666;
cursor: pointer;
transition: color 0.2s;
}

.billing-option.active {
color: #4a6cf7;
font-weight: 600;
}

.toggle-switch {
position: relative;
display: inline-block;
width: 50px;
height: 24px;
}

.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}

.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 24px;
}

.slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}

input:checked + .slider {
background-color: #4a6cf7;
}

input:checked + .slider:before {
transform: translateX(18px);
}

/* Dodatkowe style dla planów */
.plan-option {
position: relative;
}

.year-savings {
position: absolute;
top: 10px;
right: 10px;
background: #4a6cf7;
color: white;
padding: 0.2rem 0.5rem;
border-radius: 4px;
font-size: 0.8rem;
}