@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* LIGHT THEME VARIABLES */
  --bg: #f7f7f5;
  --bg-gradient: radial-gradient(circle at 10% 10%, rgba(237, 109, 29, 0.08), transparent 34rem),
                 radial-gradient(circle at 90% 10%, rgba(0,0,0,.03), transparent 32rem);
  --paper: rgba(255, 255, 255, 0.85);
  --paper-2: #fbfbfa;
  --text: #1c1c1a;
  --muted: #60605a;
  --muted-2: #9a9a94;
  --line: rgba(0, 0, 0, 0.06);
  --line-2: #dedbd3;
  --shadow: 0 16px 50px rgba(32, 31, 28, .04);
  --radius: 20px;
  --orange: #ed6d1d;
  --orange-hover: #d55913;
  --orange-alpha: rgba(237, 109, 29, 0.08);
  --success: #146c43;
  --success-bg: #f3faf6;
  --danger: #a02929;
  --danger-bg: #fce8e6;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --orb-opacity: 0.12;
}

body.dark-theme {
  /* DARK THEME VARIABLES */
  --bg: #0b0b0a;
  --bg-gradient: radial-gradient(circle at 10% 10%, rgba(237, 109, 29, 0.15), transparent 38rem),
                 radial-gradient(circle at 90% 10%, rgba(237, 109, 29, 0.04), transparent 32rem);
  --paper: rgba(20, 20, 18, 0.72);
  --paper-2: #141412;
  --text: #f5f5f3;
  --muted: #9c9c96;
  --muted-2: #5c5c56;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: #2a2a26;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --success: #1ebd74;
  --success-bg: rgba(30, 189, 116, 0.08);
  --danger: #ff5252;
  --danger-bg: rgba(255, 82, 82, 0.08);
  --orange: #ed6d1d;
  --orange-hover: #ff7e33;
  --orange-alpha: rgba(237, 109, 29, 0.18);
  --orb-opacity: 0.22;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font);
}

html {
  font-family: var(--font);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  padding: 24px 16px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* BACKGROUND GLOWING ORBS (FATOR WOW JOVEM) */
.glow-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: var(--orb-opacity);
  transition: opacity 0.4s ease;
}

.orb-1 {
  background: var(--orange);
  width: min(450px, 90vw);
  height: min(450px, 90vw);
  top: -10%;
  left: -10%;
  animation: drift-1 30s infinite alternate ease-in-out;
}

.orb-2 {
  background: #caa650;
  width: min(350px, 80vw);
  height: min(350px, 80vw);
  bottom: -5%;
  right: -5%;
  animation: drift-2 25s infinite alternate ease-in-out;
}

@keyframes drift-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(120px, -20px) scale(1); }
}

@keyframes drift-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -60px) scale(1.15); }
  100% { transform: translate(-30px, 20px) scale(1); }
}

/* CONTAINER SHELL */
.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  z-index: 1;
}

/* HEADER & MASTHEAD */
.header {
  margin-bottom: 32px;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  width: 100%;
}

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.headline {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.eyebrow {
  color: var(--orange);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 6px;
  display: inline-block;
  background: var(--orange-alpha);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(237, 109, 29, 0.15);
}

h1 {
  font-size: clamp(28px, 6vw, 40px);
  margin-top: 8px;
  letter-spacing: -0.05em;
  line-height: 1.05;
  font-weight: 900;
  text-align: center;
}

.promo-subtitle {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 8px;
  font-weight: 500;
  text-align: center;
  max-width: 440px;
  line-height: 1.45;
}

.badge-rayban {
  display: inline-block;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-alpha);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(237, 109, 29, 0.2);
  font-size: 14px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.logo-center {
  height: 28px;
  width: auto;
  display: block;
  transition: filter 0.4s ease;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background-color: var(--line-2);
}

.logo-xp {
  height: 26px;
  width: auto;
  display: block;
  border-radius: 4px;
}

body.dark-theme .logo-center {
  filter: invert(1) brightness(10);
}

body.dark-theme .logo-xp {
  filter: invert(1);
}

body.dark-theme .footer-logo {
  filter: invert(1) brightness(10);
}

/* THEME TOGGLE BUTTON */
.theme-toggle-btn {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  border-color: var(--orange);
  box-shadow: 0 0 15px var(--orange-alpha);
}

.theme-toggle-btn .sun-icon { display: none; width: 18px; height: 18px; }
.theme-toggle-btn .moon-icon { display: block; width: 18px; height: 18px; }


body.dark-theme .theme-toggle-btn .sun-icon { display: block; }
body.dark-theme .theme-toggle-btn .moon-icon { display: none; }

/* TOGGLE GROUP (Cursando / Já Me Formei) */
.toggle-group {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.toggle-btn {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
}

.toggle-btn:hover {
  border-color: var(--orange);
  color: var(--text);
}

.toggle-btn.active {
  background: var(--orange-alpha);
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-alpha);
}

/* MOBILE-FIRST CONTENT GRID (CENTERED SINGLE-COLUMN FOR THE FORM) */
.content-grid {
  display: block;
  margin: 0 auto;
  max-width: 520px;
  width: 100%;
  margin-bottom: 40px;
}

/* GLASSMORPHIC FORM CARD */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  position: relative;
}

