/* pages/contact.css */
/* ==========================================================================
   pages/contact.css — styles for contact.php only (loaded through $extra_css)
   Every value is written out (no CSS variables, except --g / --s which the
   form script sets on purpose). Section blocks are separate, so changing one
   never touches another.
   Palette: plum #0b3c5d · mauve #5b7a8c · lilac #f3f8fa · blush #d8ebf1 · line #bcd4de · rose #1aa6a6
   ========================================================================== */

/* ── Scroll-reveal (only when JavaScript runs; everything is visible without it) ── */
.ct-js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}

.ct-js [data-reveal="left"] {
  transform: translateX(-40px);
}

.ct-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ══════════════════════ HERO ══════════════════════ */
.ct-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 120px;
  text-align: center;
  background: linear-gradient(135deg, #e3eef3 0%, #f3f8fa 55%, #d8ebf1 130%);
}

.ct-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .6;
  animation: ctDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.ct-blob-1 {
  width: 420px;
  height: 420px;
  top: -150px;
  left: -110px;
  background: #d8ebf1;
}

.ct-blob-2 {
  width: 380px;
  height: 380px;
  bottom: -170px;
  right: -90px;
  background: #c5dce6;
  animation-delay: -7s;
}

@keyframes ctDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, 30px) scale(1.12);
  }
}

.ct-hero-inner {
  position: relative;
  max-width: 760px;
}

.ct-hero .breadcrumb {
  margin: 0 0 22px;
}

.ct-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  margin-bottom: 20px;
  background: #ffffffcc;
  border: 1px solid #bcd4de;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0b3c5d;
}

.ct-status i {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5b7a8c;
}

.ct-status.is-online i {
  background: #25d366;
}

.ct-status.is-online i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0;
  animation: ctPing 2s ease-out infinite;
}

@keyframes ctPing {
  0% {
    transform: scale(.6);
    opacity: .8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.ct-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 300;
  line-height: 1.05;
  color: #0b3c5d;
  margin-bottom: 16px;
}

.ct-hero h1 em {
  font-style: italic;
  color: #5b7a8c;
  background: linear-gradient(100deg, #0b3c5d 0%, #1aa6a6 60%, #1aa6a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ct-hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #0b3c5dd6;
}

/* floating icon bubbles */
.ct-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #ffffffd9;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid #ffffff;
  box-shadow: 0 14px 34px #0b3c5d26;
  transition: translate .25s ease-out;
  animation: ctBob 6s ease-in-out infinite;
}

.ct-bubble svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #0b3c5d;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-bubble-1 {
  top: 28%;
  left: 11%;
}

.ct-bubble-2 {
  top: 22%;
  right: 12%;
  animation-delay: -2s;
}

.ct-bubble-3 {
  bottom: 26%;
  right: 22%;
  width: 54px;
  height: 54px;
  animation-delay: -4s;
}

@keyframes ctBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* ══════════════════════ QUICK CONTACT CARDS ══════════════════════ */
.ct-cards-wrap {
  position: relative;
  z-index: 5;
  margin-top: -64px;
}

.ct-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ct-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 22px;
  background: #ffffff;
  border: 1px solid #bcd4de;
  border-radius: 24px;
  box-shadow: 0 18px 44px #0b3c5d1f;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, opacity .8s cubic-bezier(.2, .7, .2, 1);
}

.ct-js .ct-card.is-in:hover,
.ct-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 56px #0b3c5d2e;
  border-color: #0b3c5d;
}

.ct-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e3eef3;
  transition: background-color .35s ease, transform .35s ease;
}

.ct-card:hover .ct-icon {
  background: #0b3c5d;
  transform: rotate(-8deg) scale(1.06);
}

.ct-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #0b3c5d;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .35s ease;
}

.ct-card:hover .ct-icon svg {
  stroke: #ffffff;
}

.ct-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ct-card-body strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #0b3c5d;
}

.ct-card-body > span {
  font-size: 0.98rem;
  color: #0b3c5dd6;
  overflow-wrap: anywhere;
}

.ct-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.ct-act {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0b3c5d;
  border-bottom: 1px solid #0b3c5d;
  padding-bottom: 1px;
}

