/* ==========================================================================
   pages/contact.css — styles for contact.php only
   Moved out of contact.php. Loaded by this page through $extra_css.
   Every value is written out (no CSS variables) and every selector has its
   own rule, so changing one block never touches another.
   ========================================================================== */

.contact-form-card.cx {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: min(500px,72vh);
  padding: 22px 22px 24px;
  border-radius: 22px;
  border: 1px solid #4a154b1a;
  background: linear-gradient(160deg,#eee4f0 0%,#f8e9ef 100%);
  color: #4a154b;
  --g: .12;
  --s: 0;
  box-shadow: 0 18px 50px -24px #4a154b59;
}

.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","Playfair Display",Georgia,serif;
  font-style: italic;
  font-size: 15px;
  color: #4a154bbf;
}

.cx-line {
  position: relative;
  height: 2px;
  margin: 10px 0 0;
  background: #4a154b1f;
  border-radius: 2px;
  overflow: hidden;
}

.cx-line i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--s) * 20%);
  background: linear-gradient(90deg,#c9a24a,#e8c27a);
  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","Playfair Display",Georgia,serif;
  font-weight: 500;
  font-size: clamp(26px,7vw,32px);
  line-height: 1.15;
  color: #4a154b;
  margin: 0 0 18px;
  padding: 0;
}

.cx-q small {
  font-size: .55em;
  font-style: italic;
  opacity: .7;
}

.contact-form-card.cx .cx-in {
  display: block;
  width: 100%;
  background: #00000000;
  border: 0;
  border-bottom: 1.5px solid #4a154b59;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  padding: 10px 2px;
  font-size: 18px;
  text-align: center;
  color: #4a154b;
  transition: border-color .3s;
}

.contact-form-card.cx textarea.cx-in {
  resize: none;
  text-align: left;
  border: 1.5px solid #4a154b40;
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff66;
}

.contact-form-card.cx .cx-in:focus {
  border-color: #b8892f;
}

.cx-in::placeholder {
  color: #4a154b66;
}

.cx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  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: 8px 15px;
  border: 1px solid #4a154b59;
  border-radius: 999px;
  color: #4a154b;
  font-size: 14px;
  background: #ffffff59;
  transition: background .25s,color .25s;
}

.cx-chip input:checked+span {
  background: #4a154b;
  color: #fff;
  border-color: #4a154b;
}

.cx-chip input:focus-visible+span {
  outline: 2px solid #b8892f;
  outline-offset: 2px;
}

.cx-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

.cx-nav button {
  font: inherit;
}

.cx-link {
  background: none;
  border: 0;
  color: #4a154bb2;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cx-go {
  background: #4a154b;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .25s,transform .25s;
}

.cx-go:hover {
  background: #5d1c5f;
}

.cx-go:active {
  transform: scale(.97);
}

.cx-go:focus-visible {
  outline: 2px solid #b8892f;
  outline-offset: 3px;
}

.cx-link:focus-visible {
  outline: 2px solid #b8892f;
  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,#fff3cf,#e8c27a 45%,#b8892f);
  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 #b8892fcc;
  opacity: 0;
  transform: scale(.02,.006);
}

.cx-ring:nth-child(2) {
  border-color: #4a154b59;
}

.cx-ring:nth-child(3) {
  border-color: #b8892f8c;
}

.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","Playfair Display",Georgia,serif;
  font-weight: 500;
  font-size: clamp(30px,8vw,38px);
  margin: 0 0 6px;
  color: #4a154b;
}

.cx-thanks p {
  margin: 0 0 18px;
  color: #4a154bcc;
  font-size: 16px;
}

.cx-qr {
  width: 148px;
  height: 148px;
  padding: 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px -12px #4a154b73;
  margin: 0 auto 8px;
}

.cx-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.cx-thanks .cx-qrcap {
  font-size: 13px;
  color: #4a154bb2;
  margin: 0 0 16px;
}

.cx-wa {
  display: inline-block;
  border: 1.5px solid #4a154b;
  color: #4a154b;
  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: #4a154b;
  color: #fff;
}

.cx-join {
  background: #4a154b;
  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;
}

@media (max-width:860px) {
  .contact-grid>.contact-form-card {
    order: -1;
  }

}

@media (prefers-reduced-motion:reduce) {
  .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;
  }

}
