/* Zentopia V3.4 — visual layer only. All field names, stages and JS behaviours are unchanged. */
:root {
  --forest: #0b302e;
  --forest-2: #225143;
  --gold: #b48c42;
  --gold-soft: #efe7d5;
  --cream: #f7f8f5;
  --white: #ffffff;
  --ink: #20312c;
  --muted: #617069;
  --line: #e2e8e2;
  --error: #a12e32;
  --focus: #2c7361;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;min-width:0;background:var(--cream);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.55}
a{color:var(--forest-2);text-underline-offset:3px}
.wrap{width:min(780px,calc(100% - 36px));margin:0 auto}
.skip-link{position:absolute;left:12px;top:-100px;z-index:100;padding:10px 16px;background:var(--white);border:2px solid var(--forest);border-radius:8px}
.skip-link:focus{top:8px}
.masthead{background:#fff;border-bottom:1px solid #e5e9e2}
.masthead-row{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand-link{display:inline-flex;align-items:center;text-decoration:none;flex:0 1 auto;min-width:0}
.brand-logo{display:block;width:252px;height:auto;max-width:100%;object-fit:contain}
.mast-label{flex:none;font-size:10px;letter-spacing:.12em;font-weight:700;color:#567266;text-align:right}
.layout{padding:29px 0 46px}
.intro{margin-bottom:19px}
.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:750;color:#8b6b36;text-transform:uppercase}
.intro h1{font-size:clamp(26px,4vw,32px);line-height:1.22;letter-spacing:-.025em;font-weight:700;color:var(--forest);margin:7px 0 8px}
.intro p{font-size:14px;color:var(--muted);margin:0;max-width:680px}
.card{border:1px solid var(--line);border-radius:14px;background:var(--white);box-shadow:0 5px 21px rgba(18,45,32,.035);padding:28px 32px}
.progress{margin-bottom:24px;border-bottom:1px solid var(--line);padding-bottom:19px}
.progress-top{display:flex;justify-content:space-between;gap:8px;align-items:center;color:var(--forest);font-size:13px}
.progress-top strong{font-weight:750}
.progress-top span{font-size:12px;color:var(--muted)}
.track{height:5px;border-radius:99px;background:#e9ede7;margin-top:11px;overflow:hidden}
.track>div{height:100%;background:linear-gradient(90deg,var(--forest-2),#4c7e60);border-radius:99px;transition:width .2s ease}
.progress-1{width:25%}.progress-2{width:50%}.progress-3{width:75%}.progress-4{width:100%}
h2{font-size:21px;line-height:1.3;letter-spacing:-.012em;font-weight:730;color:var(--forest);margin:0}
.step-desc{font-size:13px;line-height:1.55;margin:7px 0 22px;color:var(--muted)}
.fields.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 17px}
.field{margin:0 0 18px;min-width:0}
.field label,.google-block label{display:block;font-size:12px;font-weight:700;margin-bottom:6px;color:#334b40;line-height:1.45}
.field label span[aria-hidden=true]{color:#9f563e}
.field input,.field select,.field textarea,.history-question select,.history-question textarea,#google-address-query{
  display:block;width:100%;min-width:0;min-height:46px;border:1px solid #cdd8cf;border-radius:9px;padding:11px 12px;background:#fff;color:var(--ink);font:inherit;font-size:15px;line-height:1.4;
  box-shadow:none;transition:border-color .12s ease,box-shadow .12s ease
}
.field input::placeholder,.field textarea::placeholder,#google-address-query::placeholder{color:#7a8981}
.field textarea,.history-question textarea{resize:vertical;min-height:80px}
.field select,.history-question select{padding-right:24px}
.field input:focus,.field select:focus,.field textarea:focus,.history-question select:focus,.history-question textarea:focus,#google-address-query:focus,.google-block .address-option:focus-visible,.link-button:focus-visible,button:focus-visible,summary:focus-visible,.brand-link:focus-visible{
  outline:2px solid var(--focus);outline-offset:2px;border-color:var(--focus)
}
.field-error,.errorlist{color:var(--error);font-size:12px;list-style:none;padding:0;margin:6px 0}
.invalid input,.invalid select,.invalid textarea,.field input[aria-invalid=true]{border-color:var(--error)}
.micro{color:var(--muted);font-size:12px;line-height:1.55;margin:0 0 12px}
#id-validation-message{min-height:1.2em;padding:1px 0;margin:0 0 17px}
#id-validation-message.invalid{color:var(--error);font-weight:650}
.field input#id_date_of_birth[readonly]{background:#f3f6f3;color:#255143;cursor:default}
.section-rule{display:flex;gap:8px;align-items:baseline;justify-content:space-between;border-bottom:1px solid var(--line);padding:13px 0 10px;margin:7px 0 18px}
.section-rule strong{font-size:14px;color:var(--forest)}.section-rule span{color:var(--muted);font-size:11px}
.google-block{padding:16px;background:#f7f9f6;border:1px solid var(--line);border-radius:10px;margin:0 0 16px}
.google-block .micro{margin:7px 0 0}
.google-block gmp-place-autocomplete{width:100%;display:block;min-height:44px}
#google-suggestions{display:grid;gap:4px;margin-top:5px}
#google-suggestions .address-option{width:100%;background:#fff;text-align:left;border:1px solid var(--line);border-radius:8px;font-weight:450;font-size:14px;color:var(--ink);padding:11px 12px;justify-content:flex-start;min-height:44px}
#google-suggestions .address-option:hover,#google-suggestions .address-option:focus{background:#eef3ee}
.google-attribution{font-size:11px;float:right;color:#818b82}.google-attribution b{letter-spacing:-.02em;color:#4285f4}
.optional-details{margin:10px 0 3px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.optional-details summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:51px;padding:12px 15px;font-size:13px;font-weight:700;color:var(--forest)}
.optional-details summary::-webkit-details-marker,.history-group summary::-webkit-details-marker{display:none}
.optional-details summary::after{content:'+';font-size:19px;font-weight:400;color:var(--forest-2);margin-left:auto}
.optional-details[open] summary::after{content:'−'}
.optional-details summary span{font-size:11px;color:#79867d;font-weight:500;margin-left:auto}
.optional-body{padding:17px 15px 0;border-top:1px solid var(--line);background:#fdfefd}
.static-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 22px;padding:13px 15px;background:#f4f7f4;border:1px solid var(--line);border-radius:9px;font-size:13px}
.static-choice strong{color:var(--forest-2)}
.range-labels{display:flex;justify-content:space-between;font-size:11px;color:#788b7f;margin-bottom:4px}
.field input.severity-range{accent-color:var(--forest-2);border:none;padding:0;min-height:30px;cursor:pointer;box-shadow:none}
.severity-value{float:right;border:1px solid var(--gold-soft);border-radius:99px;background:#faf7f0;padding:1px 10px;color:var(--forest);font-size:12px}
.urgent{color:#8d312e;background:#fff4ef;border:1px solid #efd6c9;border-radius:9px;padding:14px;margin:10px 0;font-size:13px}
.hint-line{font-size:12px;line-height:1.5;color:#5d7065;border-left:3px solid var(--gold);padding:11px 14px;background:#f8f9f5;border-radius:0 7px 7px 0;margin-top:18px}
.history-accordion{display:grid;gap:10px}
.history-group{border:1px solid #dfe7df;border-radius:10px;overflow:hidden;margin:0;background:#fff}
.history-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:59px;padding:13px 16px;background:#f7f9f6}
.history-group>summary::after{content:'⌄';font-size:18px;line-height:1;color:#607569;margin-left:-3px}
.history-group[open]>summary::after{content:'⌃'}
.history-group summary strong{font-size:13px;color:var(--forest);line-height:1.4}
.history-group summary small{display:block;font-size:11px;color:#7d8b80;margin-top:2px}
.count-positive{flex:none;white-space:nowrap;font-size:11px;color:#557668}
.count-positive.has-alert{color:#996a31;font-weight:700}
.history-rows{padding:4px 16px 13px}
.history-question{display:grid;grid-template-columns:minmax(0,1fr) minmax(128px,175px);gap:9px 14px;align-items:center;padding:13px 0;border-bottom:1px solid #edf1eb}
.history-question:last-child{border-bottom:0}
.question-label{font-size:13px;line-height:1.45;font-weight:570;color:#314239}
.question-label small{display:inline-block;color:#8c794f;font-size:10px;margin-right:8px}
.history-question select{font-size:14px;min-height:44px;padding:9px 10px}
.history-details{grid-column:1/-1;padding:11px 13px;background:#f6f9f6;border-radius:8px}
.history-details label{font-size:12px;color:#566b60;display:block;margin-bottom:6px}
.history-details textarea{min-height:80px;font-size:14px}
.checkfield{margin:14px 0;border:1px solid var(--line);padding:16px;border-radius:10px;background:#fff}
.checkfield label{display:flex;align-items:flex-start;gap:13px;font-size:13px;line-height:1.55;cursor:pointer}
.checkfield input{margin:3px 0 0;accent-color:var(--forest-2);width:21px;height:21px;min-width:21px;min-height:21px;flex:none}
.privacy{font-size:12px;color:var(--muted);margin:15px 0}
.actions{display:flex;justify-content:flex-end;gap:11px;border-top:1px solid var(--line);padding-top:22px;margin-top:26px}
button,.link-button{appearance:none;-webkit-appearance:none;border:0;border-radius:9px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding:12px 22px;font-family:inherit;font-weight:700;font-size:14px;line-height:1.4;cursor:pointer;text-decoration:none;touch-action:manipulation}
.primary,.link-button{background:var(--forest);color:#fff}.primary:hover,.link-button:hover{background:#164638;color:#fff}
.secondary{background:#edf3ee;color:var(--forest)}.secondary:hover{background:#e2ebe3}
button:disabled{opacity:.7;cursor:wait}
.error-box{color:#8b3031;background:#fff4f2;border:1px solid #f0d8d2;border-radius:9px;padding:14px;font-size:13px;margin-bottom:18px}
.page-footer{border-top:1px solid var(--line);background:#fff;color:#66766b;padding:19px 0}
.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:18px;font-size:11px}
.success{text-align:center;padding:48px 35px;margin:20px auto 35px;max-width:650px}
.success-icon,.session-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#edf5ef;color:#276449;font-size:28px;font-weight:700;margin:0 auto 16px}
.session-icon{background:#fff5ed;color:#99623a}
.success h1{font-size:clamp(23px,3.5vw,29px);line-height:1.3;letter-spacing:-.02em;color:var(--forest);margin:9px 0 12px}
.success p{color:var(--muted);font-size:14px;max-width:505px;margin:14px auto 20px}
.success .link-button{margin-top:6px}
.trap{position:absolute!important;left:-10000px!important;height:1px;width:1px;overflow:hidden!important}
[hidden],.js .step[hidden]{display:none!important}
@media(max-width:650px){
  .wrap{width:min(100% - 28px,780px)}
  .masthead-row{min-height:73px;gap:7px}
  .brand-logo{width:210px}
  .mast-label{font-size:8px;letter-spacing:.06em;max-width:85px;line-height:1.4}
  .layout{padding:22px 0 35px}
  .intro{margin-bottom:17px}.intro h1{font-size:27px}.intro p{font-size:13px}
  .card{border-radius:12px;padding:22px 17px}
  .progress{padding-bottom:17px;margin-bottom:22px}
  .step-desc{margin-bottom:19px}
  .fields.two{grid-template-columns:minmax(0,1fr);gap:0}
  .field input,.field select,.field textarea,.history-question select,.history-question textarea,#google-address-query{font-size:16px;min-height:48px}
  .section-rule{display:block}.section-rule span{display:block;margin-top:3px}
  .history-question{grid-template-columns:minmax(0,1fr);gap:7px;padding:13px 0}
  .history-question .answer-cell{width:100%}
  .history-question select{min-height:46px}
  .history-group>summary{padding:13px 12px}
  .history-rows{padding:2px 13px 11px}
  .actions{gap:10px}
  .actions button{flex:1;min-width:0;min-height:49px;padding:12px 10px}
  .footer-inner{display:block;text-align:center;line-height:1.9}.footer-inner span{display:block}
  .success{padding:34px 20px;margin:6px auto 25px}
}
@media(max-width:380px){
  .mast-label{display:none}.brand-logo{width:215px}
  .wrap{width:calc(100% - 24px)}.card{padding:19px 14px}
  .history-group summary strong{font-size:12px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

/* ZENTOPIA_STATUS_LAYOUT_V1_7_1_BEGIN */
/* A scoped enhancement to the shared intake stylesheet.  Do not alter the
   active four-step intake form, CSRF validation, or successful submission flow.
   Target branded pages without #intake-form, using modern browser :has(). */
@supports selector(body:has(footer.page-footer)) {
  html:has(body:has(footer.page-footer):not(:has(#intake-form))) {
    min-height: 100%;
  }
  body:has(footer.page-footer):not(:has(#intake-form)) {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex !important;
    flex-direction: column !important;
    background: #f7f8f5;
    color: #082f2b;
  }
  body:has(footer.page-footer):not(:has(#intake-form)) > header {
    flex: 0 0 auto;
  }
  body:has(footer.page-footer):not(:has(#intake-form)) > main {
    flex: 1 0 auto !important;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 68px) 20px;
  }
  body:has(footer.page-footer):not(:has(#intake-form)) > main :is(.card, .status-card, .success-card, .error-card, .message-card, .confirmation-card, .thank-you-card) {
    width: min(100%, 760px);
    max-width: 760px;
    margin-inline: auto;
    border: 1px solid #e1e9e3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 28px rgba(12, 47, 43, .045);
  }
  body:has(footer.page-footer):not(:has(#intake-form)) > main :is(h1,h2,h3) {
    color: #092f2d;
    line-height: 1.2;
  }
  body:has(footer.page-footer):not(:has(#intake-form)) > main :is(.muted,.description,.subtitle,.supporting-copy) {
    color: #55736c;
  }
  body:has(footer.page-footer):not(:has(#intake-form)) > footer.page-footer {
    flex: 0 0 auto;
    margin-top: auto !important;
    width: 100%;
    min-height: 62px;
    border-top: 1px solid #e1e9e3;
    background: #fff;
  }
  body:has(footer.page-footer):not(:has(#intake-form)) :is(a,button):focus-visible {
    outline: 3px solid #bd9251;
    outline-offset: 3px;
  }
  @media (max-width: 640px) {
    body:has(footer.page-footer):not(:has(#intake-form)) > main { padding: 24px 14px 42px; }
    body:has(footer.page-footer):not(:has(#intake-form)) > main :is(.card,.status-card,.success-card,.error-card,.message-card,.confirmation-card,.thank-you-card) {
      border-radius: 12px;
    }
    body:has(footer.page-footer):not(:has(#intake-form)) > footer.page-footer .wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      text-align: center;
      padding: 16px;
    }
  }
}
/* ZENTOPIA_STATUS_LAYOUT_V1_7_1_END */
