
*{box-sizing:border-box;margin:0;padding:0}
:root{--bg:#F7F4F1;--stone:#E9E4E0;--line:#D8D1CB;--red:#A32024;--torch:#FF3131;--black:#111111;--charcoal:#2B2B2B}

body{min-height:100vh;background:var(--bg);color:var(--black);font-family:"Montserrat",sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.page-bg{position:fixed;inset:0;background:radial-gradient(circle at top,rgba(163,32,36,.08),transparent 34%),radial-gradient(circle at bottom right,rgba(43,43,43,.05),transparent 28%);pointer-events:none}
.page{position:relative;max-width:1280px;margin:0 auto;padding:32px 24px 40px}
.success-banner{margin-bottom:24px;border:1px solid rgba(163,32,36,.2);background:white;border-radius:28px;padding:20px;box-shadow:0 16px 40px rgba(17,17,17,.06)}
.success-banner p{font-size:12px;text-transform:uppercase;letter-spacing:.24em;color:var(--red)}
.success-banner h2{margin-top:8px;font:600 34px/1 "Cormorant Garamond",serif}
.success-banner span{display:block;margin-top:8px;color:var(--charcoal);font-size:14px;line-height:1.8}
.hero{margin-bottom:32px;overflow:hidden;border:1px solid var(--line);border-radius:32px;background:rgba(255,255,255,.92);box-shadow:0 30px 80px rgba(17,17,17,.08);backdrop-filter:blur(16px);display:grid;grid-template-columns:1.15fr .85fr}
.hero-main{padding:48px}
.eyebrow,.before-card>p,.sidebar-title{font-size:12px;text-transform:uppercase;letter-spacing:.3em;color:rgba(43,43,43,.6)}
.hero h1{max-width:720px;font:600 clamp(42px,6vw,56px)/1.06 "Cormorant Garamond",serif}
.hero-text{margin-top:20px;max-width:680px;font-size:18px;line-height:1.8;color:var(--charcoal)}
.meta-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}
.meta-grid div{border:1px solid var(--stone);background:var(--bg);border-radius:22px;padding:16px}
.meta-grid small{font-size:11px;text-transform:uppercase;letter-spacing:.2em;color:rgba(43,43,43,.55)}
.meta-grid strong{display:block;margin-top:8px;font-size:14px}
.before-card{padding:40px;border-left:1px solid var(--stone)}
.before-card ul{margin-top:20px;display:grid;gap:16px;list-style:none}
.before-card li{position:relative;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:#111;color:#E9E4E0;padding:16px 16px 16px 36px;font-size:14px;line-height:1.65}
.before-card li:before{content:"";position:absolute;left:16px;top:24px;width:10px;height:10px;border-radius:999px;background:var(--torch)}
.layout{display:grid;grid-template-columns:.29fr .71fr;gap:24px}
.sidebar{position:sticky;top:24px;height:fit-content;border:1px solid var(--line);border-radius:32px;background:rgba(255,255,255,.84);backdrop-filter:blur(16px);padding:20px}
.sidebar nav{display:grid;gap:8px;margin-top:16px}
.nav-item{display:flex;align-items:flex-start;gap:12px;text-decoration:none;color:var(--charcoal);border:1px solid transparent;border-radius:18px;padding:12px;transition:.25s ease}
.nav-item:hover{border-color:var(--line);background:var(--bg)}
.nav-item.active{border-color:rgba(163,32,36,.25);background:rgba(163,32,36,.04)}
.nav-number{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:#111;color:white;font-size:12px;flex:0 0 auto}
.nav-item.active .nav-number{background:var(--red)}
.nav-copy{flex:1;min-width:0;font-size:14px;line-height:1.45}
.nav-copy small{display:block;margin-top:4px;font-size:10px;text-transform:uppercase;letter-spacing:.18em;color:rgba(43,43,43,.45)}
.nav-dot{margin-top:6px;width:10px;height:10px;border-radius:999px;background:var(--line)}
.nav-item.active .nav-dot{background:var(--torch)}
.nav-item.answered .nav-dot{background:var(--red)}
.form{display:grid;gap:24px}
.section-card{overflow:hidden;border:1px solid var(--line);border-radius:32px;background:rgba(255,255,255,.92);box-shadow:0 20px 50px rgba(17,17,17,.06);backdrop-filter:blur(16px)}
.section-header{border-bottom:1px solid var(--stone);padding:24px 32px}
.section-header span{display:inline-block;border:1px solid rgba(163,32,36,.15);background:rgba(163,32,36,.05);color:var(--red);border-radius:999px;padding:6px 12px;font-size:11px;text-transform:uppercase;letter-spacing:.24em}
.section-header h2{margin-top:16px;font:600 32px/1.08 "Cormorant Garamond",serif}
.section-header p{margin-top:12px;max-width:760px;font-size:15px;line-height:1.8;color:var(--charcoal)}
.content{padding:32px}
.grid{display:grid;gap:16px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.stack{display:grid;gap:24px}
.field{min-width:0}
.field.full{grid-column:1/-1}
.field-label{display:block;margin-bottom:8px;font-size:14px;font-weight:500}
.field-label span{margin-left:4px;color:var(--red);font-weight:600}
.input{width:100%;border:1px solid var(--line);border-radius:18px;background:white;padding:13px 16px;color:var(--black);font:400 14px "Montserrat",sans-serif;outline:none;transition:border-color .2s ease,box-shadow .2s ease}
.input:focus{border-color:var(--red);box-shadow:0 0 0 4px rgba(163,32,36,.1)}
.input::placeholder{color:rgba(43,43,43,.35)}
.input[disabled]{opacity:.7;cursor:not-allowed}
.textarea{min-height:132px;resize:vertical;line-height:1.7}
.error{min-height:18px;margin-top:8px;color:var(--red);font-size:12px;font-weight:500}
.phone-grid{display:grid;grid-template-columns:minmax(104px,118px) minmax(0,1fr);gap:10px;align-items:start}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.choice-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.choice{display:block;border:1px solid var(--line);border-radius:18px;background:white;padding:13px 16px;font-size:14px;transition:.2s ease}
.choice:hover{border-color:rgba(163,32,36,.35)}
.choice:has(input:checked){border-color:var(--red);background:rgba(163,32,36,.04)}
.choice>input{width:16px;height:16px;accent-color:var(--red);vertical-align:middle;margin-right:10px}
.choice span{vertical-align:middle;color:var(--black)}
.other-box{display:none;margin-top:12px;padding-top:12px;border-top:1px solid var(--stone)}
.choice:has(input:checked) .other-box{display:block}
.conditional{display:none}
.conditional.visible{display:block}
.confirm-grid{display:grid;grid-template-columns:.64fr .36fr;gap:24px}
.consent-card{border:1px solid var(--line);background:var(--bg);border-radius:28px;padding:20px}
.consent-box{display:flex;gap:16px;align-items:flex-start;border:1px solid rgba(163,32,36,.15);background:white;border-radius:24px;padding:20px;box-shadow:0 2px 12px rgba(17,17,17,.03)}
.consent-box input{margin-top:4px;width:20px;height:20px;accent-color:var(--red);flex:0 0 auto}
.consent-box strong{display:block;font-size:14px;line-height:1.6}
.consent-box small{display:block;margin-top:8px;font-size:14px;line-height:1.7;color:var(--charcoal)}
.submit-card{border:1px solid #111;background:#111;color:white;border-radius:28px;padding:24px}
.submit-card h3{margin-top:12px;font:600 30px/1.1 "Cormorant Garamond",serif}
.submit-card p{margin-top:16px;color:var(--stone);font-size:14px;line-height:1.8}
.submit-card button{width:100%;margin-top:24px;border:none;border-radius:18px;background:var(--red);color:white;padding:14px 20px;font:500 14px "Montserrat",sans-serif;cursor:pointer;transition:.25s ease}
.submit-card button:hover{transform:translateY(-2px);background:#8D1C1F}
.invalid .input,.choice-field.invalid .choice,.consent-card.invalid .consent-box{border-color:var(--red)}
@media(max-width:1100px){.hero{grid-template-columns:1fr}.before-card{border-left:none;border-top:1px solid var(--stone)}.layout{grid-template-columns:1fr}.sidebar{position:relative;top:0}.sidebar nav{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.page{padding:20px 16px}.hero-main,.before-card,.content,.section-header{padding:24px}.meta-grid,.grid.two,.choice-grid,.choice-grid.three,.confirm-grid,.sidebar nav{grid-template-columns:1fr}.phone-grid{grid-template-columns:1fr}.hero,.section-card,.sidebar{border-radius:24px}.section-header h2{font-size:28px}}


/* Logo outside hero card */
.top-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 24px 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;

  transition:
    transform 0.4s cubic-bezier(0.22,1,0.36,1),
    filter 0.4s ease;
}

.top-logo img {
  display: block;
  height: 42px;
  width: auto;

  transition:
    transform 0.4s cubic-bezier(0.22,1,0.36,1),
    filter 0.4s ease;
}

.top-logo-glow {
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(163,32,36,0.15), transparent 70%);
  filter: blur(22px);

  opacity: 0;
  transform: scale(0.9);

  transition: all 0.4s ease;
}

.top-logo:hover {
  transform: translateY(-3px) scale(1.03);
}

.top-logo:hover img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.top-logo:hover .top-logo-glow {
  opacity: 1;
  transform: scale(1.2);
}



@media(max-width:720px){
  .top-logo {
    margin-bottom: 18px;
  }

  .top-logo img {
    height: 36px;
  }

  .site-footer {
    margin-top: 28px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}


.phone-field .phone-grid select.input {
  min-width: 0;
  width: 100%;
  padding-left: 12px;
  padding-right: 10px;
  text-overflow: ellipsis;
}

.phone-field .phone-grid input.input {
  min-width: 0;
}

@media(max-width:720px){
  .phone-grid{
    grid-template-columns:112px minmax(0,1fr);
    gap:10px;
  }
}


/* Fix excessive spacing for Business Address */
.field:has(#businessAddress){
  margin-top: -6px;
}

#businessAddress{
  margin-top: 0;
}

.field:has(#businessAddress) .field-label{
  margin-bottom: 6px;
}


/* Business Address - proper textarea */
#businessAddress {
  min-height: 120px;
  resize: vertical;
}


/* Final alignment fixes: Phone + Business Address */
.input,
.textarea,
select.input,
textarea.input {
  text-align: left !important;
  vertical-align: top;
}

textarea.input,
.textarea {
  display: block;
  line-height: 1.7;
  padding-top: 13px;
}

#businessAddress {
  min-height: 120px !important;
  resize: vertical;
  text-align: left !important;
}

.field:has(#businessAddress) {
  grid-column: 1 / -1;
  margin-top: 0 !important;
}

.phone-field {
  align-self: start;
}

.phone-field .phone-grid {
  display: grid !important;
  grid-template-columns: 118px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
}

.phone-field .phone-grid select.input {
  width: 118px !important;
  min-width: 0 !important;
  padding-left: 12px !important;
  padding-right: 8px !important;
  text-align: left !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-field .phone-grid input.input {
  width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
}

@media(max-width:720px){
  .phone-field .phone-grid {
    grid-template-columns: 112px minmax(0, 1fr) !important;
  }

  .phone-field .phone-grid select.input {
    width: 112px !important;
  }
}


.site-footer{
  width:100%;
  margin-top:40px;
  padding-top:24px;
}

.footer-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}

.footer-links{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:#6E655F;
}

.footer-links a{
  text-decoration:none;
  color:#6E655F;
}

.footer-links a:hover{
  opacity:0.7;
}

.footer-separator{
  opacity:0.6;
}

.credits{
  font-size:12px;
  color:#6E655F;
}


/* FINAL FIX — Business Address alignment and visible footer */
.business-address-field {
  grid-column: 1 / -1 !important;
  margin-top: 0 !important;
}

.business-address-field .field-label {
  margin-bottom: 8px !important;
  text-align: left !important;
}

#businessAddress,
.business-address-textarea {
  display: block !important;
  width: 100% !important;
  min-height: 128px !important;
  height: auto !important;
  resize: vertical !important;
  text-align: left !important;
  line-height: 1.7 !important;
  padding: 13px 16px !important;
  vertical-align: top !important;
}

textarea#businessAddress::placeholder {
  text-align: left !important;
}

.site-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin: 40px auto 0 !important;
  padding: 24px 0 0 !important;
  position: relative !important;
  z-index: 5 !important;
  color: #6E655F !important;
}

.footer-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.footer-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  font-size: 12px !important;
  color: #6E655F !important;
}

