/* ==================================================
   NEWSLETTER — Eye-Catching Premium Design
   ================================================== */

/* --- Alpine.js x-cloak --- */
[x-cloak] { display: none !important; }

/* --- Section --- */
.hv2-newsletter-section {
  padding: 20px 0 40px;
  position: relative;
  overflow: visible;
}

/* --- Wrapper --- */
.nl-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #0a3d38 50%, var(--primary-hover) 100%);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  min-height: 280px;
  margin: 0 auto;
}

.nl-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 400px 300px at 20% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 350px 350px at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

/* --- Floating Shapes (Background Decorations) --- */
.nl-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.nl-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.nl-shape-1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -60px;
  animation: nlFloat1 8s ease-in-out infinite;
}

.nl-shape-2 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: 10%;
  animation: nlFloat2 10s ease-in-out infinite;
}

.nl-shape-3 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 40%;
  background: rgba(245, 158, 11, 0.05);
  animation: nlFloat3 7s ease-in-out infinite;
}

.nl-shape-4 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  right: 25%;
  background: rgba(255, 255, 255, 0.05);
  animation: nlFloat1 9s ease-in-out infinite reverse;
}

.nl-shape-5 {
  width: 120px;
  height: 120px;
  top: 50%;
  left: -30px;
  background: rgba(245, 158, 11, 0.04);
  animation: nlFloat2 11s ease-in-out infinite reverse;
}

@keyframes nlFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 15px) scale(1.05); }
}

@keyframes nlFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -20px) scale(1.08); }
}

@keyframes nlFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-10px, 10px) rotate(180deg); }
}

/* --- Floating Travel Icons --- */
.nl-float-icons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.nl-float-icon {
  position: absolute;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.08);
}

.nl-float-icon-1 {
  top: 15%;
  left: 8%;
  animation: nlIconFloat 6s ease-in-out infinite;
  font-size: 22px;
  transform: rotate(-15deg);
}

.nl-float-icon-2 {
  top: 70%;
  left: 20%;
  animation: nlIconFloat 8s ease-in-out infinite 1s;
  font-size: 20px;
}

.nl-float-icon-3 {
  top: 20%;
  right: 15%;
  animation: nlIconFloat 7s ease-in-out infinite 2s;
  font-size: 16px;
  transform: rotate(20deg);
}

.nl-float-icon-4 {
  bottom: 20%;
  right: 10%;
  animation: nlIconFloat 9s ease-in-out infinite 0.5s;
  font-size: 30px;
}

.nl-float-icon-5 {
  bottom: 40%;
  left: 50%;
  animation: nlIconFloat 7.5s ease-in-out infinite 1.5s;
  font-size: 18px;
  transform: rotate(-10deg);
}

@keyframes nlIconFloat {
  0%, 100% { transform: translateY(0); opacity: 0.08; }
  50% { transform: translateY(-12px); opacity: 0.15; }
}

/* --- Inner Layout (CSS Grid) --- */
.nl-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 56px;
  align-items: center;
  width: 100%;
}

/* --- Left Content --- */
.nl-content {
  max-width: 620px;
}

.nl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warning);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.nl-badge i {
  font-size: 10px;
}

@keyframes nlPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.nl-title {
  font-size: 38px;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.nl-title-highlight {
  color: var(--warning);
  font-weight: 800;
}

.nl-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 500px;
}

.nl-subtitle strong {
  color: #ffffff;
  font-weight: 700;
}

/* --- Trust Section --- */
.nl-trust {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nl-trust-avatars {
  display: flex;
  align-items: center;
}

.nl-trust-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  margin-left: -10px;
  transition: transform 0.3s, border-color 0.3s;
}

.nl-trust-avatars img:first-child {
  margin-left: 0;
}

.nl-trust-avatars img:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: var(--warning);
  z-index: 2;
}

.nl-trust-avatars-more {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  margin-left: -10px;
}

.nl-trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nl-trust-stars {
  display: flex;
  gap: 2px;
  color: var(--warning);
  font-size: 12px;
}

.nl-trust-text span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.nl-trust-text span strong {
  color: white;
  font-weight: 700;
}

/* --- Right Form Area --- */
.nl-form-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Form Card --- */
.nl-form-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 22px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nl-form-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.nl-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.nl-form-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warning);
  font-size: 15px;
  flex-shrink: 0;
}

.nl-form-label {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 1px;
}

.nl-form-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Form Fields --- */
.nl-form {
  margin-bottom: 14px;
}

.nl-form-fields {
  display: flex;
  gap: 8px;
}

.nl-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.nl-input-group:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.nl-input-icon {
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  flex-shrink: 0;
  transition: color 0.3s;
}

.nl-input-group:focus-within .nl-input-icon {
  color: white;
}

.nl-input-group input {
  flex: 1;
  border: none;
  background: transparent;
  color: white;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  width: 100%;
}

.nl-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.nl-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--warning);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  flex-shrink: 0;
}

.nl-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  background: #e09100;
}

.nl-submit-btn:active {
  transform: translateY(0) scale(0.98);
}

.nl-submit-btn i {
  font-size: 13px;
  transition: transform 0.3s;
}

.nl-submit-btn:hover i {
  transform: translateX(4px);
}

/* --- Perks --- */
.nl-perks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nl-perk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.nl-perk i {
  color: white;
  font-size: 10px;
}

/* --- Screen Reader Only --- */
.nl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .nl-shape,
  .nl-float-icon,
  .nl-badge {
    animation: none !important;
  }
  .nl-shape { transform: none !important; }
  .nl-float-icon { transform: none !important; opacity: 0.08 !important; }
  .nl-badge { box-shadow: none !important; }
  .nl-submit-btn,
  .nl-trust-avatars img {
    transition: none !important;
  }
}

/* ==================================================
   RESPONSIVE — Newsletter (Custom CSS Grid)
   ================================================== */
@media (max-width: 1200px) {
  .nl-inner {
    grid-template-columns: 1fr 340px;
    gap: 40px;
  }
  .nl-title { font-size: 32px; }
  .nl-wrapper { padding: 44px 52px; }
}

@media (max-width: 900px) {
  .nl-wrapper {
    padding: 32px 28px;
    min-height: auto;
  }
  .nl-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .nl-content {
    max-width: 100%;
  }
  .nl-title { font-size: 28px; }
  .nl-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .nl-trust { justify-content: center; }
  .nl-form-fields { flex-direction: column; }
  .nl-submit-btn { justify-content: center; width: 100%; }
  .nl-perks { justify-content: center; }
  .nl-float-icons { display: none; }
}

@media (max-width: 540px) {
  .nl-wrapper {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .nl-title { font-size: 22px; }
  .nl-subtitle { font-size: 14px; }
  .nl-badge { font-size: 10px; padding: 6px 12px; }
  .nl-form-card { padding: 18px; }
  .nl-trust { flex-direction: column; gap: 10px; }
  .nl-form-header { margin-bottom: 14px; }
  .nl-form-icon { width: 32px; height: 32px; font-size: 14px; }
  .nl-form-label { font-size: 14px; }
}
