/* INFAI - Formulário de Orçamento */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary-cyan: #00D9FF;
  --primary-blue: #0099CC;
  --primary-dark-blue: #0066AA;
  --bg-dark: #0A0E1A;
  --bg-darker: #050810;
  --bg-card: #131B2E;
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
  --text-muted: #64748B;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #0066AA 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-card);
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  width: 11%;
}

.progress-text {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  z-index: 1000;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 3rem;
}

.logo {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
}

.title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* Steps */
.step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.step.active {
  display: block;
}

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

.step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.step-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-description {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

/* Radio Cards */
.radio-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.radio-card {
  position: relative;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.card-content {
  background: var(--bg-card);
  border: 2px solid rgba(0, 217, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.radio-card:hover .card-content {
  border-color: var(--primary-cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 217, 255, 0.2);
}

.radio-card input:checked ~ .card-content {
  border-color: var(--primary-cyan);
  background: rgba(0, 217, 255, 0.05);
  box-shadow: 0 0 0 1px var(--primary-cyan);
}

.radio-card input:checked ~ .card-content::before {
  content: '✓';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  background: var(--primary-cyan);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.card-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.badge {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
}

.price-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 0.5rem;
  color: var(--primary-cyan);
  font-size: 0.875rem;
  font-weight: 600;
}

.price-badge.discount {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-card {
  position: relative;
  cursor: pointer;
}

.service-card input {
  position: absolute;
  opacity: 0;
}

.service-content {
  background: var(--bg-card);
  border: 2px solid rgba(0, 217, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover .service-content {
  border-color: var(--primary-cyan);
  transform: translateY(-4px);
}

.service-card input:checked ~ .service-content {
  border-color: var(--primary-cyan);
  background: rgba(0, 217, 255, 0.05);
  box-shadow: 0 0 0 1px var(--primary-cyan);
}

.service-card.popular {
  position: relative;
}

.service-card.popular .badge {
  top: -0.75rem;
  right: 0.5rem;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-icon {
  font-size: 1.75rem;
}

.service-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.service-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-cyan);
  margin-bottom: 1rem;
}

.service-details {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 217, 255, 0.1);
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Calculator */
.calculator {
  background: var(--bg-card);
  border: 2px solid rgba(0, 217, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.calculator-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1.125rem;
}

.calculator-row.discount {
  color: var(--success);
}

.calculator-row.total {
  border-top: 2px solid rgba(0, 217, 255, 0.2);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 217, 255, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 2px solid rgba(0, 217, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

.step-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 3rem 1rem 1rem;
  }
  
  .title {
    font-size: 1.875rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .step-actions {
    flex-direction: column-reverse;
  }
  
  .btn {
    width: 100%;
  }
}