/* ==================================================
   TRIPFLORIC NEWSLETTER BAND — Full-Bleed Reference Design
   Pitch | Travel Landmarks Illustration | Subscribe Card
   Attached seamlessly to the dark footer
   ================================================== */

[x-cloak] { display: none !important; }

.tf-news-band {
  position: relative;
  width: 100%;
  background:
    radial-gradient(ellipse 900px 420px at 50% 100%, rgba(255, 255, 255, 0.75) 0%, transparent 70%),
    radial-gradient(ellipse 600px 350px at 10% 20%, rgba(255, 255, 255, 0.8) 0%, transparent 60%),
    radial-gradient(ellipse 700px 400px at 90% 25%, rgba(255, 255, 255, 0.65) 0%, transparent 65%),
    linear-gradient(180deg, #F0F6FE 0%, #E2EDFA 35%, #D4E5F7 75%, #C2DCF5 100%);
  padding: 50px 0 55px;
  overflow: hidden;
  margin-bottom: 0;
  border-top: 1px solid rgba(0, 84, 166, 0.12);
}

.tf-news-band .nl-container {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.tf-news-band .nl-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.15fr;
  gap: 20px 32px;
  align-items: center;
  width: 100%;
}

/* ---------- Left: Pitch ---------- */
.tf-news-band .nl-content {
  max-width: 440px;
  position: relative;
  z-index: 3;
}

.tf-news-band .nl-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 84, 166, 0.22);
  color: var(--primary, #0054A6);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 84, 166, 0.06);
}

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

