
:root{
  --kpc-navy:#16243a;
  --kpc-gold:#bd9140;
  --kpc-gold-light:#d5b36b;
  --kpc-cream:#f7f3ec;
  --kpc-white:#fffdfa;
  --kpc-teal:#7ca8a4;
  --kpc-ink:#273244;
  --kpc-muted:#687180;
  --kpc-line:#ded9d0;
}

*{box-sizing:border-box}

html,body{margin:0;min-height:100%;}

body{
  background:
    radial-gradient(circle at 15% 10%, rgba(189,145,64,.10), transparent 30%),
    var(--kpc-cream);
  color:var(--kpc-ink);
  font-family:Arial,Helvetica,sans-serif;
}

/* ---------- KPC TEST PAGE ---------- */

.page{
  max-width:1100px;
  margin:0 auto;
  padding:60px 24px 100px;
}

.kpc-page-logo{
  display:block;
  width:min(330px,82vw);
  height:auto;
}

h1{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:48px;
  margin:70px 0 12px;
  color:var(--kpc-navy);
}

.intro{
  max-width:650px;
  line-height:1.7;
  color:#606878;
}

.button{
  display:inline-block;
  margin-top:25px;
  border:1px solid var(--kpc-gold);
  background:var(--kpc-navy);
  color:#fff;
  padding:15px 25px;
  border-radius:4px;
  font-weight:bold;
  letter-spacing:.9px;
  cursor:pointer;
  transition:background .18s ease, transform .18s ease;
}

.button:hover{
  background:#203450;
  transform:translateY(-1px);
}

/* ---------- KPC MODAL ---------- */

.modal-backdrop{
  position:fixed;
  inset:0;
  background:transparent; border:0; width:100%; height:100%; max-width:none; max-height:none; margin:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  z-index:1000;
}

.modal-backdrop[open]{display:flex}

.modal{
  width:min(1160px,100%);
  height:min(92vh,960px);
  background:var(--kpc-white);
  border:1px solid rgba(189,145,64,.55);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 24px 90px rgba(0,0,0,.34);
  display:flex;
  flex-direction:column;
}

/* ---------- PARTNERSHIP HEADER ---------- */

.modal-head{
  flex:0 0 auto;
  min-height:155px;
  padding:22px 48px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  border-bottom:1px solid var(--kpc-line);
  background:linear-gradient(to bottom,#fffefa,#fbf8f1);
}

.partnership{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:34px;
}

.partner-logo{
  object-fit:contain;
  display:block;
}

.kpc-partner-logo{
  width:min(360px,42vw);
  max-height:105px;
}

.divider{
  width:1px;
  height:72px;
  background:var(--kpc-teal);
  opacity:.72;
  flex:0 0 auto;
}

.partnering{
  color:#82909d;
  font-family:Georgia,"Times New Roman",serif;
  font-size:12px;
  letter-spacing:4px;
  white-space:nowrap;
}

.wecycle-partner-logo{
  width:min(290px,33vw);
  max-height:92px;
}

.close{
  position:absolute;
  top:18px;
  right:20px;
  border:0;
  background:transparent;
  color:#596170;
  font-size:32px;
  line-height:1;
  cursor:pointer;
  padding:4px 8px;
  font-weight:300;
}

.close:hover{color:var(--kpc-navy)}

/* ---------- CHECKFRONT AREA ---------- */

.checkfront-wrap{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:22px 28px 30px;
  background:var(--kpc-cream);
}

/*
  The booking engine itself is still the vendor's real Checkfront
  widget. We deliberately do not replace its markup or booking logic.
  These rules only establish the KPC-colored area immediately around it.
*/
#CHECKFRONT_WIDGET_01{
  min-height:300px;
  max-width:1100px;
  margin:0 auto;
  background:var(--kpc-white);
  border:1px solid #e4dfd6;
  border-radius:8px;
  padding:20px;
}

/* ---------- MOBILE ---------- */

@media(max-width:760px){
  .page{padding:35px 18px 80px}

  h1{
    font-size:38px;
    margin-top:55px;
  }

  .modal-backdrop{
    padding:0;
  }

  .modal{
    width:100%;
    height:100vh;
    border-radius:0;
    border:0;
  }

  .modal-head{
    min-height:126px;
    padding:18px 42px 16px 18px;
  }

  .partnership{
    gap:13px;
  }

  .kpc-partner-logo{
    width:42vw;
    max-height:76px;
  }

  .wecycle-partner-logo{
    width:34vw;
    max-height:68px;
  }

  .divider{
    height:55px;
  }

  .partnering{
    font-size:8px;
    letter-spacing:2px;
    white-space:normal;
    text-align:center;
    width:62px;
  }

  .checkfront-wrap{
    padding:10px;
  }

  #CHECKFRONT_WIDGET_01{
    padding:10px;
    border-radius:5px;
  }
}

@media(max-width:430px){
  .modal-head{
    min-height:110px;
  }

  .kpc-partner-logo{
    width:43vw;
  }

  .wecycle-partner-logo{
    width:34vw;
  }

  .partnering{
    width:45px;
    font-size:7px;
    letter-spacing:1.5px;
  }

  .divider{
    height:48px;
  }
}

.modal-backdrop::backdrop{background:rgba(10,18,30,.66)}
.test-note{padding:14px;background:#fff6da;line-height:1.5;border-radius:8px}.modal{height:min(92dvh,960px)} @media(max-width:760px){.modal{height:100dvh}.partnership{flex-wrap:wrap}.partnering{letter-spacing:1px}.divider{display:none}.kpc-partner-logo{width:40vw}.wecycle-partner-logo{width:32vw}}

/* Compact mobile booking header: preserve desktop partnership layout. */
@media (max-width: 760px) {
  .modal-head { min-height: 76px; padding: 10px 56px 10px 16px; }
  .partnership { flex-wrap: nowrap; justify-content: flex-start; gap: 0; }
  .partnership .partnering,
  .partnership .divider,
  .partnership .wecycle-partner-logo { display: none; }
  .partnership .kpc-partner-logo { width: min(250px, 68vw); max-height: 56px; }
  .modal-head .close { top: 16px; right: 14px; }
}
