/* ==========================================================================
   MILKY MOO RUN — PREMIUM SPORTIVE MODERN LANDING PAGE DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Fonts */
  --font-heading: 'Archivo Black', 'Inter', system-ui, sans-serif;
  --font-body: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Colors */
  --color-primary: #ee7aa0;       /* Hot Pink */
  --color-primary-light: #f7c0d2; /* Vibrant Soft Pink */
  --color-primary-hover: #f4a8bd; /* Hover State Pink */
  --color-primary-dark: #d55f84;  /* Muted Contrast Pink */
  
  --color-dark: #000000;          /* High-Contrast Pure Black */
  --color-white: #ffffff;
  --color-error: #ff2d55;         /* Vibrant Brutalist Red */
  --color-success: #2ec4b6;       /* Clean Sporty Green */
  --color-text-muted: #6b7280;

  /* Border Tokens */
  --border-main: 3px solid var(--color-dark);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Centered Mobile-First Container */
.app-container {
  width: 100%;
  max-width: 480px;
  padding: 0 20px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ==========================================================================
   TOP LAYERED PINK WAVY HEADER
   ========================================================================== */
.top-waves-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.top-waves-svg,
.top-waves-img {
  width: 100%;
  height: clamp(65px, 12vw, 110px);
  display: block;
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   APP HEADER & RUNNING COW BRAND LOGO
   ========================================================================== */
.app-header {
  text-align: center;
  position: relative;
  z-index: 5;
  padding-top: clamp(65px, 14vw, 100px);
  margin-bottom: clamp(16px, 4vw, 24px);
  display: flex;
  justify-content: center;
}

.brand-logo {
  display: block;
  width: 90%;
  max-width: 320px;
  height: auto;
  user-select: none;
  animation: slideInLogo 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideInLogo {
  0% {
    opacity: 0;
    transform: translateX(-150vw) rotate(-20deg);
  }
  60% {
    opacity: 1;
    transform: translateX(10%) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

/* ==========================================================================
   DATE SECTION PILL & FLANKING STICKERS
   ========================================================================== */
.date-badge-row {
  position: relative;
  display: inline-flex;
  align-self: center;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  margin-bottom: clamp(28px, 8vw, 40px);
  z-index: 10;
}

.date-pill {
  background-color: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(14px, 4vw, 17px);
  font-weight: 900;
  padding: 10px 32px;
  border-radius: 99px;
  text-align: center;
  letter-spacing: 0.05em;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--color-white);
}

.date-sticker {
  position: absolute;
  width: clamp(52px, 12vw, 68px);
  height: auto;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 12;
}

.date-sticker img {
  width: 100%;
  height: auto;
  display: block;
}

.date-sticker--left {
  left: -28px;
  top: -12px;
  transform: rotate(-12deg);
  animation: floatStickerLeft 6s ease-in-out infinite;
}

.date-sticker--right {
  right: -25px;
  top: -6px;
  transform: rotate(12deg);
  animation: floatStickerRight 6.5s ease-in-out infinite 0.5s;
}

@keyframes floatStickerLeft {
  0% {
    transform: rotate(-12deg) translateY(0px);
  }
  50% {
    transform: rotate(-9deg) translateY(-5px) scale(1.05);
  }
  100% {
    transform: rotate(-12deg) translateY(0px);
  }
}

@keyframes floatStickerRight {
  0% {
    transform: rotate(12deg) translateY(0px);
  }
  50% {
    transform: rotate(15deg) translateY(-5px) scale(1.05);
  }
  100% {
    transform: rotate(12deg) translateY(0px);
  }
}

/* Hover effect on desktop */
@media (hover: hover) {
  .date-badge-row:hover .date-sticker--left {
    transform: rotate(-20deg) scale(1.1);
  }
  .date-badge-row:hover .date-sticker--right {
    transform: rotate(20deg) scale(1.1);
  }
}

/* ==========================================================================
   REGISTRATION CARD CONTAINER
   ========================================================================== */
.registration-container {
  position: relative;
  width: 100%;
  margin-bottom: clamp(32px, 8vw, 48px);
  z-index: 10;
}

/* Overlapping pill badge at the top-center */
.card-badge-header {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 3px solid var(--color-primary);
  font-family: var(--font-heading);
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 900;
  padding: 6px 20px;
  border-radius: 99px;
  z-index: 15;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08);
}

/* Flanking Card Overlapping Stickers */
.card-sticker {
  position: absolute;
  width: clamp(65px, 14vw, 85px);
  height: auto;
  z-index: 15;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.2));
}

.card-sticker img {
  width: 100%;
  height: auto;
  display: block;
}

.card-sticker--top-left {
  top: -24px;
  left: -20px;
  transform: rotate(-12deg);
  animation: floatStickerLeftCard 7s ease-in-out infinite 1s;
}

.card-sticker--bottom-right {
  bottom: -22px;
  right: -20px;
  transform: rotate(12deg);
  animation: floatStickerRightCard 7.5s ease-in-out infinite 1.5s;
}

@keyframes floatStickerLeftCard {
  0% {
    transform: rotate(-12deg) translateY(0px);
  }
  50% {
    transform: rotate(-15deg) translateY(-5px) scale(1.05);
  }
  100% {
    transform: rotate(-12deg) translateY(0px);
  }
}

@keyframes floatStickerRightCard {
  0% {
    transform: rotate(12deg) translateY(0px);
  }
  50% {
    transform: rotate(9deg) translateY(-5px) scale(1.05);
  }
  100% {
    transform: rotate(12deg) translateY(0px);
  }
}

/* Solid Black Card Form */
.card {
  background-color: var(--color-dark);
  border: none;
  border-radius: 28px;
  padding: clamp(24px, 6vw, 36px);
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.form-grid-single {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.card label {
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: inline-block;
  text-align: left;
}

/* White Form Inputs */
.card input[type="text"],
.card input[type="email"] {
  background-color: var(--color-white);
  color: var(--color-dark);
  border: none;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  box-shadow: none;
  width: 100%;
  outline: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card input[type="text"]::placeholder,
.card input[type="email"]::placeholder {
  color: #a0a0a0;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.card input:focus {
  transform: none;
  box-shadow: 0 0 0 3px rgba(238, 122, 160, 0.5);
  background-color: var(--color-white);
}

/* WhatsApp action/spinner wrapper */
.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-spinner {
  position: absolute;
  right: 16px;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--color-primary);
  display: none;
  animation: spin 0.8s linear infinite;
  z-index: 10;
}

/* Privacy/LGPD Checkbox inside Card */
.privacy-checkbox-wrapper {
  margin-top: 4px;
  text-align: left;
}

.privacy-checkbox-wrapper .checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.privacy-checkbox-wrapper input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.privacy-checkbox-wrapper .checkbox-ui {
  background-color: var(--color-white);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.privacy-checkbox-wrapper .checkbox-container:hover .checkbox-ui {
  background-color: #f5f5f5;
  transform: none;
  box-shadow: none;
}

.privacy-checkbox-wrapper input:checked + .checkbox-ui {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: none;
  box-shadow: none;
}

.privacy-checkbox-wrapper input:checked + .checkbox-ui::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.privacy-checkbox-wrapper .checkbox-label {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.privacy-checkbox-wrapper .checkbox-label .required {
  color: var(--color-primary);
  font-weight: 800;
}

/* Error message validations */
.error-message {
  font-size: 11px;
  color: var(--color-error);
  font-weight: 800;
  margin-top: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: left;
}

input.error-field {
  border: 2px solid var(--color-error) !important;
  background-color: #fff0f2 !important;
}

input.warning-field {
  border: 2px solid var(--color-primary-dark) !important;
  background-color: #fff9fa !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.form-actions-vertical {
  width: 100%;
}

.card .pill {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  border: none !important;
  border-radius: 99px !important;
  padding: 16px 28px !important;
  font-family: var(--font-heading) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0px 4px 12px rgba(238, 122, 160, 0.3) !important;
  cursor: pointer;
  outline: none !important;
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.card .pill:hover {
  background: #f18eb0 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0px 6px 16px rgba(238, 122, 160, 0.4) !important;
}

.card .pill:active {
  transform: translateY(1px) !important;
  box-shadow: 0px 2px 8px rgba(238, 122, 160, 0.2) !important;
}

.card .pill:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

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

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

/* ==========================================================================
   SUCCESS MODAL OVERLAY & POPUP CARD
   ========================================================================== */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.success-overlay.active {
  display: flex;
  animation: fadeInOverlay 0.3s ease forwards;
}

.success-popup-card {
  background-color: #000000;
  border-radius: 36px;
  padding: 40px 30px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.9);
  opacity: 0;
  animation: scaleUpCard 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25) forwards 0.1s;
}

/* Close Button (x) */
.popup-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.popup-close-btn svg {
  width: 12px;
  height: 12px;
}

.popup-close-btn:hover {
  transform: scale(1.1);
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Header Row (Icon + Text) */
.popup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 15px;
  margin-bottom: 25px;
}

.popup-check-icon {
  width: 50px;
  height: 50px;
  border: 3.5px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.popup-check-icon svg {
  width: 24px;
  height: 24px;
}

.popup-header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #ffffff;
}

/* Participant Name */
.popup-participant-name {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(24px, 6vw, 36px);
  color: #ffffff;
  margin: 15px 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  word-break: break-word;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUpCard {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   CENTERED COPYWRITING SECTION
   ========================================================================== */
.info-section {
  text-align: center;
  padding: 8px clamp(12px, 4vw, 24px) 24px clamp(12px, 4vw, 24px);
  color: var(--color-dark);
  width: 100%;
}

.info-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 5.5vw, 24px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.info-section p {
  font-family: var(--font-body);
  font-size: clamp(12px, 3.2vw, 13.5px);
  line-height: 1.6;
  color: #374151;
  margin-bottom: 18px;
  font-weight: 500;
}

.info-section .highlight-text {
  font-family: var(--font-heading);
  font-size: clamp(13px, 3.5vw, 15px);
  color: var(--color-dark);
  margin: 24px 0;
  line-height: 1.4;
}

.info-section .highlight-text strong {
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.info-meta {
  font-family: var(--font-heading);
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.5;
  margin: 28px 0;
  color: var(--color-dark);
  letter-spacing: 0.05em;
}

.info-footer-cta {
  font-family: var(--font-heading);
  font-size: clamp(12px, 3.2vw, 13px);
  line-height: 1.5;
  color: var(--color-dark);
  margin-top: 24px;
}

.official-notice-warning {
  font-family: var(--font-body);
  font-size: clamp(10px, 2.8vw, 11px) !important;
  color: var(--color-text-muted) !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   LGPD PRIVACY MODAL OVERLAY
   ========================================================================== */
.privacy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.privacy-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.privacy-modal-card {
  background-color: var(--color-white);
  width: 90%;
  max-width: 420px;
  border-radius: 20px;
  padding: 32px 24px;
  position: relative;
  box-shadow: 0px 12px 32px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.privacy-modal.active .privacy-modal-card {
  transform: scale(1);
}

.privacy-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #a0a0a0;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.privacy-modal-close:hover {
  color: var(--color-dark);
}

.privacy-modal-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--color-dark);
  margin-bottom: 16px;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: left;
}

.privacy-modal-scroller {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 8px;
  text-align: left;
}

.privacy-modal-scroller p {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 12px;
}

.privacy-modal-scroller::-webkit-scrollbar {
  width: 6px;
}

.privacy-modal-scroller::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 99px;
}

.privacy-modal-scroller::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 99px;
}

.privacy-modal-scroller::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ==========================================================================
   WAVY BLACK SOCIAL FOOTER
   ========================================================================== */
.app-footer-wrapper {
  position: relative;
  width: 100%;
  margin-top: 36px;
  z-index: 10;
}

.footer-wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-wave-img,
.footer-wave img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

.footer-black-content {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 24px 20px 24px 20px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 16px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-mm-logo {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-divider {
  width: 1px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.25);
  display: none;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.socials-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #8c8c8c;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons a {
  color: var(--color-white);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
}

.social-icons a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-right {
  width: 100%;
  text-align: center;
}

.footer-privacy-link {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-privacy-link:hover {
  color: var(--color-primary);
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 9px;
  color: #6b7280;
  text-align: center;
  font-weight: 500;
}

/* Footer layout on larger viewports */
@media (min-width: 480px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-left {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  
  .footer-divider {
    display: block;
  }
  
  .footer-socials {
    align-items: flex-start;
  }
  
  .footer-right {
    width: auto;
    text-align: right;
  }
}