.ct-copy {
  padding: 5px 13px;
  border: 1px solid #bcd4de;
  border-radius: 50px;
  background: #f3f8fa;
  font-family: "Jost", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #0b3c5d;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}

.ct-copy:hover,
.ct-copy.is-done {
  background: #0b3c5d;
  color: #ffffff;
}

.ct-note {
  font-size: 0.88rem;
  font-weight: 500;
  color: #5b7a8c;
}

/* ══════════════════════ HELP + FORM ══════════════════════ */
.ct-main {
  padding: 80px 0 96px;
}

.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.ct-h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: #0b3c5d;
  margin-bottom: 18px;
}

.ct-h2 em {
  font-style: italic;
  color: #1aa6a6;
}

.ct-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #0b3c5dd6;
  margin-bottom: 28px;
}

.ct-quick {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.ct-quick-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #bcd4de;
  border-radius: 18px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.ct-quick-row:hover {
  transform: translateX(6px);
  border-color: #0b3c5d;
  box-shadow: 0 12px 30px #0b3c5d1f;
}

.ct-quick-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e3eef3;
  transition: background-color .3s ease;
}

.ct-quick-row:hover .ct-quick-icon {
  background: #0b3c5d;
}

.ct-quick-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #0b3c5d;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s ease;
}

.ct-quick-row:hover .ct-quick-icon svg {
  stroke: #ffffff;
}

.ct-quick-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ct-quick-text strong {
  font-size: 1rem;
  color: #0b3c5d;
}

.ct-quick-text small {
  font-size: 0.86rem;
  color: #5b7a8c;
}

.ct-quick-arrow {
  font-size: 1.2rem;
  color: #0b3c5d;
  transition: transform .3s ease;
}

.ct-quick-row:hover .ct-quick-arrow {
  transform: translateX(4px);
}

.ct-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ct-wa-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══════════════════════ THE FORM CARD ══════════════════════ */
.contact-form-card.cx {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: min(540px, 76vh);
  padding: 26px 28px 28px;
  border-radius: 30px;
  border: 1px solid #0b3c5d1a;
  background: linear-gradient(160deg, #eee4f0 0%, #f8e9ef 100%);
  color: #0b3c5d;
  --g: .12;
  --s: 0;
  box-shadow: 0 30px 70px -28px #0b3c5d73;
  animation: ctRise .9s cubic-bezier(.2, .7, .2, 1) backwards;
}

@keyframes ctRise {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
}

.cx-light {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 130%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
}

.cx-light {
  background: radial-gradient(circle, #ffe5c8f2 0%, #facde28c 38%, #facde200 68%);
  opacity: calc(.15 + var(--g) * .85);
  scale: calc(.62 + var(--g) * .5);
  transition: opacity 1.6s ease, scale 1.8s ease;
  animation: cxBreathe 9s ease-in-out infinite;
}

@keyframes cxBreathe {
  50% {
    transform: scale(1.05);
  }
}

.cx-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: #0b3c5dbf;
}

.cx-line {
  position: relative;
  height: 4px;
  margin: 12px 0 0;
  background: #0b3c5d1f;
  border-radius: 4px;
  overflow: visible;
}

.cx-line i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--s) * 20%);
  border-radius: 4px;
  background: linear-gradient(90deg, #0b3c5d, #1aa6a6);
  box-shadow: 0 0 12px #1aa6a699;
  transition: width .9s cubic-bezier(.3, .7, .2, 1);
}

.cx-main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#cxFormWrap {
  transition: opacity .5s;
}

.cx.sending #cxFormWrap {
  opacity: 0;
  pointer-events: none;
}

.cx-js .cx-step {
  display: none;
}

.cx-js .cx-step.on {
  display: block;
  animation: cxIn .5s ease-out;
}

@keyframes cxIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.cx-step.shake {
  animation: cxShake .35s;
}

@keyframes cxShake {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.cx-q {
  display: block;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 6.5vw, 36px);
  line-height: 1.15;
  color: #0b3c5d;
  margin: 0 0 20px;
  padding: 0;
}

.cx-q small {
  font-size: .55em;
  font-style: italic;
  opacity: .8;
}

.contact-form-card.cx .cx-in {
  display: block;
  width: 100%;
  background: #00000000;
  border: 0;
  border-bottom: 1.5px solid #0b3c5d59;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  padding: 12px 2px;
  font-family: "Jost", sans-serif;
  font-size: 18px;
  text-align: center;
  color: #0b3c5d;
  transition: border-color .3s;
}