.footer-links a,
.credits {
  color: #6E655F !important;
  text-decoration: none !important;
  font-size: 12px !important;
  transition: opacity 0.25s ease !important;
}

.footer-links a:hover,
.credits:hover {
  opacity: 0.7 !important;
}

.footer-separator {
  color: #6E655F !important;
  opacity: 0.75 !important;
  line-height: 1 !important;
  margin: 0 2px !important;
}

@media(max-width:720px){
  .site-footer {
    margin-top: 32px !important;
  }

  .footer-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}


/* FINAL FIX — compact phone country code dropdown with visible flag + code */
.phone-field .phone-grid {
  grid-template-columns: 110px minmax(0, 1fr) !important;
}
.phone-field .phone-grid select.input {
  width: 110px !important;
  min-width: 110px !important;
  max-width: 110px !important;
  padding-left: 10px !important;
  padding-right: 22px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.2 !important;
}
@media(max-width:720px){
  .phone-field .phone-grid {
    grid-template-columns: 110px minmax(0, 1fr) !important;
  }
  .phone-field .phone-grid select.input {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
  }
}


/* FINAL PATCH — show flag + country abbreviation + code clearly, e.g. 🇵🇭 PH (+63) */
.phone-field .phone-grid {
  grid-template-columns: 165px minmax(0, 1fr) !important;
}
.phone-field .phone-grid select.input {
  width: 165px !important;
  min-width: 165px !important;
  max-width: 165px !important;
  padding-left: 12px !important;
  padding-right: 28px !important;
  font-size: 13px !important;
}
@media(max-width:720px){
  .phone-field .phone-grid {
    grid-template-columns: 165px minmax(0, 1fr) !important;
  }
  .phone-field .phone-grid select.input {
    width: 165px !important;
    min-width: 165px !important;
    max-width: 165px !important;
  }
}
@media(max-width:520px){
  .phone-field .phone-grid {
    grid-template-columns: 1fr !important;
  }
  .phone-field .phone-grid select.input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}


