/**
 * Style dla modalu wyboru pakietu - nowa wersja
 */

/* Ogólne style modalu */
.modal-backdrop.show {
  opacity: 0.8;
}

#planSelectionModal.modal {
  z-index: 1050;
}

#planSelectionModal .modal-dialog {
  max-width: 460px;
  margin: 1.75rem auto;
}

/* Zawartość modalu */
.plan-modal-content {
  position: relative;
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Przycisk zamknięcia */
.plan-modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 10;
  cursor: pointer;
  transition: background-color 0.2s;
}

.plan-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.plan-modal-close svg {
  width: 20px;
  height: 20px;
}

/* Nagłówek modalu */
.plan-modal-header {
  background-color: #540C97;
  color: white;
  padding: 30px 25px 25px;
  text-align: center;
  position: relative;
  border-radius: 16px 16px 0 0;
}

/* Różne kolory dla różnych pakietów */
.plan-modal-header.plan-basic {
  background: linear-gradient(135deg, #FFA500, #FF8C00);
}

.plan-modal-header.plan-premium {
  background: linear-gradient(135deg, #540C97, #7B2CBF);
}

.plan-modal-header.plan-individual {
  background: linear-gradient(135deg, #9B59B6, #8E44AD);
}

/* Neutralny kolor dla formularza bez określonego pakietu */
.plan-modal-header.plan-neutral {
  background: linear-gradient(135deg, #2C3E50, #34495E);
}

/* Wrapper dla ikony */
.plan-selection-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* Ikona pakietu */
.plan-selection-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.plan-selection-icon svg {
  width: 40px;
  height: 40px;
}

/* Ikony dla różnych pakietów */
.plan-basic .plan-selection-icon svg {
  color: #FFA500;
}

.plan-premium .plan-selection-icon svg {
  color: #540C97;
}

.plan-individual .plan-selection-icon svg {
  color: #9B59B6;
}

.plan-neutral .plan-selection-icon svg {
  color: #3498DB;
}

/* Tytuł i opis */
.plan-modal-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.plan-modal-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 0;
  padding: 0 15px;
}

/* Treść modalu */
.plan-modal-body {
  padding: 25px;
  background-color: white;
}

/* Formularz */
.plan-form {
  margin-top: 5px;
}

.plan-form .form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
}

.plan-form .form-group {
  margin-bottom: 20px;
  padding: 0 10px;
  position: relative;
  flex: 0 0 100%;
}

.plan-form .col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.plan-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.plan-form .input-icon-wrapper {
  position: relative;
}

.plan-form .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  width: 16px;
  height: 16px;
}

.plan-form-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.plan-form-input:focus {
  border-color: #540C97;
  outline: none;
  box-shadow: 0 2px 10px rgba(84, 12, 151, 0.1);
}

.plan-form-input::placeholder {
  color: #aaa;
}

/* Notatka o bezpieczeństwie */
.plan-form-security-note {
  font-size: 12px;
  color: #777;
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stopka modalu */
.plan-modal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 15px;
}

/* Przyciski */
.plan-submit-button {
  min-width: 150px;
  padding: 12px 20px;
}

/* Responsywność */
@media (max-width: 576px) {
  #planSelectionModal .modal-dialog {
    max-width: 100%;
    margin: 0.5rem;
  }
  
  .plan-modal-header {
    padding: 25px 15px 20px;
  }
  
  .plan-selection-icon {
    width: 70px;
    height: 70px;
  }
  
  .plan-selection-icon svg {
    width: 35px;
    height: 35px;
  }
  
  .plan-modal-title {
    font-size: 22px;
  }
  
  .plan-modal-description {
    font-size: 14px;
    padding: 0 5px;
  }
  
  .plan-modal-body {
    padding: 20px 15px;
  }
  
  .plan-form .form-group {
    margin-bottom: 15px;
  }
  
  .plan-form .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .plan-form-input {
    padding: 10px 10px 10px 35px;
  }
  
  .plan-modal-footer {
    flex-direction: column;
  }
  
  .plan-modal-footer .button {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Animacja wejścia modalu */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out, opacity 0.2s ease;
  transform: translateY(-20px);
  opacity: 0;
}

.modal.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}