.contact-form-card.cx textarea.cx-in {
  resize: none;
  text-align: left;
  border: 1.5px solid #0b3c5d40;
  border-radius: 14px;
  padding: 14px 16px;
  background: #ffffff80;
}

.contact-form-card.cx .cx-in:focus {
  border-color: #0b3c5d;
}

.cx-in::placeholder {
  color: #0b3c5d8c;
}

.cx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  border: 0;
  padding: 0;
  margin: 0;
}

.cx-chip {
  position: relative;
}

.cx-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.cx-chip span {
  display: block;
  padding: 10px 18px;
  border: 1px solid #0b3c5d59;
  border-radius: 999px;
  color: #0b3c5d;
  font-family: "Jost", sans-serif;
  font-size: 15px;
  background: #ffffff66;
  transition: background .25s, color .25s, transform .25s;
}

.cx-chip:hover span {
  transform: translateY(-2px);
  background: #ffffff;
}

.cx-chip input:checked+span {
  background: #0b3c5d;
  color: #fff;
  border-color: #0b3c5d;
}

.cx-chip input:focus-visible+span {
  outline: 2px solid #0b3c5d;
  outline-offset: 2px;
}

.cx-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
}

.cx-nav button {
  font: inherit;
}

.cx-link {
  background: none;
  border: 0;
  color: #0b3c5db2;
  font-size: 15px;
  cursor: pointer;
  padding: 10px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cx-go {
  background: #0b3c5d;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s;
}

.cx-go:hover {
  background: #5d1c5f;
  box-shadow: 0 12px 26px #0b3c5d40;
  transform: translateY(-2px);
}

.cx-go:active {
  transform: scale(.97);
}

.cx-go:focus-visible {
  outline: 2px solid #0b3c5d;
  outline-offset: 3px;
}

.cx-link:focus-visible {
  outline: 2px solid #0b3c5d;
  outline-offset: 3px;
}

.cx-nav [data-back] {
  display: none;
}

.cx-nav [data-next] {
  display: none;
}

.cx-nav [data-skipstep] {
  display: none;
}

.cx-js [data-back] {
  display: inline-block;
}

.cx-js [data-next] {
  display: inline-block;
}

.cx-js #cxForm[data-step="1"] [data-back] {
  display: none;
}

.cx-js #cxForm[data-step="5"] [data-next] {
  display: none;
}

.cx-js #cxForm[data-step="3"] [data-skipstep] {
  display: inline-block;
}

.cx-js #cxForm[data-step="4"] [data-skipstep] {
  display: inline-block;
}

.cx-js #cxForm:not([data-step="5"]) .cx-send {
  display: none;
}

.cx:not(.cx-js) .cx-step {
  margin-bottom: 18px;
}

.cx-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cx-drop {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 14px;
  height: 20px;
  margin-left: -7px;
  opacity: 0;
  background: linear-gradient(160deg, #ffffff, #d8ebf1 45%, #1aa6a6);
  clip-path: path("M7 0C7 0 0 10 0 13.5a7 7 0 0 0 14 0C14 10 7 0 7 0z");
}

.cx.falling .cx-drop {
  animation: cxDropFall .95s cubic-bezier(.55, 0, .9, .6) forwards;
}

@keyframes cxDropFall {
  0% {
    top: 6%;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  92% {
    top: 49%;
    opacity: 1;
  }
  100% {
    top: 50%;
    opacity: 0;
  }
}

.cx-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88%, 380px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid #ee7fafcc;
  opacity: 0;
  transform: scale(.02, .006);
}

.cx-ring:nth-child(2) {
  border-color: #0b3c5d59;
}

.cx-ring:nth-child(3) {
  border-color: #ee7faf8c;
}

.cx.ripple .cx-ring {
  animation: cxRing 2.6s cubic-bezier(.2, .6, .3, 1) forwards;
}

.cx.ripple .cx-ring:nth-child(2) {
  animation-delay: .4s;
}

.cx.ripple .cx-ring:nth-child(3) {
  animation-delay: .85s;
}

@keyframes cxRing {
  0% {
    opacity: .9;
    transform: scale(.02, .006);
  }
  100% {
    opacity: 0;
    transform: scale(1, .3);
  }
}

#cxBoardWrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cx-thanks {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s ease, transform 1s ease;
}