.tf-news-band .nl-title {
  font-size: 34px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.tf-news-band .nl-title-accent {
  color: var(--primary, #0054A6);
}

.tf-news-band .nl-subtitle {
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 390px;
}

.tf-news-band .nl-trust {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.tf-news-band .nl-trust-avatar,
.tf-news-band .nl-trust-avatars-more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--primary, #0054A6);
  background: #E8F0FA;
  border: 2px solid #ffffff;
  margin-left: -8px;
  box-shadow: 0 2px 6px rgba(0, 84, 166, 0.12);
}

.tf-news-band .nl-trust-avatar:first-child {
  margin-left: 0;
}

.tf-news-band .nl-trust-avatars-more {
  background: var(--primary, #0054A6);
  color: #ffffff;
}

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

.tf-news-band .nl-trust-text .nl-trust-line {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.tf-news-band .nl-trust-text span:not(.nl-trust-line) {
  font-size: 12px;
  color: #64748B;
}

/* ---------- Centre: Travel Landmarks Illustration ---------- */
.tf-news-band .nl-image-col {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  margin-bottom: -18px;
}

.tf-news-band .nl-hero-img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 16px 28px rgba(0, 84, 166, 0.14));
}

/* ---------- Right: Subscribe Card ---------- */
.tf-news-band .nl-form-area {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 4;
}

.tf-news-band .nl-form-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 24px 26px 20px;
  box-shadow: 0 16px 40px rgba(0, 84, 166, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.tf-news-band .nl-stamp {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: rotate(3deg);
  color: var(--primary, #0054A6);
  pointer-events: none;
  z-index: 2;
}

.tf-news-band .nl-stamp-text {
  font-family: 'Caveat', cursive;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-align: right;
  color: #0054A6;
}

.tf-news-band .nl-stamp-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 84, 166, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  background: rgba(232, 240, 250, 0.95);
  color: var(--primary, #0054A6);
}

.tf-news-band .nl-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 115px;
  position: relative;
  z-index: 1;
}

.tf-news-band .nl-form-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light, #E8F0FA);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #0054A6);
  font-size: 18px;
  flex-shrink: 0;
}

.tf-news-band .nl-form-label {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.tf-news-band .nl-form-hint {
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.45;
  margin-top: 2px;
}

.tf-news-band .nl-form {
  position: relative;
  z-index: 1;
}

.tf-news-band .nl-form-fields {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tf-news-band .nl-input-group {
  position: relative;
  flex: 1;
  min-width: 0;
}

.tf-news-band .nl-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 14px;
  pointer-events: none;
}

.tf-news-band .nl-input-group input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  font-size: 13.5px;
  color: #0F172A;
  transition: all 0.2s ease;
  outline: none;
}

.tf-news-band .nl-input-group input:focus {
  background: #ffffff;
  border-color: var(--primary, #0054A6);
  box-shadow: 0 0 0 3px rgba(0, 84, 166, 0.12);
}

.tf-news-band .nl-submit-btn {
  height: 46px;
  padding: 0 20px;
  background: var(--primary, #0054A6);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 84, 166, 0.25);
}

.tf-news-band .nl-submit-btn:hover {
  background: var(--primary-hover, #004488);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 84, 166, 0.32);
}

/* Mid-submit: the button reports progress instead of accepting a second click. */
.tf-news-band .nl-submit-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tf-news-band .nl-perks {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tf-news-band .nl-perk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.tf-news-band .nl-perk i {
  color: var(--primary, #0054A6);
  font-size: 11px;
}

.tf-news-band .nl-success {
  color: #16A34A;
  background: #DCFCE7;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Same block treatment as .nl-success so both read as form-level feedback. */
.tf-news-band .nl-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
}

.tf-news-band .nl-success i,
.tf-news-band .nl-error i {
  margin-top: 1px;
  flex-shrink: 0;
}

/* ---------- Clean Professional Divider connecting to footer ---------- */
.tf-news-band .nl-wave-divider {
  display: none !important;
}

.tf-news-band {
  border-bottom: none;
}

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 1180px) {
  .tf-news-band .nl-inner {
    grid-template-columns: 1fr 0.85fr 1.15fr;
    gap: 18px;
  }
  .tf-news-band .nl-title {
    font-size: 28px;
  }
  .tf-news-band .nl-hero-img {
    max-width: 360px;
  }
}

@media (max-width: 980px) {
  .tf-news-band {
    padding: 40px 0 50px;
  }
  .tf-news-band .nl-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .tf-news-band .nl-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .tf-news-band .nl-subtitle {
    margin: 0 auto 16px;
  }
  /* Let the title wrap naturally — the forced line break makes awkward
     3-4 line stacks on narrow screens. */
  .tf-news-band .nl-title-br {
    display: none;
  }
  .tf-news-band .nl-trust {
    justify-content: center;
  }
  /* Avatars shrank but the text next to them didn't wrap well; stack them
     cleanly and centre the block. */
  .tf-news-band .nl-trust-text {
    text-align: left;
    min-width: 0;
  }
  .tf-news-band .nl-trust-text span {
    overflow-wrap: anywhere;
  }
  .tf-news-band .nl-image-col {
    order: 2;
    margin: 0 auto;
    margin-bottom: 0;
  }
  .tf-news-band .nl-hero-img {
    max-width: 320px;
  }
  .tf-news-band .nl-form-area {
    order: 3;
    justify-content: center;
    max-width: 100%;
  }
  .tf-news-band .nl-form-card {
    max-width: 100%;
  }
  .tf-news-band .nl-form-header {
    text-align: left;
  }
  .tf-news-band .nl-perks {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .tf-news-band .nl-container {
    padding: 0 16px;
  }
  .tf-news-band .nl-title {
    font-size: 24px;
  }
  .tf-news-band .nl-form-card {
    padding: 20px 16px;
  }
  .tf-news-band .nl-form-fields {
    flex-direction: column;
    /* The row layout centres its items; carried into the column layout that
       centring stops them stretching, so the email field stayed at its
       intrinsic ~255px while the button (width:100%) spanned the card. */
    align-items: stretch;
  }
  .tf-news-band .nl-input-group {
    width: 100%;
  }
  .tf-news-band .nl-submit-btn {
    width: 100%;
    justify-content: center;
    /* Matches the 16px field next to it. */
    font-size: 15px;
  }
  /* 16px is what stops iOS Safari zooming the whole page in when the field
     gets focus — below that it always zooms. */
  .tf-news-band .nl-input-group input {
    font-size: 16px;
  }
  .tf-news-band .nl-form-header {
    padding-right: 0;
  }
  .tf-news-band .nl-stamp {
    display: none;
  }
  /* Trust row: keep avatars + text side by side but let the text shrink;
     the caption previously wrapped into a centred two-line blob. */
  .tf-news-band .nl-trust {
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
  }
  .tf-news-band .nl-trust-text {
    font-size: 12px;
  }
  .tf-news-band .nl-trust-text .nl-trust-line {
    font-size: 12.5px;
  }
  .tf-news-band .nl-trust-text span:not(.nl-trust-line) {
    font-size: 11.5px;
  }
}

/* ==========================================================================
   PRINT
   The band is included by the footer component as a sibling *before*
   <footer class="site-footer">, so hiding the footer in print used to leave
   this marketing block — illustration, slanted divider and subscribe form —
   printing on top of every document that asked for a PDF.
   ========================================================================== */
@media print {
  .tf-news-band {
    display: none !important;
  }
}
