/* Estilos específicos para o sistema de trial */
/* Inclui estilos da página trial/new (hero, steps, cards, botões) */

/* Hero Section - contraste acessível (text-shadow no texto claro) */
.hero-section {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  position: relative;
  overflow: hidden;
}

.hero-section .display-4,
.hero-section .lead,
.hero-section .feature-item small {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(/%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.hero-features .feature-item {
  opacity: 0.9;
}

.hero-icon {
  animation: trial-float 3s ease-in-out infinite;
}

@keyframes trial-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Main Content */
.main-content {
  background: #f8f9fa;
  min-height: 100vh;
}

/* Progress Steps (página trial) */
.trial-form ~ * .step-indicator,
.card.border-primary .step-indicator {
  position: relative;
  text-align: center;
}

.card.border-primary .step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
  color: #6c757d;
  margin: 0 auto 10px;
  transition: all 0.3s ease;
  font-size: 20px;
  border: 3px solid #e9ecef;
}

.card.border-primary .step-indicator.active .step-circle {
  background: #007bff;
  color: white;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.card.border-primary .step-indicator.completed .step-circle {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.card.border-primary .step-label {
  font-weight: 600;
  color: #495057;
  font-size: 14px;
}

.card.border-primary .step-indicator.active .step-label {
  color: #007bff;
}

.card.border-primary .step-line {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e9ecef;
  z-index: -1;
}

.card.border-primary .step-indicator:last-child .step-line {
  display: none;
}

/* Cards da página trial */
.main-content .card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 0.5rem;
}

.main-content .card .card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
}

.main-content .card .card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.main-content .card .card-body {
  padding: 1.5rem;
}

.main-content .card .card-footer {
  border-top: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
}

/* Form Controls (trial page) */
.main-content .trial-form .form-control {
  border-radius: 0.25rem;
  border: 1px solid #ced4da;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.main-content .trial-form .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.main-content .trial-form .form-control.is-invalid {
  border-color: #dc3545;
}

.main-content .trial-form .form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Buttons (trial page) */
.main-content .trial-form .btn {
  border-radius: 0.25rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.15s ease-in-out;
}

/* Feature Cards (trial page) */
.main-content .feature-card {
  transition: transform 0.2s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-content .feature-card:hover {
  transform: translateY(-5px);
}

.main-content .feature-card h5 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.main-content .feature-card p {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* CEP: campo com espaço para 00000-000 e botão lupa alinhado à altura do input */
.input-group-cep .trial-cep-input {
  min-width: 7.5rem;
  flex: 1;
}
.input-group-cep .input-group-append .btn-cep-search {
  padding: 0.375rem 0.65rem;
  line-height: 1.5;
  border-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.input-group-cep .btn-cep-search i {
  margin: 0;
  font-size: 1rem;
}

/* Password strength bar */
.password-strength .progress-bar {
  transition: width 0.2s ease;
}

.password-strength .progress-bar.bg-danger { background-color: #dc3545; }
.password-strength .progress-bar.bg-warning { background-color: #ffc107; }
.password-strength .progress-bar.bg-info { background-color: #17a2b8; }
.password-strength .progress-bar.bg-success { background-color: #28a745; }

/* Responsive trial page */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  .hero-section .display-4 {
    font-size: 2rem;
  }
  .card.border-primary .step-circle {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
  .main-content .card .card-body {
    padding: 1rem;
  }
  .main-content .feature-card {
    margin-bottom: 1rem;
  }
}

/* Layout Principal */
.trial-container {
  min-height: 100vh;
  padding: 2rem 0;
}

/* Cabeçalho */
.trial-header {
  margin-bottom: 2rem;
}

.trial-logo {
  width: 80px;
  height: 80px;
  background: #667eea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
  transition: transform 0.3s ease;
}

.trial-logo:hover {
  transform: scale(1.1);
}

.trial-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.trial-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Card Principal */
.trial-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  background: white;
}

.trial-card-header {
  background: #667eea;
  border: none;
  padding: 2rem;
}

.trial-card-body {
  padding: 2.5rem;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255,255,255,0.3);
  z-index: 1;
}

.step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 auto 0.5rem;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: white;
  color: #667eea;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
  transform: scale(1.1);
}

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

.step.completed .step-number::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}

.step-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.step.active .step-label {
  color: white;
  font-weight: 600;
}

/* Form Steps */
.trial-step {
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

.trial-step.active {
  display: block;
}

.step-content {
  max-width: 100%;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.step-description {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Form Styling */
.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-label.required::after {
  content: ' *';
  color: #dc3545;
  font-weight: normal;
}

/* Estilos específicos para formulários de trial - não afetam o sistema global */
.trial-card .form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #fff;
}

.trial-card .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  background-color: #fff;
}

.trial-card .form-control:hover {
  border-color: #c3d0f0;
}

.trial-card .form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

/* Info Cards na Confirmação */
.info-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #667eea;
  transition: transform 0.3s ease;
}

.info-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.info-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.info-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-size: 0.9rem;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item strong {
  color: #495057;
  min-width: 80px;
  display: inline-block;
}

/* Trial Benefits */
.trial-benefits {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  border-left: 4px solid #28a745;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #495057;
  display: flex;
  align-items: center;
}

.benefits-list li i {
  margin-right: 0.5rem;
  width: 16px;
}

/* Terms Agreement */
.terms-agreement {
  background: #fff3cd;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #ffc107;
  margin-top: 1.5rem;
}

.terms-agreement .form-check-label {
  font-size: 0.9rem;
  line-height: 1.5;
}

.terms-agreement a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.terms-agreement a:hover {
  text-decoration: underline;
}

/* Navigation Buttons */
.trial-navigation {
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: #667eea;
  border: none;
  color: white;
}

.btn-primary:hover {
  background: #5a6fd8;
  color: white;
}

.btn-success {
  background: #28a745;
  border: none;
  color: white;
}

.btn-success:hover {
  background: #218838;
  color: white;
}

.btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  background: transparent;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  70% {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Form Check Styling */
.form-check-input {
  border: 2px solid #dee2e6;
  border-radius: 4px;
}

.form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

.form-check-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check-label {
  font-size: 0.9rem;
  color: #495057;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .trial-title {
    font-size: 2rem;
  }
  
  .trial-card-body {
    padding: 1.5rem;
  }
  
  .trial-card-header {
    padding: 1.5rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .step-label {
    font-size: 0.8rem;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .step-title {
    font-size: 1.3rem;
  }
  
  .info-card {
    padding: 1rem;
  }
  
  .trial-benefits {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .trial-container {
    padding: 1rem 0;
  }
  
  .trial-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .trial-title {
    font-size: 1.8rem;
  }
  
  .trial-subtitle {
    font-size: 1rem;
  }
  
  .trial-card-body, .trial-card-header {
    padding: 1rem;
  }
  
  .progress-steps::before {
    left: 15%;
    right: 15%;
  }
}

/* Dark mode support (opcional) */
@media (prefers-color-scheme: dark) {
  .trial-card {
    background: #2c3e50;
    color: #ecf0f1;
  }
  
  .step-title, .info-title {
    color: #ecf0f1;
  }
  
  .step-description {
    color: #bdc3c7;
  }
  
  .trial-card .form-control {
    background-color: #34495e;
    border-color: #4a5f7a;
    color: #ecf0f1;
  }
  
  .trial-card .form-control:focus {
    background-color: #34495e;
    border-color: #667eea;
  }
  
  .info-card {
    background: #34495e;
  }
}