.cx.done .cx-thanks {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.cx-thanks h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 8vw, 40px);
  margin: 0 0 6px;
  color: #0b3c5d;
}

.cx-thanks p {
  margin: 0 0 18px;
  color: #0b3c5dcc;
  font-size: 16px;
}

.cx-qr {
  width: 148px;
  height: 148px;
  padding: 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px -12px #0b3c5d73;
  margin: 0 auto 8px;
}

.cx-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.cx-thanks .cx-qrcap {
  font-size: 14px;
  color: #0b3c5db2;
  margin: 0 0 16px;
}

.cx-wa {
  display: inline-block;
  border: 1.5px solid #0b3c5d;
  color: #0b3c5d;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  background: #ffffff73;
  transition: background .25s, color .25s;
}

.cx-wa:hover {
  background: #0b3c5d;
  color: #fff;
}

.cx-join {
  background: #0b3c5d;
  color: #fff;
}

.cx-join:hover {
  background: #5d1c5f;
}

@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .cx-qr {
    display: none;
  }

  .cx-thanks .cx-qrcap {
    display: none;
  }
}

.cx.done .cx-top span:last-child {
  opacity: 0;
  transition: opacity .6s;
}

.cx.done .cx-line {
  opacity: 0;
  transition: opacity .6s;
}

/* ══════════════════════ COMMUNITY BAND ══════════════════════ */
.ct-community {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  text-align: center;
  background: linear-gradient(135deg, #0b3c5d 0%, #0f5a7a 100%);
}

.ct-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: ctDrift 16s ease-in-out infinite alternate;
}

.ct-glow-1 {
  width: 360px;
  height: 360px;
  top: -140px;
  left: -80px;
  background: #1aa6a655;
}

.ct-glow-2 {
  width: 320px;
  height: 320px;
  bottom: -140px;
  right: -60px;
  background: #c5dce644;
  animation-delay: -6s;
}

.ct-community-inner {
  position: relative;
  max-width: 680px;
}

.ct-community h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 14px;
}

.ct-community h2 em {
  font-style: italic;
  color: #d8ebf1;
}

.ct-community p {
  margin-bottom: 28px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #ffffffd6;
}

/* ══════════════════════ TABLET ══════════════════════ */
@media (max-width: 992px) {
  .ct-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .ct-bubble-1 {
    left: 5%;
  }

  .ct-bubble-2 {
    right: 5%;
  }

  .ct-bubble-3 {
    display: none;
  }
}

@media (max-width: 860px) {
  .ct-main {
    padding: 56px 0 72px;
  }

  .ct-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .ct-grid>.contact-form-card {
    order: -1;
  }
}

/* ══════════════════════ PHONE ══════════════════════ */
@media (max-width: 576px) {
  .ct-hero {
    padding: 28px 0 100px;
  }

  .ct-bubble {
    display: none;
  }

  .ct-status {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .ct-cards-wrap {
    margin-top: -52px;
  }

  .ct-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ct-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 20px;
  }

  .contact-form-card.cx {
    padding: 22px 20px 24px;
    border-radius: 26px;
  }

  .ct-community {
    padding: 70px 0;
  }
}

/* ══════════════════════ REDUCED MOTION ══════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ct-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ct-blob,
  .ct-glow,
  .ct-bubble,
  .ct-status.is-online i::after,
  .contact-form-card.cx {
    animation: none;
  }

  .cx-light {
    animation: none !important;
  }

  .cx-light {
    transition-duration: .01s;
  }

  .cx-line i {
    transition-duration: .01s;
  }

  .cx-thanks {
    transition-duration: .01s;
  }

  .cx-js .cx-step.on {
    animation: none;
  }
}
/* components/footer-newsletter.css */
/* ==========================================================================
   footer-newsletter.css — Footer newsletter interactive states
   Moved out of partials/footer.php. Loaded last (after page styles) exactly as before.
   Every value is written out (no CSS variables) and every selector has its
   own rule, so changing one block never touches another.
   ========================================================================== */

.nl-wrap {
  position: relative;
}

.footer-newsletter {
  position: relative;
  transition: opacity .5s,transform .5s;
}

