/* ==========================================================================
   BLACK FRIDAY DA PD VITALÍCIA - ANTECIPAÇÃO VIP
   Identidade Visual: Patricia Davidson Black Friday
   ========================================================================== */

:root {
  --bg-dark: #07030e;
  --bg-darker: #040108;
  --card-bg: rgba(18, 8, 30, 0.88);
  --card-border: rgba(168, 85, 247, 0.28);
  --card-border-focus: #a855f7;
  
  --primary-purple: #9d2feb;
  --vibrant-magenta: #d926e8;
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --glow-color: rgba(168, 85, 247, 0.35);
  
  --cta-green: #1da855;
  --cta-green-hover: #169348;
  --cta-green-glow: rgba(29, 168, 85, 0.45);
  
  --text-white: #ffffff;
  --text-muted: #c4b5fd;
  --text-subtle: #948aa5;
  --text-dark: #1e1b2e;
  
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.16);
  --input-text: #ffffff;
  --input-placeholder: #8b809e;
  
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-speed: 0.25s;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Background Atmosphere */
.bg-ambience {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(157, 47, 235, 0.45) 0%, rgba(112, 26, 179, 0.1) 70%, transparent 100%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(13, 22, 69, 0.05) 70%, transparent 100%);
  bottom: -100px;
  left: -100px;
}

.glow-orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(217, 38, 232, 0.3) 0%, transparent 70%);
  top: 40%;
  right: -120px;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
}

/* Container */
.main-wrapper {
  position: relative;
  z-index: 1;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.25rem 1rem 2.5rem;
}

/* Top Animated Announcement Bar / Faixa */
.top-banner-bar {
  width: 100%;
  position: relative;
  z-index: 20;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, #9d2feb, #d926e8, #2563eb, #ff0080, #9d2feb);
  background-size: 300% 100%;
  animation: bannerGradientFlow 4s linear infinite;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top-banner-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  animation: bannerShimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bannerGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes bannerShimmer {
  0% { left: -100%; }
  50%, 100% { left: 160%; }
}

.top-banner-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.top-banner-text {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 255, 255, 0.4);
}

.top-banner-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e, 0 0 4px #ffffff;
  animation: pulseDot 1.2s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Main Content Area */
.content-container {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5rem auto 0;
}

/* Logo Center Section */
.logo-header {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.25rem;
  width: 100%;
}

.logo-header .brand-logo {
  max-width: 290px;
  width: 85%;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 10px 25px rgba(157, 47, 235, 0.45));
  transition: transform 0.3s ease;
}

.logo-header .brand-logo:hover {
  transform: scale(1.02);
}

/* Headline & Subtitle */
.hero-copy {
  text-align: center;
  margin-bottom: 1.75rem;
  padding: 0 0.5rem;
}

.hero-copy .headline {
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-white);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.hero-copy .highlight-pink {
  color: #ff3df0;
  text-shadow: 0 0 20px rgba(255, 61, 240, 0.6);
  font-weight: 900;
}

.hero-copy .highlight-purple {
  color: #c084fc;
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.5);
  font-weight: 900;
}

.hero-copy .subheadline {
  font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  color: #d1c9e4;
  line-height: 1.55;
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto;
}

.hero-copy .subheadline strong {
  color: #ffffff;
  font-weight: 700;
}

/* Form Card */
.form-card {
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(157, 47, 235, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #9d2feb, #d926e8, #2563eb);
  background-size: 200% 100%;
  animation: borderShimmer 4s linear infinite;
}

@keyframes borderShimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.card-header-badge {
  text-align: center;
  margin-bottom: 1.5rem;
}

.card-header-badge h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.card-header-badge p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Form Styles */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f0f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .required-mark {
  color: #ff5252;
  margin-left: 2px;
}

.form-label .optional-mark {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 400;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input, .form-textarea {
  width: 100%;
  background-color: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--input-text);
  outline: none;
  transition: all var(--transition-speed) ease;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--input-placeholder);
  font-size: 0.95rem;
}

