/* ── Fonts ─────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Top Bar (Logo) ───────────────────────────────────────────────────── */
.top-bar {
  background-color: #b5467a;
  padding: 14px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

.top-bar .logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: none;
}

.top-bar .logo-dot {
  color: #ffd54f;
  font-size: 32px;
  line-height: 0;
  vertical-align: super;
}

/* ── Hero Section ─────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(180,70,122,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 8s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Decorative star */
.hero-star {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  animation: float-star 3s ease-in-out infinite;
}

.hero-star svg {
  width: 40px;
  height: 40px;
  fill: #ffd54f;
  filter: drop-shadow(0 2px 6px rgba(255,213,79,0.5));
}

@keyframes float-star {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Decorative swoosh */
.hero-swoosh {
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
}

.hero-swoosh svg {
  width: 60px;
  height: 30px;
  fill: none;
  stroke: #ffd54f;
  stroke-width: 3;
  stroke-linecap: round;
}

.hero-title {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.hero-title h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
}

.hero-title h1 .highlight-pink {
  background-color: rgba(181, 70, 122, 0.85);
  padding: 2px 12px;
  border-radius: 6px;
  display: inline;
}

.hero-title h1 .highlight-blue {
  background: linear-gradient(135deg, rgba(100, 140, 200, 0.7), rgba(80, 120, 180, 0.7));
  padding: 2px 12px;
  border-radius: 6px;
  display: inline;
}

.hero-subtitle {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 400;
  max-width: 420px;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Products visual area ─────────────────────────────────────────────── */
.products-section {
  background: #ffffff;
  padding: 40px 20px 60px;
  text-align: center;
  position: relative;
  color: #000000;
}

.products-placeholder {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.products-placeholder .placeholder-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ── Form Section ─────────────────────────────────────────────────────── */
.form-section {
  background-color: #ffffff;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

.form-wrapper {
  width: 100%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background-color: #fdf2f7;
  border-radius: 8px;
  border: 1px solid #f0d6e5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group:focus-within {
  border-color: #b5467a;
  box-shadow: 0 0 0 3px rgba(181, 70, 122, 0.1);
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: #5c3060;
  white-space: nowrap;
  min-width: 65px;
}

.form-group input {
  flex: 1;
  border: none;
  border-bottom: 1.5px solid #d4b8c8;
  background: transparent;
  padding: 8px 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input::placeholder {
  color: #bba0b0;
  font-weight: 300;
}

.form-group input:focus {
  border-bottom-color: #b5467a;
}

/* ── Submit Button ────────────────────────────────────────────────────── */
.submit-wrapper {
  text-align: center;
  padding: 10px 20px 50px;
  background-color: #ffffff;
}

#submitBtn {
  display: inline-block;
  padding: 16px 50px;
  background-color: #5c3060;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#submitBtn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

#submitBtn:hover {
  background-color: #7a3d8f;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(92, 48, 96, 0.35);
}

#submitBtn:hover::after {
  width: 300px;
  height: 300px;
}

#submitBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(92, 48, 96, 0.25);
}

#submitBtn:disabled {
  background-color: #c2b0c8;
  color: #8a7090;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Spinner ──────────────────────────────────────────────────────────── */
.spinner {
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  background-color: #432559; /* Nova cor aplicada, removendo o gradient */
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-left .footer-logo {
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-divider {
  width: 1.5px;
  height: 28px;
  background-color: rgba(255,255,255,0.5);
}

.footer-right .footer-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.footer-right .footer-brand-dot {
  color: #ffd54f;
}

/* ── Thank You Page ───────────────────────────────────────────────────── */
.thank-you-page {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}

.thank-you-page .top-bar {
  flex-shrink: 0;
}

.thank-you-content {
  flex: 1;
  background: linear-gradient(135deg, #8e3a6e 0%, #6b3fa0 40%, #4a3d8f 70%, #3d3580 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 20px;
}

.thank-you-content::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
  border-radius: 50%;
  animation: pulse-glow 6s ease-in-out infinite;
}

.thank-you-check {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 100px;
  border: 3px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  animation: check-appear 0.6s ease-out;
}

@keyframes check-appear {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.thank-you-check svg {
  width: 50px;
  height: 50px;
  stroke: rgba(255,255,255,0.85);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thank-you-content h2 {
  position: relative;
  z-index: 2;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  text-align: center;
  animation: fade-up 0.5s ease-out 0.3s both;
}

.thank-you-content .back-link {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  animation: fade-up 0.5s ease-out 0.5s both;
}

.thank-you-content .back-link:hover {
  color: rgba(255,255,255,0.9);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.thank-you-page .footer {
  flex-shrink: 0;
}

/* ── Error Messages ───────────────────────────────────────────────────── */
.error-message {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 4px;
  font-weight: 600;
  padding-left: 24px;
}

/* ── Main page wrapper ────────────────────────────────────────────────── */
.main-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-section {
    padding: 40px 24px 60px;
  }

  .hero-title h1 {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 18px;
  }

  .form-group label {
    min-width: unset;
  }

  .form-group input {
    width: 100%;
  }

  .footer {
    display: flex !important;
    flex-direction: row-reverse !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important; /* Joga uma para cada lado */
    align-items: center;
    padding: 20px 24px; /* Mantém uma margem lateral respirável */
  }

  /* Ajuste fino para as imagens no mobile */
  .footer-left img {
    max-width: 90px !important;
  }

  .footer-right img {
    max-width: 75px !important;
  }

  .thank-you-content h2 {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .hero-title h1 {
    font-size: 20px;
  }

  .top-bar .logo-text {
    font-size: 22px;
  }

  #submitBtn {
    padding: 14px 36px;
    font-size: 13px;
  }
}
