/*
 * Sunburst theme, round 7 unit 3 (Nathan's Loom review, 2026-11-04): Contact Us redesign (form first, three paths
 * opening the real forms inline, fixed-height map with address + directions), footer with a Contact Us form (the phone
 * came back in round 14), shared form styles for forms shown outside their own page, maintenance hours order.
 * Loaded after sunburst.css by layout.blade.php. Only classes the round 7 views add (sb-*) or page-scoped overrides.
 */

/* ---- Shared form look, for a form outside its own page (Contact Us paths, footer) ---- */
.sb-form .fields{display:grid;grid-template-columns:1fr 1fr;gap:20px 22px}
.sb-form .field{display:flex;flex-direction:column;gap:8px;min-width:0;border:0;padding:0;margin:0}
.sb-form .field.full{grid-column:1 / -1}
.sb-form .field label,.sb-form .field legend{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ink)}
.sb-form .field legend{margin-bottom:8px;padding:0}
.sb-form .field .req{font-weight:600;letter-spacing:.08em;color:var(--accent-dark);margin-left:4px}
.sb-form .field input[type=text],.sb-form .field input[type=email],.sb-form .field input[type=tel],.sb-form .field textarea{font-family:var(--sans);font-size:15.5px;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:var(--btn-radius);padding:15px 16px;width:100%;transition:border-color .2s,box-shadow .2s}
.sb-form .field textarea{min-height:150px;resize:vertical;line-height:1.6}
.sb-form .field input:focus,.sb-form .field textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 22%,transparent)}
.sb-form .date-wrap{position:relative}
.sb-form .date-wrap input{padding-right:48px}
.sb-form .date-wrap svg{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:19px;height:19px;stroke:var(--accent-dark);fill:none;stroke-width:1.8;pointer-events:none}
.sb-form .choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body .sb-form .field label.choice{display:flex;align-items:center;gap:10px;min-height:51px;padding:0 16px;white-space:nowrap;border:1px solid var(--line);border-radius:var(--btn-radius);cursor:pointer;color:var(--ink);font-weight:500;font-size:15px;letter-spacing:0;text-transform:none;line-height:1.2;background:var(--white);transition:border-color .2s,background .2s}
body .sb-form .field label.choice:hover{border-color:var(--primary)}
body .sb-form .field label.choice:has(input:checked){border-color:var(--primary);background:var(--soft-2)}
body .sb-form .field label.choice input[type=radio]{accent-color:var(--primary);width:17px;height:17px;flex:none;padding:0;margin:0;border:0;box-shadow:none}
.sb-form .form-foot{margin-top:26px}
.sb-form .btn[disabled]{opacity:.55;cursor:not-allowed}
.sb-form .site-flash,.sb-form .site-errors{margin-bottom:22px}

/* ---- Maintenance page: hours first, then the phone, then the note ---- */
body.p-maintenance .info-card.mx-hours .mx-hours-phone{margin-top:18px}
body.p-maintenance .info-card.mx-hours .mx-hours-note{margin-top:8px;font-size:14.5px;line-height:1.65}

/* ---- Contact Us: the form card first, the leasing team and quick links beside it ---- */
body.p-contact .sb-contact-top{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:36px;align-items:start}
body.p-contact .sb-contact-side{display:grid;gap:24px;align-content:start}
body.p-contact .sb-contact-main h2{margin-bottom:18px}
body.p-contact .info-card .mail{color:var(--primary);font-weight:600;word-break:break-all}
body.p-contact .info-card .mail:hover{color:var(--accent-dark)}
body.p-contact .info-card .sb-leasing-phone{color:var(--primary);font-weight:600}
body.p-contact .info-card .sb-leasing-phone:hover{color:var(--accent-dark)}
body.p-contact .sb-ph-quiet{font-size:14.5px;color:var(--text);font-weight:500}
body.p-contact .sb-ph-quiet:hover{color:var(--primary)}
body.p-contact .quick .stack{grid-template-columns:1fr}