.footer-newsletter[hidden] {
  display: none;
}

.footer-newsletter.is-gone {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.nl-field {
  position: relative;
}

.nl-field input {
  width: 100%;
}

.nl-spark {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.8,.5,1),opacity .3s;
  pointer-events: none;
}

.footer-newsletter.is-ready .nl-spark {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  animation: nlTwirl 2s ease-in-out infinite;
}

@keyframes nlTwirl {
  50% {
    transform: translateY(-50%) scale(1.25) rotate(18deg);
  }
}

.footer-newsletter.is-ready .nl-field input {
  border-color: #d8ebf1;
  box-shadow: 0 0 0 3px #d8ebf140;
}

.nl-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 48px;
  transition: background .3s,color .3s,transform .25s,box-shadow .3s;
}

.footer-newsletter.is-ready .nl-btn {
  animation: nlPulse 1.8s ease-out infinite;
}

@keyframes nlPulse {
  0% {
    box-shadow: 0 0 0 0 #d8ebf1a6;
  }
  100% {
    box-shadow: 0 0 0 16px #d8ebf100;
  }
}

.nl-label {
  transition: opacity .25s,transform .25s;
}

.nl-dots {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.nl-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b3c5d;
  animation: nlDot .8s ease-in-out infinite;
}

.nl-dots i:nth-child(2) {
  animation-delay: .12s;
}

.nl-dots i:nth-child(3) {
  animation-delay: .24s;
}

@keyframes nlDot {
  0%,100% {
    transform: translateY(0);
    opacity: .4;
  }
  50% {
    transform: translateY(-7px);
    opacity: 1;
  }
}

.footer-newsletter.is-loading .nl-label {
  opacity: 0;
  transform: scale(.9);
}

.footer-newsletter.is-loading .nl-dots {
  opacity: 1;
}

.footer-newsletter.is-loading .nl-btn {
  animation: none;
  pointer-events: none;
}

.nl-check {
  width: 0;
  height: 22px;
  fill: none;
  stroke: #0b3c5d;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: width .3s,margin .3s;
  overflow: visible;
}

.nl-check path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
}

.footer-newsletter.is-done .nl-btn {
  background: #d8ebf1;
  border-color: #d8ebf1;
  color: #0b3c5d;
  animation: none;
}

.footer-newsletter.is-done .nl-check {
  width: 22px;
  margin-right: 8px;
}

.footer-newsletter.is-done .nl-check path {
  animation: nlDraw .55s ease-out .1s forwards;
}

@keyframes nlDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.nl-msg {
  min-height: 1.2em;
  margin: 0;
  font-size: .82rem;
  line-height: 1.4;
  color: #d8ebf1;
  text-align: center;
}

.footer-newsletter.is-error .nl-field input {
  border-color: #d8ebf1;
  background: #d8ebf12e;
}

.footer-newsletter.is-error .nl-msg {
  color: #fff;
  font-weight: 600;
}

.footer-newsletter.is-error .nl-msg::before {
  content: "⚠ ";
}

.footer-newsletter.is-shake .nl-field {
  animation: nlShake .5s;
}

.footer-newsletter.is-shake .nl-btn {
  animation: nlShake .5s;
}

@keyframes nlShake {
  0%,100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(7px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(3px);
  }
}

.nl-fx {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 3;
}

.nl-fx i {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 15px;
  border-radius: 70% 0 70% 0;
  background: linear-gradient(135deg,#d8ebf1,#1aa6a6);
  animation: nlBurst 1.5s cubic-bezier(.15,.7,.3,1) forwards;
}

.nl-fx i.s {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px #ffffffb2;
}

.nl-fx i.p {
  background: linear-gradient(135deg,#fff,#b3cfdc);
}

@keyframes nlBurst {
  0% {
    opacity: 1;
    transform: translate(0,0) rotate(0) scale(.4);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx),var(--dy)) rotate(var(--r)) scale(1);
  }
}

.nl-welcome {
  text-align: center;
  padding: 6px 4px 0;
}

.nl-welcome[hidden] {
  display: none;
}

.nl-env {
  width: 92px;
  height: 82px;
  display: block;
  margin: 0 auto 10px;
  overflow: visible;
}

