/* Reset e Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: #fff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}
.text-balance {
  text-wrap: balance;
}
.font-bold {
  font-weight: 700;
}
.font-black {
  font-weight: 900;
}
.font-semibold {
  font-weight: 600;
}
.italic {
  font-style: italic;
}
.uppercase {
  text-transform: uppercase;
}
.tracking-wider {
  letter-spacing: 0.05em;
}

.hidden {
  display: none !important;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.inline-flex {
  display: inline-flex;
}

.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-shrink-0 {
  flex-shrink: 0;
}

.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.gap-6 {
  gap: 24px;
}
.gap-8 {
  gap: 32px;
}
.gap-12 {
  gap: 48px;
}

.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}

.overflow-hidden {
  overflow: hidden;
}
.overflow-x-hidden {
  overflow-x: hidden;
}
.overflow-y-auto {
  overflow-y: auto;
}

.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}

/* Spacing */
.p-2 {
  padding: 8px;
}
.p-4 {
  padding: 16px;
}
.p-6 {
  padding: 24px;
}
.p-8 {
  padding: 32px;
}

.px-2 {
  padding-left: 8px;
  padding-right: 8px;
}
.px-3 {
  padding-left: 12px;
  padding-right: 12px;
}
.px-4 {
  padding-left: 16px;
  padding-right: 16px;
}
.px-6 {
  padding-left: 24px;
  padding-right: 24px;
}
.px-8 {
  padding-left: 32px;
  padding-right: 32px;
}

.py-1 {
  padding-top: 4px;
  padding-bottom: 4px;
}
.py-4 {
  padding-top: 16px;
  padding-bottom: 16px;
}
.py-5 {
  padding-top: 20px;
  padding-bottom: 20px;
}
.py-6 {
  padding-top: 24px;
  padding-bottom: 24px;
}
.py-7 {
  padding-top: 28px;
  padding-bottom: 28px;
}
.py-8 {
  padding-top: 32px;
  padding-bottom: 32px;
}
.py-12 {
  padding-top: 48px;
  padding-bottom: 48px;
}

