:root{
  --green-dark:#3f4a2e;
  --green-mid:#5a6b3f;
  --green-pale:#e7e3d4;
  --cream:#f4f1e8;
  --gold:#c9a227;
  --maroon:#7a2e2e;
  --navy:#2f3a63;
  --text-dark:#2c3320;
  --text-light:#f4f1e8;
  --radius:14px;
  --max-w:1240px;
  --header-h-desktop:74px;
  --header-h-mobile:64px;
  --form-bg:#d0d1bc;
  --brand-green:#637b31;
  --pill-dark:#4b5a2a;
  --pill-mid:#7c9a3e;
  --pill-mid-hover:#6b8735;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
html,body{overflow-x:hidden;width:100%;max-width:100vw;}
body{
  font-family:'Jost',sans-serif;
  color:var(--text-dark);
  background:var(--form-bg);
  -webkit-font-smoothing:antialiased;
  padding-top:var(--header-h-desktop);
}
h1,h2{font-family:'Fraunces',serif;font-weight:500;}
a,a:link,a:visited,a:hover,a:active{text-decoration:none;color:inherit;}
.wrap{max-width:var(--max-w);margin:0 auto;padding:0 32px;}

/* ===== Image placeholder ===== */
.img-box{
  position:relative;overflow:hidden;
  background:repeating-linear-gradient(45deg,#c3c2ac,#c3c2ac 10px,#cbcab4 10px,#cbcab4 20px);
}
.img-box::before{
  content:attr(data-label);position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;text-align:center;padding:16px;
  font-size:13px;letter-spacing:.03em;color:#5f5d4e;
  background:rgba(244,241,232,.55);font-family:'Jost',sans-serif;
}
.img-box > img{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;}
.img-box > img:not([src]),
.img-box > img[src=""]{display:none;}

/* ===== Split-screen shell ===== */
html, body {
  height: 100%;
  overflow: hidden;
}
body {
  padding-top: 0;
  background: var(--cream);
}

/* Fixed logo, top-left of the page — sits on the plain background,
   not overlaid on the photo. */
.page-logo {
  position: fixed;
  top: 24px;
  left: 32px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--brand-green);
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
}
.page-logo img {
  width: 30px;
  height: 18px;
  object-fit: contain;
  /* logo asset is the white variant — tint it green for use on a light background */
  filter: invert(38%) sepia(15%) saturate(900%) hue-rotate(45deg);
}

.split-page {
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 20px;
}

/* The bordered outer panel holding both the image and the form */
.split-page__panel {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1400px;
  max-height: 100%;
  background: var(--form-bg);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.split-page__image {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.split-page__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}

.split-page__slide.active {
  opacity: 1;
  z-index: 1;
}

.split-page__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 7px;
}

.split-page__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  transition: width .3s ease, background .3s ease;
}

.split-page__dot.active {
  width: 20px;
  border-radius: 4px;
  background: #fff;
}

.split-page__divider {
  width: 1px;
  background: rgba(63,74,46,.25);
  margin: 12px 28px;
  flex-shrink: 0;
}

.split-page__form {
  flex: 0 0 480px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
}

.split-page__form-inner {
  width: 100%;
}

@media(max-width:900px){
  html, body {
    height: auto;
    overflow: visible;
  }
  .split-page{
    height: auto;
    min-height: 100vh;
    overflow-y: visible;
    padding: 76px 20px 32px;
  }
  .split-page__panel{
    flex-direction: column;
    max-height: none;
  }
  .split-page__divider{
    width: auto;
    height: 1px;
    margin: 24px 0;
  }
  .split-page__image{min-height:220px;}
  .split-page__form{
    flex: none;
    overflow-y: visible;
    min-height: 0;
  }
}

/* ===== Title ===== */
.reg-title-block{
  text-align:center;
  margin-bottom:16px;
}
.reg-title{
  color:var(--brand-green);
  font-weight:600;
  font-size:clamp(22px,2.8vw,28px);
  line-height:1.2;
  margin-bottom:6px;
}
.reg-subtitle{
  color:var(--brand-green);
  font-size:14px;
}

/* ===== Form card ===== */
.reg-card{
  background:var(--cream);
  border-radius:24px;
  padding:24px 26px;
  box-shadow:0 20px 50px rgba(0,0,0,.14);
}
.reg-card h2{
  color:var(--brand-green);
  font-size:20px;
  margin-bottom:4px;
}
.reg-card-subtitle{
  color:var(--text-dark);
  opacity:.75;
  font-size:13px;
  margin-bottom:16px;
}

