/* Modal de Assinatura - Estilo inspirado nos princípios de design de Steve Jobs */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--color-white);
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  position: relative;
  text-align: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-body {
  padding: 2rem;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.payment-option {
  background-color: #f9f9f9;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.payment-option:hover {
  border-color: var(--color-primary);
  background-color: #f5f9f5;
}

.payment-option.selected {
  border-color: var(--color-primary);
  background-color: #f0f8f0;
}

.payment-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.payment-option-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-black);
}

.payment-option-price {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary);
}

.payment-option-description {
  color: #666;
  font-size: 0.9rem;
}

.payment-option-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #ff6b00;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-footer {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
}

.modal-button {
  background-color: var(--color-black);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-button:hover {
  background-color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.modal-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    margin: 1rem;
  }

  .modal-header {
    padding: 1.25rem;
  }

  .modal-header h3 {
    font-size: 1.25rem;
    padding-right: 2rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .payment-options {
    gap: 1rem;
  }

  .payment-option {
    padding: 1.25rem;
  }

  .payment-option-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .payment-option-title {
    font-size: 1rem;
  }

  .payment-option-price {
    font-size: 1.15rem;
  }

  .payment-option-description {
    font-size: 0.85rem;
  }

  .modal-footer {
    padding: 1rem 1.5rem;
  }

  .modal-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .modal-container {
    width: 100%;
    margin: 0.5rem;
    border-radius: 8px;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-header h3 {
    font-size: 1.125rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .payment-option {
    padding: 1rem;
  }
}

/* Estilos do formulário de pré-cadastro */
.modal-description {
  text-align: center;
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.pre-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--color-black);
  font-size: 0.9rem;
}

.form-input {
  padding: 0.875rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-input::placeholder {
  color: #999;
}

.form-error {
  color: #d32f2f;
  font-size: 0.85rem;
  display: none;
  margin-top: 0.25rem;
}

.form-error.active {
  display: block;
}

/* Animação de shake para erros */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.form-input.error {
  border-color: #d32f2f;
  animation: shake 0.3s ease;
}

/* Responsividade do formulário */
@media (max-width: 480px) {
  .modal-description {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }

  .form-input {
    padding: 0.75rem;
    font-size: 0.9375rem;
  }
}
