:root {
  --primary: #4a6572;
  --primary-dark: #344955;
  --primary-light: #5d7a8a;
  --accent: #f9aa33;
  --light: #f5f7fa;
  --dark: #232f34;
  --gray: #6c757d;
  --light-gray: #e0e0e0;
  --white: #ffffff;
  --error: #dc3545;
  --success: #28a745;
  --warning: #ffc107;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.header h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.header p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.progress-bar {
  display: flex;
  background: var(--light-gray);
  height: 6px;
  margin: 0 30px;
  border-radius: 3px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
  width: 25%;
}

.steps {
  display: flex;
  justify-content: space-between;
  padding: 20px 30px 0;
}

.step {
  text-align: center;
  flex: 1;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: bold;
  transition: all 0.3s;
}

.step.active .step-number {
  background: var(--accent);
  color: var(--dark);
}

.step.completed .step-number {
  background: var(--success);
  color: white;
}

.step-label {
  font-size: 14px;
  color: var(--gray);
  transition: color 0.3s;
}

.step.active .step-label {
  color: var(--dark);
  font-weight: 600;
}

.form-container {
  padding: 30px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

label.required::after {
  content: " *";
  color: var(--error);
}

input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 101, 114, 0.1);
}

input.error, select.error, textarea.error {
  border-color: var(--error);
}

.error-message {
  color: var(--error);
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

.image-upload {
  border: 2px dashed var(--light-gray);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.image-upload:hover {
  border-color: var(--primary);
}

.image-upload i {
  font-size: 40px;
  color: var(--gray);
  margin-bottom: 10px;
}

.image-preview {
  margin-top: 20px;
  display: none;
}

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.social-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.social-input {
  display: flex;
  align-items: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--light);
  border-radius: 8px 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  border: 1px solid var(--light-gray);
  border-right: none;
}

.social-input input {
  border-radius: 0 8px 8px 0;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--light-gray);
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
  background: var(--light);
  color: var(--dark);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--light-gray);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}

.btn-accent:hover:not(:disabled) {
  background: #e89c2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.success-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.success-modal.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  font-size: 60px;
  color: var(--success);
  margin-bottom: 20px;
}

.modal-actions {
  margin-top: 25px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.muted {
  color: var(--gray);
  margin-bottom: 20px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .social-inputs {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .steps {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .step {
    flex: 0 0 calc(50% - 10px);
  }
}
/* Estilos para planos */
.plans-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.plan-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.plan-card:hover {
  border-color: #667eea;
  transform: translateY(-4px);
}

.plan-card.selected {
  border-color: #667eea;
  background: #f7fafc;
}

.plan-card.recommended {
  border-color: #667eea;
  transform: scale(1.05);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #667eea;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.plan-header h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2d3748;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 1.5rem;
}

.price span {
  font-size: 1rem;
  color: #718096;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.plan-features li {
  padding: 0.5rem 0;
  color: #4a5568;
}

.btn-plan-select {
  width: 100%;
  padding: 1rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-plan-select:hover {
  background: #5a67d8;
}

/* Elementos de pagamento */
.payment-section {
  margin-top: 2rem;
  padding: 2rem;
  background: #f7fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.card-element {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  margin-bottom: 1rem;
}

.card-errors {
  color: #e53e3e;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  min-height: 20px;
}

/* Estados de loading */
.btn-subscribe:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}