/* Home page: the turnover calendar demo (oct31.js) and the test interview request. */

/* ---------- Turnover calendar ---------- */
/* Move-in green and move-out purple pass the colour-blind checks on #1c1625; the product's blue
   and purple do not (protan ΔE 1.8). Icons and labels carry the type too, never colour alone.
   Notes stay neutral grey so they never compete with the two event types. */
.cal-section{--in:#34ad6c;--out:#9f74da;--note:#8f829e;padding:88px 64px 100px;position:relative;isolation:isolate}
.cal-section h2 .nowrap{white-space:nowrap}
.cal-stage{max-width:1280px;margin:0 auto}
.cal-window{position:relative;padding:5px;border:1px solid #44364f;border-radius:16px;background:#292333;box-shadow:0 12px 36px #976bd31a}
.cal-app{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 300px;background:#17121f;border-radius:0 0 10px 10px}
.cal-main{position:relative;display:flex;flex-direction:column;padding:18px 18px 20px;border-right:1px solid #c9a8fa1a;min-width:0}
.cal-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;margin-bottom:14px}
.cal-month{margin-right:auto;font:600 19px/1.2 Manrope,Inter,sans-serif;letter-spacing:-.4px;color:#f5f1fa}
.cal-property select{appearance:none;-webkit-appearance:none;padding:7px 32px 7px 12px;border:1px solid #c9a8fa2e;border-radius:8px;background:#1f1828 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9b6dc' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center/13px;color:#e8def3;font:500 12.5px/1.3 Inter,sans-serif;cursor:pointer}
.cal-property select:focus-visible{outline:2px solid #d8b4fe;outline-offset:2px}
.cal-filters{display:inline-flex;gap:2px;padding:3px;border:1px solid #c9a8fa26;border-radius:9px;background:#1f1828}
.tr4 .cal-filters button{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:6px;font:500 12.5px/1.3 Inter,sans-serif;color:#b9aec8}
.tr4 .cal-filters button:hover{color:#f5f1fa}
.tr4 .cal-filters button[aria-pressed=true]{background:#2f2140;color:#f5f1fa}
.cal-filters svg,.cal-notes-toggle svg{width:14px;height:14px}
.tr4 .cal-notes-toggle{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border:1px solid #c9a8fa26;border-radius:9px;background:#1f1828;font:500 12.5px/1.3 Inter,sans-serif;color:#8f829e}
.tr4 .cal-notes-toggle[aria-pressed=true]{border-color:#c9a8fa59;background:#2a2036;color:#f5f1fa}
.cal-ico-in{color:var(--in)}
.cal-ico-out{color:var(--out)}
.cal-grid{flex:1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:auto;grid-auto-rows:minmax(96px,1fr);border:1px solid #c9a8fa1a;border-radius:10px;overflow:hidden;background:#17121f}
.cal-dow{padding:9px 10px;border-bottom:1px solid #c9a8fa1a;background:#1c1625;font:500 11px/1 Inter,sans-serif;letter-spacing:.6px;text-transform:uppercase;color:#8f829e}
.cal-day{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0;padding:6px 6px 8px;border-right:1px solid #c9a8fa14;border-bottom:1px solid #c9a8fa14}
.cal-day:nth-child(7n){border-right:0}
.cal-day:nth-last-child(-n+7){border-bottom:0}
.cal-day.is-other{background:#130f19}
.tr4 .cal-num{align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 5px;border-radius:12px;font:500 12px/1 Inter,sans-serif;color:#b9aec8}
.tr4 .cal-num:hover{background:#ffffff0d;color:#f5f1fa}
.cal-day.is-other .cal-num{color:#5d5168;pointer-events:none}
.tr4 .cal-day.is-today .cal-num{background:#d4b5f5;color:#372445;font-weight:600}
.tr4 .cal-day.is-selected .cal-num{box-shadow:0 0 0 1.5px #d8b4fe}
.tr4 .cal-chip{--c:var(--in);display:flex;align-items:center;gap:6px;width:100%;min-width:0;padding:4px 6px;border-radius:6px;background:color-mix(in srgb,var(--c) 14%,transparent);box-shadow:inset 3px 0 0 var(--c);font:500 11.5px/1.25 Inter,sans-serif;color:#f1e7fa;text-align:left}
.tr4 .cal-chip.is-out{--c:var(--out)}
.tr4 .cal-chip:hover,.tr4 .cal-chip[aria-expanded=true]{background:color-mix(in srgb,var(--c) 26%,transparent)}
.cal-chip svg,.cal-note svg{flex:none;width:13px;height:13px;margin-left:2px}
.cal-chip svg{color:var(--c)}
.cal-chip span,.cal-note span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-chip small{flex:none;margin-left:auto;font-size:10.5px;color:#a99cb8}
.cal-note{display:flex;align-items:center;gap:6px;width:100%;min-width:0;padding:4px 6px;border-radius:6px;background:#ffffff0b;box-shadow:inset 3px 0 0 var(--note);font:500 11.5px/1.25 Inter,sans-serif;color:#d9cce6}
.cal-note svg{color:var(--note)}
.cal-day.is-past :is(.cal-chip,.cal-note){opacity:.6}
.tr4 .cal-more{align-self:flex-start;padding:1px 4px;border-radius:4px;font:500 11px/1.4 Inter,sans-serif;color:#d8b4fe}
.tr4 .cal-more:hover{background:#d8b4fe1a}
.cal-dots{display:none}
.tr4 .cal-chip:focus-visible,.tr4 .cal-num:focus-visible,.tr4 .cal-more:focus-visible,.tr4 .cal-item:focus-visible,.tr4 .cal-filters button:focus-visible,.tr4 .cal-notes-toggle:focus-visible,.tr4 .cal-pop button:focus-visible,.tr4 .cal-back:focus-visible,.tr4 .cal-note-form button:focus-visible{outline:2px solid #d8b4fe;outline-offset:1px}

.cal-side{display:flex;flex-direction:column;min-width:0;padding:18px 16px 18px}
.tr4 .cal-side h3{margin:0;font:600 16px/1.3 Manrope,Inter,sans-serif;letter-spacing:-.2px;color:#f5f1fa}
.cal-side-head{display:flex;align-items:flex-start;gap:10px;padding:0 4px}
.cal-side-head>div{min-width:0}
.tr4 .cal-side-head p{margin:4px 0 0;font-size:12px;color:#8f829e}
.tr4 .cal-back{margin-left:auto;flex:none;padding:3px 8px;border:1px solid #c9a8fa2e;border-radius:6px;font:500 11.5px/1.4 Inter,sans-serif;color:#d8b4fe}
.cal-list{margin-top:8px}
.cal-group{padding:10px 0 2px;border-top:1px solid #c9a8fa14}
.cal-group:first-child{border-top:0}
.tr4 .cal-group>p{margin:0 4px 4px;font:600 12px/1.4 Inter,sans-serif;color:#d9cce6}
.tr4 .cal-item{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:start;width:100%;padding:7px 4px;border-radius:8px;text-align:left}
.tr4 button.cal-item:hover,.tr4 .cal-item[aria-expanded=true]{background:#ffffff09}
.cal-avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:#3a2a50;color:#e6cbff;font:600 11.5px/1 Inter,sans-serif}
.tr4 .cal-item.is-note{padding:4px}
.cal-note-ico{width:32px;height:22px;background:none;color:var(--note)}
.cal-note-ico svg{width:15px;height:15px}
.cal-item strong{display:block;font:600 13px/1.35 Inter,sans-serif;color:#f1e7fa}
.cal-item.is-note strong{font-weight:500;color:#e2d8ec}
.cal-type{display:flex;align-items:center;gap:5px;font-size:12px;line-height:1.4;color:#c9bdd6}
.cal-type svg{flex:none;width:13px;height:13px}
.cal-item small{display:block;font-size:11.5px;line-height:1.4;color:#8f829e}
.tr4 .cal-empty{margin:18px 4px;font-size:13px;color:#8f829e}
.tr4 .cal-show{margin:8px 4px 0;padding:6px 10px;border:1px solid #c9a8fa2e;border-radius:8px;font:500 12px/1.3 Inter,sans-serif;color:#d8b4fe}
.tr4 .cal-show:hover{border-color:#c9a8fa66}
.tr4 .cal-show:focus-visible{outline:2px solid #d8b4fe;outline-offset:1px}
.tr4 .cal-hint{margin:14px 4px 0;font-size:12px;line-height:1.5;color:#8f829e}
.cal-note-form{display:flex;gap:6px;margin:12px 4px 0}
.cal-note-form input{flex:1;min-width:0;padding:8px 10px;border:1px solid #c9a8fa2e;border-radius:8px;background:#140f1a;color:#f5f1fa;font:400 13px/1.3 Inter,sans-serif;outline:none}
.cal-note-form input::placeholder{color:#6f6380}
.cal-note-form input:focus{border-color:#b88be3;box-shadow:0 0 0 3px #b88be32e}
.tr4 .cal-note-form button{flex:none;padding:8px 12px;border-radius:8px;background:#d4b5f5;color:#372445;font:600 12.5px/1.3 Inter,sans-serif}

.cal-pop{position:absolute;z-index:6;width:min(300px,calc(100% - 16px));padding:14px 16px 16px;border:1px solid #c9a8fa47;border-radius:12px;background:#211a2b;box-shadow:0 18px 50px #000b}
.cal-pop-head{display:flex;align-items:center;gap:8px}
.cal-pop-type{display:inline-flex;align-items:center;gap:7px;font:600 14px/1.3 Inter,sans-serif;color:#f5f1fa}
.cal-pop-type svg{width:16px;height:16px}
.tr4 .cal-pop-close{display:grid;place-items:center;width:28px;height:28px;margin-left:auto;border-radius:7px;color:#b9aec8}
.tr4 .cal-pop-close:hover{background:#ffffff0f;color:#f5f1fa}
.cal-pop-close svg{width:15px;height:15px}
.cal-person{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 0 12px;border-top:1px solid #c9a8fa1a;border-bottom:1px solid #c9a8fa1a}
.cal-person strong{font:600 15px/1.3 Inter,sans-serif;color:#f5f1fa}
.cal-pop dl{display:grid;grid-template-columns:70px minmax(0,1fr);gap:7px 12px;margin:12px 0 14px;font-size:13px;line-height:1.4}
.cal-pop dt{color:#8f829e}
.cal-pop dd{margin:0;color:#e8def3}
.cal-pop-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tr4 .cal-pop-actions button{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 10px;border:1px solid #c9a8fa33;border-radius:8px;font:500 12.5px/1.3 Inter,sans-serif;color:#e8def3}
.tr4 .cal-pop-actions button:hover{border-color:#c9a8fa66;background:#ffffff08}
.tr4 .cal-pop-actions .is-primary{border-color:#d9bdf6;background:#d4b5f5;color:#372445}
.tr4 .cal-pop-actions .is-primary:hover{border-color:#e4cafb;background:#e4cafb}
.cal-pop-actions .is-wide{grid-column:1/-1}
.tr4 .cal-pop-status{display:flex;align-items:center;gap:7px;margin:0 0 12px;padding:8px 10px;border:1px solid #34ad6c4d;border-radius:8px;background:#34ad6c17;color:#bfe9cf;font:500 12.5px/1.35 Inter,sans-serif}
.cal-pop-status svg{flex:none;width:14px;height:14px;color:#6bdb94}
.cal-pop .cal-note-form{margin:10px 0 0}
.cal-pop-actions svg{width:14px;height:14px}
.tr4 .cal-pop-note{margin:10px 0 0;font-size:12px;line-height:1.5;color:#a99cb8}

/* Three benefits under the calendar; the interview row shows one below 1100px, this one keeps all. */
.m27-interview-benefits.cal-benefits{grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr) 1px minmax(0,1fr)}
@media(max-width:1100px){.m27-interview-benefits.cal-benefits{display:grid;grid-template-columns:1fr;gap:18px}.m27-interview-benefits.cal-benefits>div:last-child{display:flex!important}}

@media(max-width:1200px){.cal-section{padding-left:40px;padding-right:40px}.cal-app{grid-template-columns:minmax(0,1fr) 260px}}
@media(max-width:900px){
 .cal-app{grid-template-columns:1fr}
 .cal-main{border-right:0;border-bottom:1px solid #c9a8fa1a}
 .cal-side{padding-top:14px}
}
/* Phones: each day shows coloured dots; tapping a day lists it below the grid. */
@media(max-width:700px){
 .cal-section{padding:70px 22px}
 .cal-main{padding:12px 10px 14px}
 .cal-toolbar{gap:8px}
 .cal-month{width:100%;font-size:17px}
 .cal-property{flex:1 1 auto}
 .cal-property select{width:100%}
 .cal-dow{padding:7px 0;text-align:center;font-size:10px;letter-spacing:.3px}
 .cal-grid{grid-auto-rows:minmax(52px,auto)}
 .cal-day{align-items:center;padding:5px 2px 6px;gap:5px}
 .tr4 .cal-chip,.tr4 .cal-more,.cal-note{display:none}
 .tr4 .cal-num{position:static;font-size:12.5px}
 .tr4 .cal-num:after{content:"";position:absolute;inset:0}
 .cal-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;max-width:100%}
 .cal-dots i{width:7px;height:7px;border-radius:50%;background:var(--in);box-shadow:0 0 0 1.5px #17121f}
 .cal-dots i.is-out{background:var(--out)}
 .cal-dots i.is-note{background:var(--note)}
 .cal-day.is-past .cal-dots{opacity:.6}
 .cal-side{padding:14px 10px 14px}
}

/* ---------- Test interview request ---------- */
/* One screen: the heading and the locked number, one line of door buttons, then name, email,
   phone and the button in one line. */
.tc-band{max-width:1280px;margin:64px auto 0;padding:40px 44px 34px;border:1px solid #c9a8fa24;border-radius:24px;background:radial-gradient(ellipse 50% 85% at 50% 0%,#7651aa30,transparent 72%),#16111d;text-align:center}
.tr4 .tc-title{margin:0;font:600 clamp(28px,2.8vw,40px)/1.14 Manrope,Inter,sans-serif;letter-spacing:-1.4px;color:#f5f1fa;text-wrap:balance}
.tr4 .tc-title em{font-style:normal;background:linear-gradient(90deg,#dcc2ff,#b184e0 70%,#d5b7f7);-webkit-background-clip:text;background-clip:text;color:transparent}
.tr4 .tc-lede{max-width:760px;margin:12px auto 0;font-size:16px;line-height:1.65;color:#bdaec9;text-wrap:pretty}
.tc-lede .nowrap{white-space:nowrap}
.tc-form{display:grid;gap:12px;max-width:1000px;margin:24px auto 0}

/* The number itself stays locked until we email it. */
.tc-number{justify-self:center;display:inline-flex;align-items:center;gap:12px;margin:0 0 4px;padding:6px 10px 6px 6px;border:1px solid #c9a8fa40;border-radius:999px;background:#1d1626;box-shadow:0 0 0 6px #c084fc0d;color:#f5f1fa}
.tc-number-ico{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#2f2140;border:1px solid #b88be3;color:#e6cbff}
.tc-number-ico svg{width:20px;height:20px}
.tc-number-digits{font:600 clamp(20px,2vw,24px)/1 "Space Grotesk",Manrope,sans-serif;letter-spacing:1px;white-space:nowrap}
.tc-number-lock{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:#c084fc1a;color:#d8b4fe;font:500 12.5px/1 Inter,sans-serif}
.tc-number-lock svg{width:14px;height:14px}

.tc-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr) auto;gap:10px;align-items:start;text-align:left}
.tc-field{display:grid;align-content:start;gap:6px;min-width:0}
.tc-field>span{font:500 12.5px/1.35 Inter,sans-serif;color:#d9cce6}
.tc-field input{width:100%;min-width:0;padding:11px 12px;border:1px solid #c9a8fa2e;border-radius:9px;background:#140f1a;color:#f5f1fa;font:400 14.5px/1.3 Inter,sans-serif;outline:none}
.tc-field input::placeholder{color:#6f6380}
.tc-field input:focus{border-color:#b88be3;box-shadow:0 0 0 3px #b88be32e}
.tc-field small{font-size:11.5px;line-height:1.45;color:#8f829e}
.tc-field small:empty{display:none}
.tc-field.is-invalid input{border-color:#ef8f8f}
.tc-field .tc-error{color:#f2a7a7}
.tc-row .tc-field input{height:54px;padding:0 16px;font-size:15px;border-radius:10px}
.tr4 .tc-submit{min-height:54px;margin:0;padding:0 22px;gap:14px;border-radius:10px;white-space:nowrap}
/* One-click answers: native radios, styled as pills, in one centred line. */
.tc-choice{display:grid;gap:8px;min-width:0}
.tc-doors{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 14px}
.tc-choice-label{font:500 12.5px/1.35 Inter,sans-serif;color:#d9cce6}
.tc-choice small{flex-basis:100%;font-size:11.5px;line-height:1.45;color:#f2a7a7}
.tc-choice small:empty{display:none}
.tc-choice.is-invalid .tc-opt span{border-color:#ef8f8f8c}
.tc-opts{display:flex;flex-wrap:wrap;gap:6px}
.tc-opt{position:relative}
.tc-opt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.tc-opt span{display:inline-flex;align-items:center;padding:8px 14px;border:1px solid #c9a8fa2e;border-radius:999px;background:#140f1a;color:#d9cce6;font:500 13px/1.2 Inter,sans-serif;white-space:nowrap}
.tc-opt:hover span{border-color:#c9a8fa66;color:#f5f1fa}
.tc-opt input:checked+span{border-color:#b88be3;background:#2f2140;color:#fff}
.tc-opt input:focus-visible+span{outline:2px solid #d8b4fe;outline-offset:2px}
.tc-trap{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.tr4 .tc-status{margin:0;padding:10px 12px;border:1px solid #ef8f8f59;border-radius:9px;background:#ef8f8f12;font-size:12.5px;line-height:1.55;color:#f4c4c4;text-align:left}
.tr4 .tc-fine{max-width:900px;margin:0 auto;font-size:11.5px;line-height:1.55;color:#8f829e}
.tr4 .tc-fine a{color:#d8b4fe;text-decoration:underline;text-underline-offset:2px}
.tc-done{display:grid;justify-items:center;gap:10px;max-width:560px;margin:34px auto 0;padding:8px 0 4px;text-align:center}
.tc-done-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#6bdb941f;border:1px solid #6bdb9466;color:#bff3d2}
.tc-done-icon svg{width:22px;height:22px}
.tr4 .tc-done h4{margin:6px 0 0;font:600 19px/1.3 Manrope,Inter,sans-serif;letter-spacing:-.3px;color:#f5f1fa}
.tr4 .tc-done p{margin:0;font-size:14px;line-height:1.65;color:#bdaec9}
.tr4 .tc-done a{color:#d8b4fe;text-decoration:underline;text-underline-offset:2px}

@media(max-width:1100px){
 .tc-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tr4 .tc-row .tc-submit{justify-content:space-between}
}
@media(max-width:700px){
 .tc-band{margin-top:40px;padding:30px 18px 26px;border-radius:18px}
 .tc-row{grid-template-columns:1fr}
 .tc-doors{justify-content:flex-start;text-align:left}
 .tr4 .tc-submit{width:100%;justify-content:space-between}
 .tc-number{gap:8px;padding:5px 8px 5px 5px}
 .tc-number-ico{width:34px;height:34px}
 .tc-number-digits{font-size:19px;letter-spacing:.5px}
 .tc-number-lock span{display:none}
}
