/* ==============================================
   NEWSLETTER PAGE STYLES
   ============================================== */

:root {
  --serendipia-orange: #ff5722;
  --serendipia-red: #e64a19;
  --serendipia-dark: #1a1a1a;
  --serendipia-black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  background: #050505;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==============================================
   BACK BUTTON
   ============================================== */

.back-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--serendipia-black);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.back-button:hover {
  background: var(--serendipia-dark);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* ==============================================
   MAIN CONTAINER
   ============================================== */

.newsletter-container {
  min-height: 100vh;
  padding: 4rem 1.5rem 3rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #050505;
}

.newsletter-content {
  max-width: 1200px;
  width: 100%;
}

/* ==============================================
   HERO SECTION
   ============================================== */

.hero-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: var(--serendipia-orange);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
}

.icon-container i {
  font-size: 2rem;
  color: white;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.gradient-text {
  color: #C5A059;
}

.subtitle {
  font-size: 1.05rem;
  color: #d6d3d1;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

/* ==============================================
   BENEFITS GRID
   ============================================== */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

.benefit-card {
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.25s ease;
  border: 1px solid rgba(41, 37, 36, 0.3);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.4);
}

.benefit-card:hover {
  background: rgba(22, 22, 22, 0.7);
  border-color: rgba(197, 160, 89, 0.25);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, #C5A059, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: opacity 0.25s ease;
  opacity: 0.95;
}

.benefit-card:hover .benefit-icon {
  opacity: 1;
}

.benefit-icon i {
  font-size: 1.25rem;
  color: white;
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.benefit-card p {
  font-size: 0.875rem;
  color: rgba(214, 211, 209, 0.9);
  line-height: 1.5;
  font-weight: 300;
}

/* ==============================================
   FORM CONTAINER
   ============================================== */

.form-container {
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(41, 37, 36, 0.3);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.form-header p {
  font-size: 0.95rem;
  color: #d6d3d1;
}

/* ==============================================
   SUBSCRIPTION FORM
   ============================================== */

.subscription-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 400;
  color: #d6d3d1;
  margin-bottom: 0.5rem;
}

.form-group label i {
  margin-right: 0.5rem;
  color: #C5A059;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.form-group input:focus {
  outline: none;
  border-color: #C5A059;
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.08);
  background: rgba(0, 0, 0, 0.5);
}

.form-group input::placeholder {
  color: rgba(168, 162, 158, 0.5);
}

/* ==============================================
   CHECKBOX CUSTOM
   ============================================== */

.checkbox-group {
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: white;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
  background: var(--serendipia-orange);
  border-color: var(--serendipia-orange);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: white;
  font-size: 0.75rem;
}

.checkbox-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.checkbox-text a {
  color: var(--serendipia-orange);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.checkbox-text a:hover {
  color: var(--serendipia-red);
}

/* ==============================================
   SUBMIT BUTTON
   ============================================== */

.submit-button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--serendipia-orange);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.25);
}

.submit-button:hover {
  background: var(--serendipia-red);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.35);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-note i {
  margin-right: 0.5rem;
  color: var(--serendipia-orange);
}

/* ==============================================
   SUCCESS MESSAGE
   ============================================== */

.success-message {
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-message.hidden {
  display: none;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-icon i {
  font-size: 2.5rem;
  color: white;
}

.success-message h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.success-message p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.reset-button {
  padding: 0.875rem 2rem;
  background: var(--gray-200);
  color: var(--gray-800);
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reset-button:hover {
  background: var(--gray-300);
  transform: translateY(-2px);
}

/* ==============================================
   SOCIAL PROOF
   ============================================== */

.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  margin-bottom: 0;
  border: 1px solid rgba(41, 37, 36, 0.3);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards;
}

.proof-item {
  text-align: center;
}

.proof-number {
  font-size: 2rem;
  font-weight: 600;
  color: #C5A059;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.proof-text {
  font-size: 0.875rem;
  color: #d6d3d1;
  font-weight: 400;
}

.proof-divider {
  width: 1px;
  height: 50px;
  background: rgba(41, 37, 36, 0.5);
}

/* ==============================================
   ANIMATIONS
   ============================================== */

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 768px) {
  .newsletter-container {
    padding: 3rem 1rem 2rem;
  }

  .main-title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .social-proof {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .proof-divider {
    width: 50px;
    height: 2px;
  }

  .back-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.75rem;
  }

  .form-header h2 {
    font-size: 1.25rem;
  }

  .benefit-card {
    padding: 1.25rem;
  }

  .icon-container {
    width: 60px;
    height: 60px;
  }

  .icon-container i {
    font-size: 1.5rem;
  }
}