.mt-4 {
  margin-top: 16px;
}
.mt-6 {
  margin-top: 24px;
}
.mt-8 {
  margin-top: 32px;
}
.mb-1 {
  margin-bottom: 4px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mb-6 {
  margin-bottom: 24px;
}
.mb-12 {
  margin-bottom: 48px;
}
.my-4 {
  margin-top: 16px;
  margin-bottom: 16px;
}
.pt-4 {
  padding-top: 16px;
}
.pt-8 {
  padding-top: 32px;
}

.space-y-2 > * + * {
  margin-top: 8px;
}
.space-y-3 > * + * {
  margin-top: 12px;
}
.space-y-4 > * + * {
  margin-top: 16px;
}
.space-y-6 > * + * {
  margin-top: 24px;
}

/* Colors */
.text-white {
  color: #fff;
}
.text-gray-400 {
  color: #9ca3af;
}
.text-gray-800 {
  color: #1f2937;
}
.text-gray-900 {
  color: #111827;
}
.text-green-500 {
  color: #22c55e;
}
.text-red-500 {
  color: #ef4444;
}

.bg-white {
  background-color: #fff;
}
.bg-gray-50 {
  background-color: #f9fafb;
}
.bg-gray-200 {
  background-color: #e5e7eb;
}
.bg-gray-500 {
  background-color: #6b7280;
}
.bg-gray-900 {
  background-color: #111827;
}
.bg-green-500 {
  background-color: #22c55e;
}
.bg-red-500 {
  background-color: #ef4444;
}

/* Brand Colors */
.text-brand-blue {
  color: #0066cc;
}
.text-brand-blue-dark {
  color: #0052a3;
}
.text-brand-blue-darker {
  color: #003d7a;
}
.bg-brand-blue {
  background-color: #0066cc;
}
.bg-brand-green {
  background-color: #25d366;
}
.bg-brand-green-hover {
  background-color: #20bd5a;
}

/* Gradients */
.bg-gradient-hero {
  background: linear-gradient(to bottom right, #0066cc, #0052a3, #003d7a);
}

.bg-gradient-card {
  background: linear-gradient(to bottom right, #4d8cff, #0066cc);
}

.bg-gradient-gray {
  background: linear-gradient(to bottom, #f9fafb, #fff);
}

.bg-gradient-cyan {
  background: linear-gradient(to bottom right, #ecfeff, #eff6ff, #ccfbf1);
}

/* Border Radius */
.rounded {
  border-radius: 4px;
}
.rounded-lg {
  border-radius: 8px;
}
.rounded-xl {
  border-radius: 12px;
}
.rounded-2xl {
  border-radius: 16px;
}
.rounded-3xl {
  border-radius: 24px;
}
.rounded-full {
  border-radius: 9999px;
}

/* Shadows */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Typography */
.text-xs {
  font-size: 12px;
  line-height: 16px;
}
.text-sm {
  font-size: 14px;
  line-height: 20px;
}
.text-base {
  font-size: 16px;
  line-height: 24px;
}
.text-lg {
  font-size: 18px;
  line-height: 28px;
}
.text-xl {
  font-size: 20px;
  line-height: 28px;
}
.text-2xl {
  font-size: 24px;
  line-height: 32px;
}
.text-3xl {
  font-size: 30px;
  line-height: 36px;
}
.text-4xl {
  font-size: 36px;
  line-height: 40px;
}
.text-5xl {
  font-size: 48px;
  line-height: 1;
}

.leading-tight {
  line-height: 1.25;
}
.leading-relaxed {
  line-height: 1.625;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: #25d366;
  color: #fff;
  border: 4px solid #1ea952;
}

.btn-primary:hover {
  background-color: #20bd5a;
  transform: scale(1.05);
}

.btn-lg {
  padding: 16px 24px;
  font-size: 16px;
}

.btn-xl {
  padding: 20px 32px;
  font-size: 18px;
}

@media (min-width: 640px) {
  .btn-lg {
    padding: 20px 32px;
    font-size: 18px;
  }
  .btn-xl {
    padding: 24px 40px;
    font-size: 20px;
  }
}

/* Forms */
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 3px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}

.form-label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
}

.form-error {
  display: block;
  color: #dc2626;
  margin-top: 6px;
  font-weight: 700;
  font-size: 14px;
  padding: 8px;
  background: #fee2e2;
  border-radius: 6px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: none;
}

.modal-overlay.active {
  display: block;
}

.modal-content {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 51;
  width: calc(100% - 32px);
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
  display: none;
}

.modal-content.active {
  display: block;
}

.modal-header {
  position: sticky;
  top: 0;
  background: linear-gradient(to right, #0066cc, #0052a3);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px 16px 0 0;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 20px 24px 24px;
}

/* Error Popup */
.error-popup {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: #ef4444;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: none;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  border: 3px solid #b91c1c;
}

.error-popup.active {
  display: flex;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 28px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #25d366;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  transition: width 0.5s ease;
}

.progress-text {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

/* Cards */
.benefit-card {
  background: linear-gradient(to bottom right, #4d8cff, #0066cc);
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s, transform 0.3s;
}

.benefit-card:hover {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
}

/* Animations */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.3;
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(to bottom right, #0066cc, #0052a3, #003d7a);
  overflow: hidden;
}

.hero-blur {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 24px;
  align-items: center;
  min-height: calc(100vh - 48px);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .hero-blur {
    width: 500px;
    height: 500px;
  }
}

/* Footer */
.footer {
  background: #111827;
  color: #9ca3af;
  padding: 24px 0;
}

/* Radio/Checkbox */
.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
}

.radio-option input,
.checkbox-option input {
  width: 18px;
  height: 18px;
  accent-color: #0066cc;
  cursor: pointer;
}

.radio-option span,
.checkbox-option span {
  font-size: 15px;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mentor Grid */
.mentor-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 768px) {
  .mentor-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

/* Content Grid (for obrigado pages) */
.content-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile image visibility */
.hero-mobile-image {
  display: block;
}

.hero-desktop-image {
  display: none;
}

@media (min-width: 1024px) {
  .hero-mobile-image {
    display: none;
  }
  .hero-desktop-image {
    display: block;
  }
}

/* Hidden classes for JS toggling */
.js-hidden {
  display: none !important;
}

/* WhatsApp button specific */
.whatsapp-btn {
  background-color: #25d366;
  color: #fff;
  border: 4px solid #1ea952;
  padding: 20px 32px;
  font-size: 16px;
  font-weight: 900;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
  background-color: #20bd5a;
  transform: scale(1.05);
}

@media (min-width: 640px) {
  .whatsapp-btn {
    padding: 24px 40px;
    font-size: 20px;
  }
}

/* Survey form specific styles */
.survey-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  padding: 24px;
}

@media (min-width: 640px) {
  .survey-card {
    padding: 32px;
  }
}

/* Phone input with country code */
.phone-input-wrapper {
  position: relative;
}

.phone-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: #374151;
  pointer-events: none;
}