/* Shared production navigation bar */





/* Production nav standard: matches Engagement Brief document pages */




.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px 0;
}
@media (max-width: 820px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  
}
@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    margin-bottom: 24px;
  }
  
  
}

/* Production header/nav placement — source of truth from Communication Rules page */
.site-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  margin: 0 0 32px 0 !important;
  width: 100% !important;
}
.top-logo {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: fit-content !important;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}
.top-logo img {
  display: block;
  height: 42px;
  width: auto;
  user-select: none;
}
.top-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.top-nav a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 13px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: var(--charcoal, #3d3935) !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap !important;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), background 0.28s ease, border-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease !important;
}
.top-nav a:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(216,209,203,0.92) !important;
  background: rgba(255,255,255,0.68) !important;
  color: var(--black, #111) !important;
  box-shadow: 0 10px 24px rgba(17,17,17,0.045) !important;
}
.top-nav a:active { transform: translateY(0) scale(0.98) !important; }
@media (max-width: 820px) {
  .site-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }
  .top-nav {
    justify-content: flex-start !important;
    width: 100% !important;
  }
}
@media (max-width: 640px) {
  .site-header {
    align-items: flex-start !important;
    margin-bottom: 24px !important;
  }
  .top-nav { gap: 5px !important; }
  .top-nav a {
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }
}

