/* ==========================================================================
   UNINASSAU BOLSAS - PREMIUM MOBILE-FIRST STYLESHEET (PERFECT ALIGNMENT)
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --nassau-navy-deep: #09162e;
  --nassau-navy: #102244;
  --nassau-blue: #1b3260;
  --nassau-blue-dark: #09162e;
  --primary: #102244;
  --nassau-blue-light: #254682;
  --nassau-red: #c8102e;
  --nassau-red-light: #e61937;
  --nassau-gold: #f5ba18;
  --nassau-gold-light: #fff3cc;
  --nassau-gold-glow: rgba(245, 186, 24, 0.35);

  /* Functional Accents */
  --accent-green: #008744;
  --accent-green-hover: #007038;
  --accent-green-light: #e8f5e9;
  --whatsapp-green: #25d366;
  --whatsapp-dark: #128c7e;

  /* Neutrals & Surfaces */
  --bg-page: #f4f6fa;
  --surface-card: #ffffff;
  --surface-subtle: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-focus: #1b3260;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(16, 34, 68, 0.05);
  --shadow-md: 0 4px 14px rgba(16, 34, 68, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 34, 68, 0.12);
  --shadow-green: 0 6px 20px rgba(0, 135, 68, 0.35);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Base Container - Centered on desktop, full width with margins on mobile */
.container {
  width: 100%;
  max-width: 600px; /* Streamlined mobile reading width */
  margin: 0 auto;
  padding: 0 1rem;
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(0, 135, 68, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(0, 135, 68, 0.65); }
}

.fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   HEADER HERO
   ========================================================================== */
.header-hero {
  background: radial-gradient(circle at 50% 0%, var(--nassau-blue) 0%, var(--nassau-navy) 70%, var(--nassau-navy-deep) 100%);
  color: white;
  padding: 1.5rem 1rem 3.5rem;
  position: relative;
  text-align: center;
}

.header-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--nassau-red) 0%, var(--nassau-gold) 50%, var(--nassau-red) 100%);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.logo-badge-header {
  background: white;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.admin-shortcut-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 186, 24, 0.16);
  border: 1px solid rgba(245, 186, 24, 0.4);
  color: #ffd54f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.45rem, 5vw, 2.15rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  letter-spacing: -0.3px;
}

.hero-title span {
  color: var(--nassau-gold);
}

.hero-subtitle {
  font-size: clamp(0.85rem, 3vw, 0.95rem);
  color: #cbd5e1;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

.social-proof-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.social-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   MAIN CARD & FORM LAYOUT (STRICT LEFT ALIGNMENT)
   ========================================================================== */
.form-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  margin: -2rem auto 2.5rem;
  position: relative;
  z-index: 10;
  width: 100%;
  text-align: left; /* Strict left alignment for all form elements */
}

@media (max-width: 480px) {
  .form-card {
    padding: 1.15rem;
    margin-top: -1.75rem;
    border-radius: var(--radius-md);
  }
}

/* Card Section Header */
.card-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.step-indicator-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--nassau-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nassau-navy);
  line-height: 1.2;
}

.step-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Form Groups - Clean, consistent spacing without ugly nested grey boxes */
.form-group-item {
  margin-bottom: 1.25rem;
  text-align: left;
}

/* Clean, crisp, left-aligned labels */
.form-label-clean {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--nassau-navy);
  margin-bottom: 0.5rem;
}

.form-label-clean i {
  color: var(--nassau-blue);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.required-star {
  color: var(--nassau-red);
  font-weight: 700;
  margin-left: 2px;
}

.field-subgroup {
  margin-bottom: 0.85rem;
  width: 100%;
  text-align: left;
}

/* Sub-labels for nested inputs */
.sub-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.35rem;
  text-align: left;
}

/* Inputs & Selects - 16px font to prevent iOS auto-zoom, full width */
.form-control {
  width: 100%;
  height: 48px;
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 0.95rem;
  font-size: 16px;
  color: var(--text-main);
  font-weight: 500;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
}

.form-control:focus {
  outline: none;
  border-color: var(--nassau-blue);
  box-shadow: 0 0 0 3px rgba(27, 50, 96, 0.12);
}

/* Custom Select Dropdown with Clean Right Arrow */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b3260' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 2.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Interactive Pill Group - ALWAYS 2 EQUAL COLUMNS */
.pill-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
}

/* Interactive Pill Group - 3 Columns (for year of graduation) */
.pill-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
}

@media (max-width: 440px) {
  .pill-grid-3 {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

.pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 46px;
  padding: 0.5rem 0.65rem;
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  touch-action: manipulation;
}

.pill-btn:active {
  transform: scale(0.98);
}

.pill-btn.active {
  background: var(--nassau-navy);
  color: white;
  border-color: var(--nassau-navy);
  box-shadow: 0 4px 10px rgba(16, 34, 68, 0.25);
  font-weight: 700;
}

.pill-btn.active i {
  color: var(--nassau-gold);
}

/* 2 Column Layout for Name, WhatsApp, CPF, Date */
.form-row-2,
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

@media (max-width: 500px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* LGPD Consent Card */
.lgpd-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin: 1.25rem 0 1rem;
  text-align: left;
}

.lgpd-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.775rem;
  color: #475569;
  cursor: pointer;
  line-height: 1.45;
  text-align: left;
}