/* The three paths: an accordion of <details>; the open one shows its form underneath. */
.sb-paths-legend{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ink);margin-bottom:12px}
.sb-path{border:1px solid var(--line);border-radius:var(--btn-radius);margin-bottom:10px;background:var(--white);transition:border-color .2s}
.sb-path[open]{border-color:var(--primary)}
.sb-path > summary{list-style:none;display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;color:var(--ink);font-weight:600}
.sb-path > summary::-webkit-details-marker{display:none}
.sb-path > summary:hover{background:var(--soft-2)}
.sb-path[open] > summary{background:var(--soft-2);border-bottom:1px solid var(--line)}
.sb-path > summary:focus-visible{outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 22%,transparent)}
.sb-path-dot{width:17px;height:17px;flex:none;border:2px solid var(--line);border-radius:50%;background:var(--white);transition:border-color .2s,box-shadow .2s}
.sb-path[open] .sb-path-dot{border-color:var(--primary);box-shadow:inset 0 0 0 3px var(--white);background:var(--primary)}
.sb-path-body{padding:22px 20px 24px}
.sb-path-msg{background:var(--tint);border-left:3px solid var(--primary);padding:14px 16px;border-radius:var(--btn-radius);margin-bottom:22px;color:var(--ink)}
.sb-path-msg a{color:var(--primary);font-weight:700;text-decoration:underline;text-underline-offset:3px}
body.p-contact .sb-path .form-offline{margin-top:12px}

/* Left column = the form card, then map + address under it, so it balances the leasing/quick-links column (no wall
   of white under the form card). The map is a fixed 320px, top-aligned, so an opening form can never stretch it. */
body.p-contact .sb-contact-col{display:grid;gap:28px;align-content:start;min-width:0}
body.p-contact .sb-find{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px;align-items:start}
body.p-contact .sb-find .sb-map{position:relative;height:320px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--soft)}
body.p-contact .sb-find .sb-map iframe{display:block;width:100%;height:320px;min-height:0;border:0}
body.p-contact .sb-find-card{align-self:start;padding:28px 26px 30px}
body.p-contact .sb-find-card h2{font-size:22px}
/* Anchored returns (#help-other, #site-contact) land below the sticky header. */
body .sb-path,footer .sb-foot-form{scroll-margin-top:120px}

/* ---- Footer: Site Map | Resident Services | Find us (about, address, phone, directions) | Contact Us form ---- */
footer .foot-top.sb-foot{grid-template-columns:1fr 1fr 1.25fr 2fr}
footer .foot-top.sb-foot.no-form{grid-template-columns:1.1fr 1.1fr 1.6fr}
footer .sb-foot-about{margin-bottom:16px;line-height:1.7}
footer .sb-foot-find address{margin-bottom:12px}
footer .sb-foot-phone{display:block;width:fit-content;margin-bottom:14px;color:var(--white);font-weight:600}
footer .sb-foot-phone:hover{color:var(--accent)}
footer .sb-foot-directions{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:var(--track);text-transform:uppercase;color:var(--accent);border-bottom:1.5px solid var(--accent);padding-bottom:3px}
footer .sb-foot-directions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
footer .sb-foot-directions:hover{color:var(--white)}
footer .sb-foot-intro{margin-bottom:14px}
footer .sb-form .fields{gap:12px 14px}
footer .sb-form .field label{color:color-mix(in srgb,var(--soft) 90%,transparent);font-size:11px}
footer .sb-form .field .req{color:var(--accent)}
footer .sb-form .field input[type=text],footer .sb-form .field input[type=email],footer .sb-form .field input[type=tel],footer .sb-form .field textarea{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.22);color:var(--white);padding:11px 13px;font-size:14.5px}
footer .sb-form .field textarea{min-height:90px}
footer .sb-form .field input:focus,footer .sb-form .field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 25%,transparent)}
footer .sb-form .form-foot{margin-top:16px}
footer .sb-form .form-offline{color:color-mix(in srgb,var(--soft) 70%,transparent);font-size:12.5px}
footer .sb-form .form-offline a{color:var(--accent)}

@media (max-width:1100px){
  footer .foot-top.sb-foot,footer .foot-top.sb-foot.no-form{grid-template-columns:1fr 1fr}
  footer .sb-foot-form{grid-column:1 / -1}
}
@media (max-width:960px){
  body.p-contact .sb-contact-top{grid-template-columns:1fr}
}
@media (max-width:640px){
  .sb-form .fields,.sb-form .choices{grid-template-columns:1fr}
  .sb-form .form-foot .btn{width:100%;justify-content:center}
  .sb-path-body{padding:18px 14px 20px}
  body.p-contact .sb-find{grid-template-columns:1fr}
  body.p-contact .sb-find .sb-map,body.p-contact .sb-find .sb-map iframe{height:300px}
  footer .foot-top.sb-foot,footer .foot-top.sb-foot.no-form{grid-template-columns:1fr}
}