@media (min-width: 600px) {
  .form-card {
    padding: 36px;
  }
}

/* GLOW BORDER EFFECT FOR ACTIVE FORM FOCUS */
.form-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), #caa650);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.form-card-header {
  margin-bottom: 24px;
}

.form-card h3 {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.form-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

/* lp-form & FIELDS */
.lp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.field label {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-left: 2px;
  transition: color 0.2s;
}

/* Highlight labels when input is active */
.field:focus-within label {
  color: var(--orange);
}

.field input, .field select {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper-2);
  color: var(--text);
  outline: none;
  font-size: 14.5px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  min-height: 48px;
}

.field input::placeholder {
  color: var(--muted-2);
}

.field input:focus, .field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-alpha);
  background: var(--paper);
}

/* CUSTOM DROPDOWN ARROW */
.field select {
  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='%236f6f6b' stroke-width='2' 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: 14px;
  padding-right: 40px;
}

body.dark-theme select {
  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='%239c9c96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* CONDITIONAL TRANSITIONS FOR SELECT "OUTROS" */
.conditional-field {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.3s ease;
}

.conditional-field.show {
  max-height: 84px;
  opacity: 1;
  margin-top: 4px;
}

/* VALIDATION FEEDBACK :USER-INVALID */
.field input:user-invalid, .field select:user-invalid {
  border-color: var(--danger);
  background-color: var(--danger-bg);
}

.field input:user-valid, .field select:user-valid {
  border-color: var(--success);
  background-color: var(--success-bg);
}

.error-msg {
  display: none;
  color: var(--danger);
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  margin-left: 2px;
  animation: fadeIn 0.2s ease-out;
}

.field input:user-invalid ~ .error-msg,
.field select:user-invalid ~ .error-msg {
  display: block;
}

/* NEON BUTTON ACTION ROW */
.action-row {
  margin-top: 8px;
}

.primary-btn {
  width: 100%;
  appearance: none;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.primary-btn:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(237, 109, 29, 0.35);
}

.primary-btn:active {
  transform: translateY(1px);
}

/* SUCCESS SCREEN & CHECK ANIMATION */
.success-screen {
  display: none;
  text-align: center;
  padding: 30px 10px;
  animation: fadeIn 0.4s ease-out forwards;
}

.success-screen.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(30, 189, 116, 0.2);
  animation: scaleBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleBounce {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.success-screen h3 {
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.success-screen p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 300px;
}

.instagram-follow-box {
  margin: 8px 0 16px;
  background: var(--paper-2);
  border: 1.5px dashed var(--orange-alpha);
  border-radius: 12px;
  padding: 12px 18px;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 320px;
}

.instagram-follow-box:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.instagram-follow-box a {
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  display: block;
}

.instagram-follow-box a span {
  color: var(--orange);
}

.secondary-btn {
  appearance: none;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13.5px;
  transition: transform .16s ease, box-shadow .16s ease, background-color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.secondary-btn:hover {
  background: var(--paper);
  border-color: var(--orange);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* FOOTER */
.footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

@media (min-width: 600px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.6;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 0;
  transition: color 0.16s;
}

.footer-nav a:hover {
  color: var(--orange);
}

/* FLOATING DASHBOARD LINK (FATOR INTERATIVO) */
.admin-link-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s, color 0.2s, background-color 0.2s, border-color 0.2s;
  z-index: 99;
}

.admin-link-btn:hover {
  transform: translateY(-2px) scale(1.05);
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(237, 109, 29, 0.2);
}

/* KEYFRAMES FOR TRANSITIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  display: none;
}

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

.primary-btn.loading .spinner {
  display: block;
}

.primary-btn.loading .btn-text {
  display: none;
}

/* Autocomplete suggestions dropdown list */
.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow);
  display: none;
  margin-top: 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.suggestions-list.show {
  display: block;
}

.suggestion-item {
  padding: 11px 14px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text);
  transition: background-color 0.16s, color 0.16s;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

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

.suggestion-item:hover, .suggestion-item.active {
  background-color: var(--orange-alpha);
  color: var(--orange);
  font-weight: 600;
}

.suggestion-item.static-item {
  color: var(--muted);
  font-weight: 500;
  border-top: 1px dashed var(--line-2);
  background: var(--paper-2);
}

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

/* CUSTOM FILE UPLOAD COMPONENT STYLE */
.custom-file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--line-2);
  border-radius: 12px;
  background: var(--paper-2);
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 6px;
  text-align: center;
}

.custom-file-upload:hover {
  border-color: var(--orange);
  background: var(--orange-alpha);
  box-shadow: 0 4px 12px rgba(237, 109, 29, 0.08);
}

.custom-file-upload .upload-icon {
  font-size: 26px;
  margin-bottom: 8px;
  display: block;
}

.custom-file-upload .upload-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  display: block;
}

.custom-file-upload .upload-subtext {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.custom-file-upload .file-name-display {
  font-size: 12.5px;
  color: var(--orange);
  font-weight: 600;
  background: rgba(237, 109, 29, 0.08);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(237, 109, 29, 0.12);
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

