/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
  color: #f2f2f2;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout principal */
.main-content {
  padding-top: 80px;
  min-height: 100vh;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 20px 20px 10px;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(251, 202, 72, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(251, 202, 72, 0.05) 0%, transparent 50%);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  background: linear-gradient(45deg, rgba(251, 202, 72, 0.1), rgba(251, 202, 72, 0.05));
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 40%;
  left: 80%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  display: flex; 
  align-items: baseline; 
  justify-content: center; 
  flex-wrap: wrap; 
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fbca48 0%, #f39c12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
  animation: slideInFromTop 0.8s ease-out;
}

.hero-content p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 40px;
  animation: slideInFromBottom 0.8s ease-out 0.2s both;
}

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

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

/* Progress Section */
.progress-section {
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(251, 202, 72, 0.1);
  border-bottom: 1px solid rgba(251, 202, 72, 0.1);
}

.progress-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 3px solid #333;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.step-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #fbca48, #f39c12);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 50%;
}

.step-circle i {
  position: relative;
  z-index: 2;
}

.step-label {
  margin-top: 12px;
  font-size: 14px;
  color: #888;
  text-align: center;
  font-weight: 500;
  transition: all 0.4s ease;
}

.timeline-line {
  flex: 1;
  height: 4px;
  background: linear-gradient(90deg, #333 0%, #2a2a2a 100%);
  margin: 0 30px;
  position: relative;
  top: -30px;
  border-radius: 2px;
  overflow: hidden;
}

.timeline-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fbca48, #f39c12);
  transition: width 0.6s ease;
  border-radius: 2px;
}

