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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #F0F0F0;
  min-height: 90vh;
}

/* Container principal */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  color: white;
}

/* Header */
.card-header {
  text-align: center;
}

/* Conteúdo principal */
.main-content {
  flex: 1;
  background: linear-gradient(135deg, #02003b 0%, #00adef 100%);  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-body {
  padding-top: 20px;
}

.title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 25px;
  color: #FFF;
  line-height: 1.2;
}

/* Instruções */

/* Formulário */
.form-container {
  width: 100%;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #FFF;
  font-size: 14px;
}

.input-group input {
  padding: 15px;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fff;
}

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

.input-group input:invalid {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: block;
  min-height: 16px;
}

/* reCAPTCHA */
.captcha-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
}

.g-recaptcha {
  transform: scale(0.9);
  transform-origin: 0 0;
}

.consent {
      text-align: center;
      font-size:12px;
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  margin-top: 5px;
  cursor: pointer;
}

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

.switch-slider {
  width: 50px;
  height: 25px;
  background-color: #ccc;
  border-radius: 12px;
  position: relative;
  transition: background-color 0.2s;
}

.switch-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}

.switch-label input:checked + .switch-slider {
  background-color: #82C968;
}

.switch-label input:checked + .switch-slider::before {
  transform: translateX(25px);
}


/* Botões */
.submit-btn {
  background: linear-gradient(135deg, #02003b 0%, #667eea 100%);
  color: white;
  border: none;
  padding: 18px 30px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading {
  display: none;
}

.secondary-btn {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.secondary-btn:hover {
  background: #667eea;
  color: white;
}

/* Container de resultado */
.result-container {
  text-align: center;
  padding: 40px 20px;
}

.result-message {
  padding: 30px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.result-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.result-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.result-message.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Footer */
.footer {
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  margin-top: auto;
}

/* Responsividade para tablets */
@media (min-width: 768px) {
  .container {
    max-width: 600px;
    padding: 40px;
  }

  .main-content {
    padding: 40px;
  }

  .title {
    font-size: 28px;
  }

  .g-recaptcha {
    transform: scale(1);
  }
}

/* Responsividade para desktop */
@media (min-width: 1024px) {
  .container {
    max-width: 500px;
  }

  .logo {
    max-width: 300px;
  }
}

.logo {
  max-width: 250px;
  height: auto;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-container {
  animation: fadeIn 0.5s ease-out;
}

/* Estados de loading */
.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .loading {
  display: inline;
}