.form-input:hover, .form-textarea:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.08);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary-purple);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(157, 47, 235, 0.25);
}

/* Phone Input with Country Code Selector */
.phone-field-wrapper {
  display: flex;
  position: relative;
  border-radius: 12px;
  border: 1.5px solid var(--input-border);
  background-color: var(--input-bg);
  transition: all var(--transition-speed) ease;
}

.phone-field-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.08);
}

.phone-field-wrapper.focused {
  border-color: var(--primary-purple);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(157, 47, 235, 0.25);
}

.country-selector {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-right: 1.5px solid rgba(255, 255, 255, 0.12);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  cursor: pointer;
  user-select: none;
}

.country-selector:hover {
  background: rgba(255, 255, 255, 0.08);
}

.country-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.country-arrow {
  width: 10px;
  height: 6px;
  fill: #c4b5fd;
  transition: transform 0.2s ease;
}

.country-selector.active .country-arrow {
  transform: rotate(180deg);
}

.phone-input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 10px 10px 0 !important;
  padding-left: 0.85rem !important;
}

/* Country Dropdown Menu */
.country-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #190a2a;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  width: 260px;
}

.country-dropdown.show {
  display: block;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #e5e0f5;
  transition: background 0.15s ease;
}

.country-item:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #ffffff;
}

.country-item .dial-code {
  color: #a855f7;
  font-weight: 600;
  margin-left: auto;
}

/* Textarea */
.form-textarea {
  min-height: 95px;
  resize: vertical;
}

/* Submit CTA Button */
.submit-btn-wrapper {
  margin-top: 0.5rem;
}

.cta-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 1.15rem 1.5rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 
    0 10px 25px var(--cta-green-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: btnShine 3.5s infinite;
}

@keyframes btnShine {
  0% { left: -60%; }
  35%, 100% { left: 140%; }
}

.cta-button:hover {
  background: linear-gradient(180deg, #25d366 0%, #17b353 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 15px 30px rgba(34, 197, 94, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.cta-button:active {
  transform: translateY(1px);
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
}

.cta-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Guarantee / Privacy */
.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 1rem;
  text-align: center;
}

.security-note svg {
  width: 14px;
  height: 14px;
  fill: #22c55e;
  flex-shrink: 0;
}

/* Error message */
.field-error {
  color: #ff6b6b;
  font-size: 0.78rem;
  margin-top: 0.2rem;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

.form-group.has-error .form-input,
.form-group.has-error .phone-field-wrapper {
  border-color: #ff5252 !important;
}

/* Programs Included List - Black Friday Style */
.included-programs-section {
  margin-top: 2rem;
  width: 100%;
  text-align: center;
}

.included-programs-title {
  font-size: 0.95rem;
  color: #c4b5fd;
  margin-bottom: 1rem;
  font-weight: 600;
}

.included-programs-title strong {
  color: #ff3df0;
  text-shadow: 0 0 10px rgba(255, 61, 240, 0.4);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.program-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 0.65rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e5e0f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.program-chip:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

.program-chip .chip-icon {
  font-size: 1.15rem;
}

/* Success Modal / State */
.success-card {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon-badge {
  width: 72px;
  height: 72px;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #22c55e;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
}

.success-icon-badge svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.success-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.success-desc {
  font-size: 0.95rem;
  color: #d1c9e4;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 1.1rem 1.5rem;
  border-radius: 14px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.whatsapp-btn:hover {
  background: #22bf5b;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Footer */
.page-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #746d88;
  max-width: 480px;
}

.page-footer a {
  color: #9d8db8;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .main-wrapper {
    padding: 1rem 0.85rem 2rem;
  }
  
  .form-card {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }
  
  .logo-header .brand-logo {
    max-width: 260px;
  }
  
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