.nl-welcome .nl-letter {
  transform: translateY(10px);
  opacity: 0;
}

.nl-welcome .nl-letter-heart {
  transform: translateY(10px);
  opacity: 0;
}

.nl-flap {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.nl-welcome.play .nl-flap {
  animation: nlFlap .6s .25s cubic-bezier(.5,0,.3,1) forwards;
}

@keyframes nlFlap {
  to {
    transform: scaleY(-1);
    fill: #d8ebf1;
  }
}

.nl-welcome.play .nl-letter {
  animation: nlLetter .8s .7s cubic-bezier(.3,1.4,.5,1) forwards;
}

.nl-welcome.play .nl-letter-heart {
  animation: nlLetter .8s .7s cubic-bezier(.3,1.4,.5,1) forwards;
}

@keyframes nlLetter {
  to {
    transform: translateY(-22px);
    opacity: 1;
  }
}

.nl-welcome.play .nl-env {
  animation: nlEnv .9s cubic-bezier(.34,1.6,.5,1) both;
}

@keyframes nlEnv {
  from {
    transform: scale(.3) rotate(-14deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.nl-wtitle {
  font-family: var(--font-display,"Cormorant Garamond",serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 6px;
  opacity: 0;
  transform: translateY(8px);
}

.nl-wtext {
  font-size: .86rem;
  line-height: 1.6;
  color: #ffffffd9;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
}

.nl-welcome.play .nl-wtitle {
  animation: nlUp .6s 1.1s ease-out forwards;
}

.nl-welcome.play .nl-wtext {
  animation: nlUp .6s 1.4s ease-out forwards;
}

@keyframes nlUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.nl-community {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #d8ebf173;
  opacity: 0;
  transform: translateY(14px);
}

.nl-welcome.play .nl-community {
  animation: nlUp .8s 2.1s ease-out forwards;
}

.nl-ctitle {
  font-family: var(--font-display,"Cormorant Garamond",serif);
  font-size: 1.25rem;
  color: #d8ebf1;
  margin: 0 0 4px;
}

.nl-cdesc {
  font-size: .82rem;
  line-height: 1.55;
  color: #ffffffe0;
  margin: 0 0 12px;
}

.nl-cdesc strong {
  color: #fff;
}

.nl-qr {
  position: relative;
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto 12px;
  padding: 6px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 3px #d8ebf159,0 10px 30px #00000059;
  transform: scale(.6);
  opacity: 0;
}

.nl-welcome.play .nl-qr {
  animation: nlQr .7s 2.3s cubic-bezier(.34,1.6,.5,1) forwards;
}

@keyframes nlQr {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.nl-qr img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
}

.nl-qr:hover {
  box-shadow: 0 0 0 3px #d8ebf1,0 10px 30px #00000066;
  text-decoration: none;
}

.nl-scan {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg,#00000000,#1aa6a6,#00000000);
  box-shadow: 0 0 12px 3px #1aa6a6b2;
  animation: nlScan 2.2s ease-in-out 3s infinite alternate;
  pointer-events: none;
}

@keyframes nlScan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(116px);
  }
}

.nl-cbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 50px;
  background: #fff;
  color: #0b3c5d;
  border: 2px solid #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: normal;
  line-height: 1.2;
}

.nl-cbtn svg {
  fill: #25d366;
  flex-shrink: 0;
  transition: fill .25s;
}

.nl-welcome.play .nl-cbtn {
  animation: nlCta 2.4s 3.2s ease-in-out infinite;
}

@keyframes nlCta {
  0%,100% {
    box-shadow: 0 0 0 0 #d8ebf199;
  }
  60% {
    box-shadow: 0 0 0 14px #d8ebf100;
  }
}

.nl-cbtn:hover {
  background: #d8ebf1;
  border-color: #d8ebf1;
  color: #0b3c5d;
  transform: translateY(-2px);
  text-decoration: none;
}

.nl-cbtn:hover svg {
  fill: #0b3c5d;
}

.nl-cnote {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #ffffffb2;
}

@media (prefers-reduced-motion:reduce) {
  .nl-fx {
    display: none;
  }

  .nl-scan {
    display: none;
  }

  .footer-newsletter * {
    animation-duration: .01ms !important;
  }

  .nl-welcome * {
    animation-duration: .01ms !important;
  }

}