.lgpd-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--nassau-navy);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-submit-hero {
  background: linear-gradient(135deg, var(--accent-green) 0%, #00994c 100%);
  color: white;
  width: 100%;
  min-height: 54px;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-green);
  transition: all 0.2s ease;
  animation: pulseGlow 2.5s infinite;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  touch-action: manipulation;
}

.btn-submit-hero:hover {
  background: linear-gradient(135deg, #007038 0%, #008744 100%);
}

.btn-submit-hero:active {
  transform: scale(0.98);
}

.btn-whatsapp-hero {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all 0.2s ease;
  animation: pulseGlow 2s infinite;
}

.btn-whatsapp-hero:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: white;
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: #f1f5f9;
}

/* ==========================================================================
   OFFER / VOUCHER TICKET (RESULT SCREEN)
   ========================================================================== */
.voucher-ticket {
  background: radial-gradient(circle at 50% 0%, #1e3a70 0%, var(--nassau-navy) 70%, var(--nassau-navy-deep) 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--nassau-gold);
  margin-bottom: 1.15rem;
  overflow: hidden;
  text-align: left;
}

.voucher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.voucher-protocol-tag {
  background: rgba(245, 186, 24, 0.2);
  border: 1px solid rgba(245, 186, 24, 0.5);
  color: #ffd54f;
  font-family: monospace;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.ticket-price-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ticket-price-col {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ticket-price-col.highlight-green {
  background: rgba(0, 135, 68, 0.22);
  border-color: rgba(105, 240, 174, 0.4);
}

.ticket-col-label {
  font-size: 0.75rem;
  color: #cbd5e1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: block;
}

.ticket-col-value-gold {
  color: #ffd54f;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 2px 0;
}

.ticket-col-note {
  font-size: 0.725rem;
  color: #94a3b8;
  font-weight: 500;
}

@media (max-width: 520px) {
  .ticket-price-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .ticket-price-col {
    padding: 0.75rem 0.85rem;
  }
}

.price-crossed {
  font-size: 0.825rem;
  color: #94a3b8;
  text-decoration: line-through;
  display: inline-block;
}

.price-big {
  font-size: clamp(1.45rem, 5.5vw, 1.95rem);
  font-weight: 900;
  color: #69f0ae;
  line-height: 1.1;
}

/* ==========================================================================
   TOGGLE E MEMÓRIA DE CÁLCULO (ACCORDION RESPONSIVO & SIMPLIFICADO)
   ========================================================================== */
.btn-calc-toggle {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--nassau-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  touch-action: manipulation;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-top: 0.5rem;
}

.btn-calc-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-calc-toggle.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--nassau-blue);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-calc-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-calc-toggle-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.calc-details-wrapper {
  animation: slideDown 0.22s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.math-breakdown-card {
  background: #ffffff;
  border: 1.5px solid #93c5fd;
  border-radius: var(--radius-sm);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
  padding: 1.15rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.5rem;
}

.math-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.825rem;
  gap: 0.75rem;
  text-align: left;
}

.math-row-label {
  flex: 1;
  color: var(--text-main);
  line-height: 1.35;
}

.math-row-val {
  white-space: nowrap;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}

.math-row:last-child {
  border-bottom: none;
}

.math-row.highlight-total {
  border-top: 2px solid var(--nassau-blue);
  border-bottom: none;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--nassau-navy);
}

.math-explanation-box {
  background: #f0fdf4;
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: #166534;
  line-height: 1.55;
  margin-top: 0.85rem;
  text-align: left;
}

@media (max-width: 480px) {
  .btn-calc-toggle {
    padding: 0.75rem 0.9rem;
  }
  .btn-calc-toggle-left {
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  .math-breakdown-card {
    padding: 0.95rem;
  }
  .math-row {
    font-size: 0.78rem;
    padding: 0.5rem 0;
    gap: 0.5rem;
  }
  .math-row.highlight-total {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .math-row.highlight-total .math-row-val {
    align-self: flex-end;
    font-size: 1.2rem !important;
  }
}

.badge-green {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Other Courses Mini Cards */
.other-course-card {
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

/* Footer */
.footer-main {
  background: var(--nassau-navy-deep);
  color: #cbd5e1;
  padding: 2.75rem 1rem 3.5rem;
  margin-top: 3.5rem;
  border-top: 4px solid var(--nassau-red);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.15rem;
  margin: 0 auto;
}

.footer-logo-wrapper {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 90%;
}

.footer-logo-img {
  height: 42px;
  max-width: 100%;
  width: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.footer-campus-name {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  display: block;
  letter-spacing: -0.2px;
}

.footer-campus-sub {
  color: #94a3b8;
  font-size: 0.825rem;
  display: block;
}

.footer-contact {
  font-size: 0.825rem;
  color: #94a3b8;
  text-align: center;
}

.footer-contact strong {
  color: #f5ba18;
  font-weight: 800;
}