/* ===== Alerts ===== */
.alert{display:none;border-radius:12px;padding:12px 16px;font-size:12.5px;line-height:1.5;margin-bottom:16px;}
.alert.show{display:block;}
.alert a{text-decoration:underline;font-weight:600;}
.alert-error{background:#f3e0dd;color:var(--maroon);}
.alert-success{background:#e4ead4;color:var(--brand-green);}

/* ===== Inputs ===== */
.field-wrap{margin-bottom:12px;}
.pill-input{
  display:block;
  width:100%;
  border:1.5px solid transparent;
  outline:none;
  border-radius:999px;
  padding:11px 20px;
  font-family:'Jost',sans-serif;
  font-size:14px;
  color:var(--text-dark);
  background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}
.pill-input::placeholder{color:#9a9788;}
.field-wrap.has-error .pill-input{border-color:var(--maroon);}
.field-wrap.has-error .select-pill{border-color:var(--maroon);}
.field-wrap.has-error .country-search-wrap .pill-input{border-color:var(--maroon);}

/* Phone / WhatsApp compound field */
.phone-field{
  display:flex;
  align-items:stretch;
  border-radius:999px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
  background:var(--pill-dark);
  border:1.5px solid transparent;
}
.field-wrap.has-error .phone-field{border-color:var(--maroon);}
.phone-code{
  flex-shrink:0;
  appearance:none;
  -webkit-appearance:none;
  border:none;
  outline:none;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-family:'Jost',sans-serif;
  font-size:13px;
  font-weight:600;
  padding:0 30px 0 18px;
  cursor:pointer;
  max-width:110px;
  background-image:linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 11px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat:no-repeat;
}
.phone-code option{color:#000;}
.phone-input{
  flex:1;
  min-width:0;
  border:none;
  outline:none;
  padding:11px 20px;
  font-family:'Jost',sans-serif;
  font-size:14px;
  background:#fff;
}
.phone-input::placeholder{color:#9a9788;}

/* ===== Searchable country dropdown ===== */
.country-search-wrap{
  position:relative;
  margin-bottom:12px;
}
.country-search-wrap .pill-input{
  margin-bottom:0;
}
.country-search-dropdown{
  position:absolute;
  left:0;right:0;
  top:calc(100% + 4px);
  background:#fff;
  border:1px solid #d9d5c3;
  border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.14);
  max-height:220px;
  overflow-y:auto;
  z-index:30;
}
.country-option{
  padding:10px 18px;
  font-size:13px;
  color:var(--text-dark);
  cursor:pointer;
}
.country-option:hover{background:var(--form-bg);}
.country-option-empty{
  padding:10px 18px;
  font-size:13px;
  color:#9a9788;
}

/* ===== Dropdown pill (how did you hear) ===== */
.select-pill{
  position:relative;
  display:flex;
  align-items:center;
  border-radius:999px;
  margin-bottom:12px;
  min-height:44px;
}
.select-pill select{
  appearance:none;-webkit-appearance:none;
  width:100%;border:none;outline:none;background:transparent;
  padding:14px 46px 14px 22px;
  font-family:'Jost',sans-serif;font-size:13px;font-weight:500;cursor:pointer;
}
.chevron-circle{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  width:26px;height:26px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#fff;pointer-events:none;
}
.select-pill.light{
  background:linear-gradient(180deg,#fbfaf6,#e9e6d9);
  border:1px solid #d9d5c3;
}
.select-pill.light select{color:var(--text-dark);}
.chevron-circle.light{
  color:var(--brand-green);
  background:#fff;
  border:1px solid #d9d5c3;
}

/* ===== Checkboxes ===== */
.check-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  cursor:pointer;
  margin-bottom:10px;
  font-size:12.5px;
  color:var(--text-dark);
  line-height:1.4;
}
.check-row input{position:absolute;opacity:0;width:0;height:0;}
.check-mark{
  flex-shrink:0;
  width:20px;height:20px;
  border-radius:50%;
  border:2px solid #b9b7a4;
  background:#fff;
  position:relative;
  margin-top:1px;
}
.check-row input:checked + .check-mark{
  background:var(--pill-dark);
  border-color:var(--pill-dark);
}
.check-row input:checked + .check-mark::after{
  content:"";
  position:absolute;
  left:5px;top:2px;
  width:6px;height:10px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.check-text b{font-weight:700;}

/* ===== CTA button ===== */
.btn-cta{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  border:none;
  cursor:pointer;
  border-radius:999px;
  padding:14px 24px;
  margin:4px 0 12px;
  background:linear-gradient(90deg, #1e2610 0%, #4d5f27 50%, #1e2610 100%);
}
.btn-cta span{
  position:relative;
  z-index:2;
  color:#fff;
  font-family:'Jost',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  padding:10px 30px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn-cta:disabled{opacity:.7;cursor:not-allowed;}

.reg-footnote{
  text-align:center;
  font-size:13px;
  color:var(--text-dark);
}
.reg-footnote a{color:var(--brand-green);font-weight:700;}

.footer-legal-link{color:var(--gold);font-size:11px;}

/* ===== Modal overlay (used by the thank-you popup) ===== */
.modal-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(45,56,33,.6);
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:400;
}
.modal-overlay.open{display:flex;}
.modal-card{
  background:var(--cream);
  border-radius:22px;
  box-shadow:0 30px 70px rgba(0,0,0,.3);
  width:100%;
}
.modal-card--narrow{max-width:420px;}
.modal-card__body{padding:30px 28px;}
.modal-card__body--center{text-align:center;}
.modal-card__body--center h2{
  color:var(--brand-green);
  font-size:22px;
  margin-bottom:12px;
}
.modal-card__body--center p{
  font-size:14px;
  line-height:1.6;
  color:var(--text-dark);
  margin-bottom:12px;
}
.thanks-secondary{font-weight:600;color:var(--brand-green);}
.thanks-visit-btn{
  margin:6px 0 14px;
}
.thanks-countdown{
  font-size:12px;
  color:var(--text-dark);
  opacity:.65;
  margin-bottom:0 !important;
}

/* ===== Responsive ===== */
@media(max-width:900px){
  .split-page__form-inner{max-width:480px;}
}

@media(max-width:560px){
  .reg-title{font-size:24px;}
  .reg-card{padding:24px 20px;border-radius:18px;}
}

/* ===== Profile picture upload (Nestie signup form) ===== */
.nestie-avatar-label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--brand-green, #425A20);
  margin-bottom:10px;
}
.profile-avatar-section{
  text-align:center;
  margin-bottom:12px;
}
.profile-avatar-preview{
  width:84px;
  height:84px;
  border-radius:50%;
  background:#fff;
  border:1px solid #d9d5c3;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 12px;
  overflow:hidden;
  color:var(--text-dark);
  opacity:.7;
}
.profile-avatar-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:1;
}
.profile-upload-btn{
  border:1px solid var(--brand-green, #425A20);
  background:#fff;
  color:var(--brand-green, #425A20);
  border-radius:999px;
  padding:8px 18px;
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}
.profile-upload-btn:hover{
  background:var(--form-bg);
}
.profile-upload-status{
  font-size:12px;
  color:var(--brand-green, #425A20);
  margin-top:8px;
}
/* ============================================================
   ADDITIONS — append these to the end of your existing auth-theme.css
   Covers: bold alert text, language multi-select chips, and the
   Privacy Policy / Terms & Conditions popup modal.
   ============================================================ */

/* ---- Bold alert messages (success + error) ---- */
.alert-success,
.alert-error{
  font-weight:700;
}

/* ---- "Privacy Policy" / "Terms" clickable text inside the checkbox label ---- */
.legal-link{
  background:none;
  border:none;
  padding:0;
  margin:0;
  font:inherit;
  font-weight:700;
  color:var(--brand-green, #425A20);
  text-decoration:underline;
  cursor:pointer;
}
.legal-link:hover{
  color:var(--green-dark, #3f4a2e);
}

/* ---- Language multi-select chips ---- */
.lang-chips-list{
  margin-top:10px;
}
.lang-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--brand-green, #637b31);
  color:#fff;
  border-radius:999px;
  padding:6px 8px 6px 14px;
  font-size:13px;
  font-weight:600;
  margin:0 8px 8px 0;
}
.lang-chip-remove{
  width:18px;
  height:18px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,.25);
  color:#fff;
  font-size:13px;
  line-height:1;
  cursor:pointer;
}
.lang-chip-remove:hover{
  background:rgba(255,255,255,.4);
}

/* ---- Legal document modal (Privacy Policy / Terms & Conditions) ---- */
.legal-modal-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:600;
  background:rgba(63,74,46,.55);
  align-items:center;
  justify-content:center;
  padding:24px;
}
.legal-modal-overlay.open{
  display:flex;
}
.legal-modal-card{
  background:var(--cream, #f4f1e8);
  border-radius:20px;
  max-width:680px;
  width:100%;
  max-height:85vh;
  display:flex;
  flex-direction:column;
  box-shadow:0 30px 70px rgba(0,0,0,.35);
  overflow:hidden;
}
.legal-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 26px;
  border-bottom:1px solid #d9d5c3;
  flex-shrink:0;
}
.legal-modal-header h2{
  color:var(--brand-green, #425A20);
  font-size:20px;
}
.legal-modal-close{
  background:none;
  border:none;
  font-size:24px;
  line-height:1;
  color:var(--text-dark);
  cursor:pointer;
}
.legal-modal-body{
  padding:24px 26px 32px;
  overflow-y:auto;
  font-size:14px;
  line-height:1.65;
  color:var(--text-dark);
}
.legal-modal-body h2{
  font-size:17px;
  color:var(--brand-green, #425A20);
  margin:22px 0 8px;
}
.legal-modal-body h2:first-child{
  margin-top:0;
}
.legal-modal-body h3{
  font-size:15px;
  color:var(--text-dark);
  margin:16px 0 6px;
  font-weight:700;
}
.legal-modal-body p{
  margin-bottom:10px;
}
.legal-modal-body li{
  margin-left:20px;
  margin-bottom:6px;
}

.phone-field{
  background:linear-gradient(180deg,#fbfaf6,#e9e6d9);
  border:1px solid #d9d5c3;
}
.phone-code{
  background-color:transparent;
  color:var(--text-dark);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-dark) 50%),
    linear-gradient(135deg, var(--text-dark) 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 11px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat:no-repeat;
}