:root {
  --primary: #0a4632;
  --primary-hover: #083a2a;
  --secondary: #b5a07c;
  --bg: #fdfdfd;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --glass: rgba(255, 255, 255, 0.8);
  --radius-sm: 8px;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(10, 70, 50, 0.15);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
header {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #f0f7f4;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  border: 1px solid rgba(10, 70, 50, 0.1);
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background: rgba(10, 70, 50, 0.05);
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Form Layout Styles */
.form-section {
  padding: 4rem 2rem;
  background: #f8faf9;
  flex-grow: 1;
}

.form-container {
  background: var(--card);
  border-radius: var(--radius);
  max-width: 48rem;
  width: 100%;
  margin: 0 auto;
  padding: 3rem;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #eef3f1;
  padding-bottom: 0.75rem;
}

/* Form Inputs */
.input-icon {
  position: relative;
  margin-bottom: 1rem;
}

.input-icon label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.input-icon i {
  position: absolute;
  top: 2.35rem; /* Ajustado considerando a label */
  left: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  transform: translateY(-50%);
}

.input-icon input,
.input-icon select {
  padding-left: 2.75rem;
  padding-right: 1.25rem;
  height: 3rem;
  font-size: 0.95rem;
  background: white;
  border: 1.5px solid #e2e8f0;
  color: var(--text);
  border-radius: 12px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.input-icon input:focus,
.input-icon select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 70, 50, 0.1);
}

.error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.btn-submit {
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 1rem;
  border-radius: 12px;
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(10, 70, 50, 0.1);
}

.btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.required::after {
  content: '*';
  color: #dc2626;
  margin-left: 0.2rem;
}

.form-radio,
.form-checkbox {
  accent-color: var(--primary);
  width: 1.1rem;
  height: 1.1rem;
}

/* Modais Comuns (Sucesso) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1rem;
}

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

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.fixed-info {
  background-color: #f0f7f4;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid rgba(10, 70, 50, 0.1);
  text-align: left;
}

/* Modal de Termos - Estilo Premium */
.terms-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 70, 50, 0.45);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.terms-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.terms-modal-content {
  background: #ffffff;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  border: 1px solid rgba(10, 70, 50, 0.1);
}

.terms-modal-overlay.active .terms-modal-content {
  transform: scale(1);
}

.terms-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eef3f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8faf9;
}

.terms-modal-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.15rem;
  margin: 0;
}

.terms-modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}

.terms-modal-close:hover {
  color: #dc2626;
}

.terms-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.terms-scroll-container {
  height: 380px;
  overflow-y: auto;
  padding: 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #f1f5f9;
}

@media (max-width: 640px) {
  .terms-scroll-container {
    height: 280px;
  }
  .terms-modal-content {
    margin: 1rem;
  }
  .terms-modal-body {
    padding: 1rem;
  }
}

.terms-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.terms-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}

.terms-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 8px;
}

.terms-modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #eef3f1;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: #f8faf9;
}

.btn-terms-cancel {
  padding: 0.6rem 1.25rem;
  border: 1.5px solid #cbd5e1;
  color: var(--text-muted);
  border-radius: 8px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-terms-cancel:hover {
  background: #f1f5f9;
  color: var(--text);
}

.btn-terms-accept {
  padding: 0.6rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(10, 70, 50, 0.2);
}

.btn-terms-accept:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-terms-accept:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* Footer Styles */
footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid #eef3f1;
  background: white;
}

/* Success/Error Message Elements (Inside Forms) */
.success-message {
  display: none;
  background-color: #f0f7f4;
  border: 1px solid #0a4632;
  color: #0a4632;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.error-message {
  display: none;
  background-color: #fef2f2;
  border: 1px solid #ef4444;
  color: #b91c1c;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Floating cards específicos de prematricula */
.floating-card {
  position: absolute;
  background: white;
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 140px;
  z-index: 2;
}
.card-1 {
  top: 20%;
  left: -20px;
}
.card-2 {
  bottom: 15%;
  right: -20px;
}
.floating-card i {
  font-size: 1.5rem;
  color: #e67e22;
}
.floating-card .title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: -4px;
}
.floating-card .sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

/* Estilos das Etapas (Multi-step) */
.form-step {
  display: none;
  opacity: 0;
  transform: translateX(15px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.form-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* Indicador de Passos */
.step-indicator-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}
.step-indicator-bar {
  position: absolute;
  top: 1.25rem;
  left: 2rem;
  right: 2rem;
  height: 4px;
  background: #eef3f1;
  z-index: 1;
}
.step-indicator-progress {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.35s ease;
}
.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.step-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #eef3f1;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}
.step-node.active .step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(10, 70, 50, 0.15);
}
.step-node.completed .step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}
.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
  transition: color 0.3s ease;
  text-align: center;
}
.step-node.active .step-label {
  color: var(--primary);
  font-weight: 700;
}

/* Cards de Boas-vindas / Jornada */
.journey-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2.5px solid transparent;
  position: relative;
  overflow: hidden;
}
.journey-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.journey-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.journey-card:hover::before {
  transform: scaleX(1);
}
.btn-change-journey {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: 1.5rem;
  border: none;
  background: transparent;
  padding: 0.25rem 0;
}
.btn-change-journey:hover {
  color: var(--primary);
}

/* Spinner Animado Moderno */
.spinner {
  display: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
