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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Páginas */
.page {
  display: none;
  min-height: 100vh;
  padding: 20px 0;
}

.page.active {
  display: block;
}

/* Landing Page */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 80vh;
  padding: 40px 0;
}

.hero-content {
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-title i {
  color: #ffd700;
  margin-right: 15px;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 300;
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
}

.benefit i {
  color: #ffd700;
  width: 20px;
}

.cta-button {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.cta-button i {
  margin-right: 10px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.calculator-mockup {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.calculator-mockup i {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Simulador */
#simulator-page {
  background: white;
}

.progress-bar {
  position: relative;
  margin-bottom: 60px;
  padding: 40px 0;
}

.progress-fill {
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 20%;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.3s ease;
}

.step.active {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  transform: scale(1.1);
}

.step.completed {
  background: #28a745;
  color: white;
}

.step-content {
  display: none;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}

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

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

.step-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.step-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 30px;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.option-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 30px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.option-card:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.option-card.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.option-card i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #667eea;
}

.option-card.selected i {
  color: white;
}

.option-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.option-card p {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Input Groups */
.input-group {
  margin-bottom: 30px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
}

.currency-input {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 15px;
  font-weight: 600;
  color: #6c757d;
  z-index: 1;
}

.input-group input {
  width: 100%;
  padding: 15px 20px;
  padding-left: 45px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.help-text {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #6c757d;
}

.help-text i {
  margin-right: 5px;
}

/* Suggestions */
.value-suggestions,
.prazo-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.suggestion-chip {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.suggestion-chip:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

/* Next Button */
.next-button {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.next-button:not([disabled]) {
  opacity: 1;
}

.next-button:not([disabled]):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.next-button i {
  margin-left: 8px;
}

/* Results Page */
#results-page {
  background: white;
}

.results-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 0;
}

.results-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.simulation-summary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.summary-item {
  text-align: center;
}

.summary-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 5px;
}

.summary-value {
  font-size: 1.3rem;
  font-weight: 600;
}

/* Rates Table */
.rates-table-container {
  margin-bottom: 50px;
}

.rates-table-container h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #2c3e50;
  text-align: center;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.rates-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 15px;
  text-align: left;
  font-weight: 600;
}

.rates-table td {
  padding: 20px 15px;
  border-bottom: 1px solid #e9ecef;
}

.rates-table tr:hover {
  background: #f8f9fa;
}

.bank-name {
  font-weight: 600;
  color: #2c3e50;
}

.rate-value {
  color: #28a745;
  font-weight: 600;
}

.installment-value {
  font-weight: 600;
  color: #667eea;
}

.action-button {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* CTA Section */
.cta-section {
  margin-bottom: 50px;
}

.cta-card {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
}

.cta-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.cta-card p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.whatsapp-button,
.email-button {
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-button {
  background: #25d366;
  color: white;
}

.email-button {
  background: white;
  color: #333;
}

.whatsapp-button:hover,
.email-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Disclaimer */
.disclaimer {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
}

.disclaimer i {
  margin-right: 8px;
  color: #ffc107;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .step-content h2 {
    font-size: 2rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .whatsapp-button,
  .email-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .simulation-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .step-content {
    padding: 20px 10px;
  }

  .rates-table th,
  .rates-table td {
    padding: 15px 10px;
    font-size: 0.9rem;
  }
}