/* Estados da linha do tempo */
.timeline-step.active .step-circle {
  background: linear-gradient(135deg, #fbca48, #f39c12);
  color: #000;
  border-color: #fbca48;
  box-shadow: 0 0 20px rgba(251, 202, 72, 0.4);
  transform: scale(1.1);
}

.timeline-step.active .step-circle::before {
  opacity: 1;
}

.timeline-step.active .step-label {
  color: #fbca48;
  font-weight: 600;
}

.timeline-step.completed .step-circle {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: #fff;
  border-color: #4caf50;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.timeline-step.completed .step-label {
  color: #4caf50;
  font-weight: 600;
}

.timeline-line.completed::before {
  width: 100%;
  background: linear-gradient(90deg, #4caf50, #45a049);
}

.timeline-line.active::before {
  width: 50%;
}

/* Form Container */
.form-container {
  display: flex;
  justify-content: center;
  padding: 40px 40px 60px;
}

.form-card {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 1000px;
  overflow: hidden;
  border: 1px solid rgba(251, 202, 72, 0.1);
  animation: slideInFromBottom 0.8s ease-out 0.4s both;
}

/* Form Header */
.form-header {
  background: linear-gradient(135deg, #fbca48 0%, #f39c12 100%);
  color: #000;
  padding: 25px 40px; 
  text-align: center;
  position: relative;
  overflow: hidden;
}

.form-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.header-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 32px;
  position: relative;
  z-index: 2;
}

.form-header h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.form-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

/* Step Content */
.step-content {
  display: none;
  padding: 60px 40px 50px;
}

.step-content.active {
  display: block;
  animation: fadeInUp 0.6s ease-out;
}

.step-content.active .form-row:first-child {
  margin-top: 45px; 
}

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

/* Modern Form */
.modern-form {
  max-width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #e1e1e1;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group label i {
  color: #fbca48;
  font-size: 16px;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}

.form-group input:focus {
  outline: none;
  border-color: #fbca48;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(251, 202, 72, 0.1);
  transform: translateY(-2px);
}

.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #fbca48, #f39c12);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.form-group input:focus + .input-highlight {
  width: 100%;
}

/* Password Input */
.password-input {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #fbca48;
}

/* Password Strength */
.password-strength {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f44336, #ff9800, #4caf50);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.strength-text {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

/* ✅ TERMOS DE USO CORRIGIDOS */
/* ✅ TERMOS DE USO CORRIGIDOS - CSS FUNCIONAL */
.terms-section {
  margin: 30px 0 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #fbca48;
  border-radius: 4px;
  background: transparent;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-right: 12px;
  margin-top: 2px;
}

.terms-checkbox input[type="checkbox"]:checked ~ .checkmark {
  background: #fbca48;
  border-color: #fbca48;
}

.terms-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 12px;
  font-weight: bold;
}

.terms-text {
  color: #e1e1e1;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  flex: 1;
}

.terms-link {
  color: #fbca48;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.terms-link:hover {
  color: #f39c12;
  text-decoration: underline;
}

.terms-error {
  color: #f44336;
  font-size: 12px;
  margin-top: 8px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(244, 67, 54, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(244, 67, 54, 0.2);
}

.terms-error::before {
  content: '⚠';
  font-size: 14px;
}

/* Efeito hover na área toda */
.terms-checkbox:hover .checkmark {
  border-color: #f39c12;
  transform: scale(1.05);
}

.terms-section:hover {
  border-color: rgba(251, 202, 72, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

/* Mensagens de erro */
.error-message {
  color: #f44336;
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.error-message::before {
  content: '⚠';
  font-size: 14px;
}

.form-group input.error {
  border-color: #f44336;
  background: rgba(244, 67, 54, 0.05);
}

/* Conta existente */
.conta-existente {
  background: #e8f5e8;
  border: 1px solid #4caf50;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  color: #2e7d32;
  animation: slideInFromBottom 0.5s ease-out;
}

.btn-continuar {
  background: #4caf50 !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
}

.btn-continuar:hover {
  background: #45a049 !important;
  transform: translateY(-2px) !important;
}

/* Pricing Grid */
.pricing-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.pricing-card {
  position: relative;
  width: calc(33.33% - 20px); 
  min-height: 480px;
  background: rgba(26, 26, 26, 0.7);
  border-radius: 16px;
  border: 1px solid rgba(251, 202, 72, 0.1);
  box-shadow: 0 0 20px rgba(251, 202, 72, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(251, 202, 72, 0.3);
}

.pricing-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.pricing-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  height: 100%;
  padding: 45px 24px 32px; 
  border-radius: 16px;
  transition: all 0.3s ease;
}

.pricing-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 202, 72, 0.1), transparent);
  transition: left 0.6s ease;
}

.pricing-label:hover::before {
  left: 100%;
}

.pricing-label:hover {
  border-color: #fbca48;
  background: rgba(26, 26, 26, 0.8);
  box-shadow: 0 10px 30px rgba(251, 202, 72, 0.2);
}

.pricing-card input[type="radio"]:checked + .pricing-label {
  border-color: #fbca48;
  background: rgba(251, 202, 72, 0.3);
  box-shadow: 0 0 30px rgba(251, 202, 72, 0.7);
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popular-badge {
  background: linear-gradient(135deg, #fbca48, #f39c12);
  color: #000;
  padding: 6px 14px; 
}

.plan-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #fbca48, #f39c12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px; 
  margin-bottom: 20px;
  font-size: 26px;
  color: #000;
  box-shadow: 0 0 10px rgba(251, 202, 72, 0.3);
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 12px;
}

.currency {
  font-size: 1.1rem;
  color: #fbca48;
  font-weight: 600;
}

.amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fbca48;
  margin: 0 4px;
}

.period {
  font-size: 1rem;
  color: #aaa;
  font-weight: 500;
}

.plan-description {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 4px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin-top: 10px; 
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 14px;
  color: #e1e1e1;
}

.plan-features i {
  color: #4caf50;
  font-size: 16px;
}

/* Form Buttons */
.form-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-next, .btn-prev, .btn-submit, .btn-download, .btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-next, .btn-submit, .btn-download {
  background: linear-gradient(135deg, #fbca48, #f39c12);
  color: #000;
  flex: 1;
}

.btn-next:hover, .btn-submit:hover, .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 202, 72, 0.3);
}

.btn-next:disabled, .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-prev {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-prev:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-login {
  background: transparent;
  color: #fbca48;
  border: 2px solid #fbca48;
}

.btn-login:hover {
  background: rgba(251, 202, 72, 0.1);
  transform: translateY(-2px);
}

/* Loading spinner */
.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Confirmation step */
.confirmation-content {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 80px;
  color: #4caf50;
  margin-bottom: 30px;
  animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); opacity: 1; }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.next-steps {
  margin: 40px 0;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.next-steps h3 {
  color: #fbca48;
  margin-bottom: 20px;
  text-align: center;
}

.next-steps ul {
  list-style: none;
  padding: 0;
}

.next-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.next-steps li:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.next-steps i {
  color: #fbca48;
  font-size: 18px;
  width: 24px;
}

/* Registration error */
.registration-error {
  display: none;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  gap: 10px;
}

.registration-error i {
  font-size: 18px;
}

/* Plan error */
.plan-error {
  text-align: center;
  margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .pricing-card {
    width: 100%;
    min-height: auto;
  }
  
  .pricing-grid {
    flex-direction: column;
  }
  
  .form-buttons {
    flex-direction: column;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .timeline-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .timeline-line {
    width: 4px;
    height: 40px;
    margin: 0;
    top: 0;
  }
}