/* FINAL PRODUCTION HEADER ALIGNMENT LOCK
   Keeps the original margins/container while forcing the navigation
   to sit vertically centered with the logo on one clean header row. */
.site-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.site-header .top-logo,
.top-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-header .top-logo img,
.top-logo img {
  display: block !important;
  height: 42px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
}
.site-header .top-nav,
.top-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  align-self: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  transform: none !important;
}
.site-header .top-nav a,
.top-nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}
@media (min-width: 821px) {
  .site-header {
    flex-direction: row !important;
    align-items: center !important;
  }
  .site-header .top-nav,
  .top-nav {
    width: auto !important;
  }
}
@media (max-width: 640px) {
  .site-header .top-logo img,
  .top-logo img { height: 36px !important; }
  .site-header .top-nav,
  .top-nav { min-height: 36px !important; justify-content: flex-start !important; }
  .site-header .top-nav a,
  .top-nav a { height: 34px !important; min-height: 34px !important; padding: 0 10px !important; }
}

/* KIMPAOLO PAGE-BY-PAGE UNIFORM MOTION LOCK
   Applied inside each page stylesheet, not as one blanket global layer. */
@keyframes kpPageEntrance {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes kpHeaderEntrance {
  from { opacity: 0; transform: translateY(-10px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes kpBlockEntrance {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes kpSoftGlowIn {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}
body.kp-motion-ready {
  animation: kpPageEntrance 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: center top;
}
body.kp-motion-ready .page-bg, body.kp-motion-ready .logo-glow, body.kp-motion-ready .top-logo-glow{
  animation: kpSoftGlowIn 900ms ease-out both;
}
body.kp-motion-ready .site-header, body.kp-motion-ready .header{
  animation: kpHeaderEntrance 560ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}
body.kp-motion-ready .gateway-card, body.kp-motion-ready .hero, body.kp-motion-ready .message-card, body.kp-motion-ready .board-card, body.kp-motion-ready .portal-card, body.kp-motion-ready .support-card, body.kp-motion-ready .schedule-card, body.kp-motion-ready .category-card, body.kp-motion-ready .section-card, body.kp-motion-ready .legal-card, body.kp-motion-ready .terms-section, body.kp-motion-ready .form-card, body.kp-motion-ready .panel, body.kp-motion-ready .card{
  animation: kpBlockEntrance 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: opacity, transform, filter;
}
body.kp-motion-ready .hero { animation-delay: 120ms; }
body.kp-motion-ready .board-card:nth-child(1), body.kp-motion-ready .portal-card:nth-child(1), body.kp-motion-ready .support-card:nth-child(1), body.kp-motion-ready .schedule-card:nth-child(1), body.kp-motion-ready .category-card:nth-child(1), body.kp-motion-ready .section-card:nth-of-type(1), body.kp-motion-ready .terms-section:nth-of-type(1), body.kp-motion-ready .card:nth-child(1){ animation-delay: 150ms; }
body.kp-motion-ready .board-card:nth-child(2), body.kp-motion-ready .portal-card:nth-child(2), body.kp-motion-ready .support-card:nth-child(2), body.kp-motion-ready .schedule-card:nth-child(2), body.kp-motion-ready .category-card:nth-child(2), body.kp-motion-ready .section-card:nth-of-type(2), body.kp-motion-ready .terms-section:nth-of-type(2), body.kp-motion-ready .card:nth-child(2){ animation-delay: 210ms; }
body.kp-motion-ready .board-card:nth-child(3), body.kp-motion-ready .portal-card:nth-child(3), body.kp-motion-ready .support-card:nth-child(3), body.kp-motion-ready .schedule-card:nth-child(3), body.kp-motion-ready .category-card:nth-child(3), body.kp-motion-ready .section-card:nth-of-type(3), body.kp-motion-ready .terms-section:nth-of-type(3), body.kp-motion-ready .card:nth-child(3){ animation-delay: 270ms; }
body.kp-motion-ready .board-card:nth-child(4), body.kp-motion-ready .portal-card:nth-child(4), body.kp-motion-ready .support-card:nth-child(4), body.kp-motion-ready .schedule-card:nth-child(4), body.kp-motion-ready .category-card:nth-child(4), body.kp-motion-ready .section-card:nth-of-type(4), body.kp-motion-ready .terms-section:nth-of-type(4), body.kp-motion-ready .card:nth-child(4){ animation-delay: 330ms; }
body.kp-motion-ready .top-nav a, body.kp-motion-ready .footer-links a, body.kp-motion-ready .board-card, body.kp-motion-ready .portal-card, body.kp-motion-ready .support-card, body.kp-motion-ready .schedule-card, body.kp-motion-ready .category-card, body.kp-motion-ready .card, body.kp-motion-ready button{
  transition: transform 220ms ease, color 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}
body.kp-motion-ready .board-card:hover, body.kp-motion-ready .portal-card:hover, body.kp-motion-ready .support-card:hover, body.kp-motion-ready .schedule-card:hover, body.kp-motion-ready .category-card:hover, body.kp-motion-ready .card:hover{
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  body.kp-motion-ready,
  body.kp-motion-ready *,
  body.kp-motion-ready *::before,
  body.kp-motion-ready *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
/* END KIMPAOLO PAGE-BY-PAGE UNIFORM MOTION LOCK */

/* ===== KIMPAOLO.CO WELCOME-STYLE PAGE OPEN MOTION LOCK ===== */
@keyframes kpWelcomePageEntrance{from{opacity:0;transform:translate3d(0,18px,0) scale(.992);filter:blur(10px)}to{opacity:1;transform:translate3d(0,0,0) scale(1);filter:blur(0)}}
@keyframes kpWelcomeHeaderEntrance{from{opacity:0;transform:translate3d(0,-12px,0);filter:blur(8px)}to{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}}
@keyframes kpWelcomeBlockEntrance{from{opacity:0;transform:translate3d(0,22px,0);filter:blur(8px)}to{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}}
@keyframes kpWelcomeSoftGlowIn{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
html{scroll-behavior:smooth}body.kp-motion-ready{animation:kpWelcomePageEntrance 640ms cubic-bezier(.22,1,.36,1) both;transform-origin:center top}
body.kp-motion-ready .page-bg, body.kp-motion-ready .logo-glow, body.kp-motion-ready .top-logo-glow{animation:kpWelcomeSoftGlowIn 900ms ease-out both}
body.kp-motion-ready .site-header, body.kp-motion-ready .header{animation:kpWelcomeHeaderEntrance 560ms cubic-bezier(.22,1,.36,1) 80ms both}
body.kp-motion-ready .hero, body.kp-motion-ready .gateway-card, body.kp-motion-ready .message-card, body.kp-motion-ready .board-card, body.kp-motion-ready .portal-card, body.kp-motion-ready .support-card, body.kp-motion-ready .schedule-card, body.kp-motion-ready .category-card, body.kp-motion-ready .section-card, body.kp-motion-ready .legal-card, body.kp-motion-ready .terms-section, body.kp-motion-ready .form-card, body.kp-motion-ready .panel, body.kp-motion-ready .content-card, body.kp-motion-ready .doc-card, body.kp-motion-ready .card, body.kp-motion-ready form, body.kp-motion-ready main>section, body.kp-motion-ready main>article{animation:kpWelcomeBlockEntrance 680ms cubic-bezier(.22,1,.36,1) both}
body.kp-motion-ready .hero, body.kp-motion-ready .message-card{animation-delay:120ms}body.kp-motion-ready .board-card:nth-child(1), body.kp-motion-ready .portal-card:nth-child(1), body.kp-motion-ready .support-card:nth-child(1), body.kp-motion-ready .schedule-card:nth-child(1), body.kp-motion-ready .category-card:nth-child(1), body.kp-motion-ready .section-card:nth-of-type(1), body.kp-motion-ready .terms-section:nth-of-type(1), body.kp-motion-ready .card:nth-child(1), body.kp-motion-ready main>section:nth-of-type(1), body.kp-motion-ready main>article:nth-of-type(1){animation-delay:150ms}
body.kp-motion-ready .board-card:nth-child(2), body.kp-motion-ready .portal-card:nth-child(2), body.kp-motion-ready .support-card:nth-child(2), body.kp-motion-ready .schedule-card:nth-child(2), body.kp-motion-ready .category-card:nth-child(2), body.kp-motion-ready .section-card:nth-of-type(2), body.kp-motion-ready .terms-section:nth-of-type(2), body.kp-motion-ready .card:nth-child(2), body.kp-motion-ready main>section:nth-of-type(2), body.kp-motion-ready main>article:nth-of-type(2){animation-delay:210ms}
body.kp-motion-ready .board-card:nth-child(3), body.kp-motion-ready .portal-card:nth-child(3), body.kp-motion-ready .support-card:nth-child(3), body.kp-motion-ready .schedule-card:nth-child(3), body.kp-motion-ready .category-card:nth-child(3), body.kp-motion-ready .section-card:nth-of-type(3), body.kp-motion-ready .terms-section:nth-of-type(3), body.kp-motion-ready .card:nth-child(3), body.kp-motion-ready main>section:nth-of-type(3), body.kp-motion-ready main>article:nth-of-type(3){animation-delay:270ms}
body.kp-motion-ready .top-nav a, body.kp-motion-ready .footer-links a, body.kp-motion-ready .button, body.kp-motion-ready button, body.kp-motion-ready .board-card, body.kp-motion-ready .portal-card, body.kp-motion-ready .support-card, body.kp-motion-ready .schedule-card, body.kp-motion-ready .category-card, body.kp-motion-ready .section-card, body.kp-motion-ready .card{transition:transform 220ms ease,border-color 220ms ease,background 220ms ease,box-shadow 220ms ease,color 220ms ease,opacity 220ms ease}
body.kp-motion-ready .button:hover, body.kp-motion-ready button:hover, body.kp-motion-ready .board-card:hover, body.kp-motion-ready .portal-card:hover, body.kp-motion-ready .support-card:hover, body.kp-motion-ready .schedule-card:hover, body.kp-motion-ready .category-card:hover, body.kp-motion-ready .section-card:hover, body.kp-motion-ready .card:hover{transform:translateY(-3px)}
@media (prefers-reduced-motion:reduce){body.kp-motion-ready,body.kp-motion-ready *,body.kp-motion-ready *::before,body.kp-motion-ready *::after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important;scroll-behavior:auto!important}}

/* =========================================================
   FINAL PRODUCTION MOTION LOCK
   Clean fade-only entrance + scroll reveal.
   Removes the previous color/glow/blur page effects.
   ========================================================= */
body.kp-motion-ready, body.kp-motion-ready .page-bg, body.kp-motion-ready .logo-glow, body.kp-motion-ready .top-logo-glow, body.kp-motion-ready .site-header, body.kp-motion-ready .header, body.kp-motion-ready .hero, body.kp-motion-ready .gateway-card, body.kp-motion-ready .message-card, body.kp-motion-ready .board-card, body.kp-motion-ready .portal-card, body.kp-motion-ready .support-card, body.kp-motion-ready .schedule-card, body.kp-motion-ready .category-card, body.kp-motion-ready .section-card, body.kp-motion-ready .legal-card, body.kp-motion-ready .terms-section, body.kp-motion-ready .form-card, body.kp-motion-ready .panel, body.kp-motion-ready .content-card, body.kp-motion-ready .doc-card, body.kp-motion-ready .card, body.kp-motion-ready form, body.kp-motion-ready main > section, body.kp-motion-ready main > article{
  animation: none !important;
  filter: none !important;
}

body.kp-motion-ready {
  opacity: 0;
  animation: kpCleanPageFade 420ms ease-out 40ms forwards !important;
  transform: none !important;
}

@keyframes kpCleanPageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}





@media (prefers-reduced-motion: reduce) {
  body.kp-motion-ready{
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   FINAL CLEAN PRODUCTION LOCK
   Removes unintended color/glow/highlight effects from logos and page entrances.
   ========================================================= */
.logo-glow, .top-logo-glow{
  display: none !important; opacity: 0 !important; visibility: hidden !important; animation: none !important;
}
.logo, .top-logo img, .logo:hover{
  filter: none !important; box-shadow: none !important; text-shadow: none !important;
}



body.kp-motion-ready { opacity: 0; animation: kpCleanPageFade 420ms ease-out 40ms forwards !important; transform: none !important; filter: none !important; }
@keyframes kpCleanPageFade { from { opacity: 0; } to { opacity: 1; } }


/* ===== END FINAL CLEAN PRODUCTION LOCK ===== */


/* Branded success submission modal */
.success-modal[hidden] {
  display: none !important;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalBackdropIn 0.28s ease both;
}

.success-modal-card {
  position: relative;
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid rgba(216, 209, 203, 0.95);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,244,241,0.96)),
    #FFFFFF;
  padding: 34px;
  box-shadow: 0 30px 90px rgba(17, 17, 17, 0.18);
  animation: modalCardIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.success-modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(163, 32, 36, 0.10), transparent 38%);
  pointer-events: none;
}

.success-kicker {
  position: relative;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #A32024;
  font-weight: 500;
}

.success-modal-card h2 {
  position: relative;
  margin-top: 12px;
  font: 600 36px/1.08 "Cormorant Garamond", serif;
  color: #111111;
}

.success-message {
  position: relative;
  margin-top: 14px;
  max-width: 430px;
  font-size: 14px;
  line-height: 1.85;
  color: #2B2B2B;
}

.success-button {
  position: relative;
  margin-top: 24px;
  border: none;
  border-radius: 18px;
  background: #111111;
  color: #FFFFFF;
  padding: 13px 20px;
  font: 500 14px "Montserrat", sans-serif;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.success-button:hover {
  transform: translateY(-2px);
  background: #2B2B2B;
  box-shadow: 0 14px 28px rgba(17,17,17,0.12);
}

.success-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid #D8D1CB;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: #111111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.success-close:hover {
  transform: scale(1.04);
  background: #FFFFFF;
  border-color: #CBBDB5;
}

body.modal-open {
  overflow: hidden;
}

@keyframes modalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalCardIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media(max-width:720px){
  .success-modal-card {
    border-radius: 26px;
    padding: 28px 22px;
  }

  .success-modal-card h2 {
    font-size: 30px;
  }
}

/* FINAL STICKY SECTIONS SIDEBAR PATCH — keeps form section navigation visible while scrolling */
@media (min-width: 1101px) {
  .layout {
    align-items: start !important;
  }

  .layout > .sidebar,
  aside.sidebar {
    position: sticky !important;
    top: 24px !important;
    align-self: start !important;
    height: auto !important;
    max-height: calc(100dvh - 48px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 20 !important;
  }

  .layout > .sidebar nav,
  aside.sidebar nav {
    max-height: calc(100dvh - 132px) !important;
    overflow-y: auto !important;
    padding-right: 2px !important;
    overscroll-behavior: contain !important;
  }

  .layout > .sidebar::-webkit-scrollbar,
  .layout > .sidebar nav::-webkit-scrollbar,
  aside.sidebar::-webkit-scrollbar,
  aside.sidebar nav::-webkit-scrollbar {
    width: 6px !important;
  }

  .layout > .sidebar::-webkit-scrollbar-thumb,
  .layout > .sidebar nav::-webkit-scrollbar-thumb,
  aside.sidebar::-webkit-scrollbar-thumb,
  aside.sidebar nav::-webkit-scrollbar-thumb {
    background: rgba(163, 32, 36, 0.22) !important;
    border-radius: 999px !important;
  }
}



/* =========================================================
   ONBOARDING FIRST-LOAD SCROLL REVEAL — 2026-08-14
   Hidden state is enabled only after JavaScript arms the observer/fallbacks.
   ========================================================= */
body.kp-onboarding-reveal-ready .reveal-on-scroll {
  opacity: 0 !important;
  transform: translate3d(0, 18px, 0) !important;
  filter: blur(5px) !important;
  animation: none !important;
  transition:
    opacity 600ms ease-out,
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 600ms ease-out !important;
  transition-delay: var(--kp-onboarding-reveal-delay, 0ms) !important;
  will-change: opacity, transform, filter;
}

body.kp-onboarding-reveal-ready .reveal-on-scroll.is-visible {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
  filter: blur(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.kp-onboarding-reveal-ready .reveal-on-scroll,
  body.kp-onboarding-reveal-ready .reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
}
