/* O8: the Contact page is drawn from the API. Only what is new: the loading skeleton and the message box. Nothing here
   changes an existing rule (pages.css and testimonials.css style the sections as before). */
#contactMount{display:block;}

/* message box (error with Retry, empty page, no JavaScript) */
#contactMount .cn-note{max-width:560px;margin:0 auto;padding:150px 24px 120px;text-align:center;color:var(--muted);}
#contactMount .cn-note p{margin-bottom:18px;font-size:16px;}

/* loading skeleton */
@keyframes cnShimmer{to{background-position:-200% 0;}}
#contactMount .cn-skel span{display:block;border-radius:14px;
  background:linear-gradient(90deg,rgba(77,171,255,0.06) 25%,rgba(77,171,255,0.16) 37%,rgba(77,171,255,0.06) 63%);
  background-size:200% 100%;animation:cnShimmer 1.4s linear infinite;}
#contactMount .cn-skel{padding:0 24px;}
#contactMount .cn-skel-hero{max-width:1232px;margin:0 auto;padding:140px 0 60px;display:grid;gap:16px;}
#contactMount .cn-skel-hero span:nth-child(1){height:30px;width:200px;}
#contactMount .cn-skel-hero span:nth-child(2){height:84px;width:min(620px,100%);}
#contactMount .cn-skel-hero span:nth-child(3){height:48px;width:min(420px,100%);}
#contactMount .cn-skel-cards{max-width:1232px;margin:0 auto;padding-bottom:120px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;}
#contactMount .cn-skel-cards span{height:190px;}
@media (prefers-reduced-motion:reduce){#contactMount .cn-skel span{animation:none;}}

/* U6: the form. The second list stays out of the way until a category is chosen; a list that fails the check turns red
   like a text box; a list that is still loading looks waiting. The grid, spacing and colours come from pages.css. */
#contactMount .field[hidden]{display:none;}
#contactMount .field.err select{border-color:#f87171;}
#contactMount .field select:disabled{opacity:.7;cursor:wait;}
/* P5: the Privacy Policy box. A row with the box on the left and the words beside it; it turns red like a text box when it is missing. */
#contactMount .field.consent{margin-top:2px;}
#contactMount .consent-row{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-size:14px;line-height:1.5;}
#contactMount .consent-row input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;margin:2px 0 0;padding:0;accent-color:var(--blue,#4dabff);cursor:pointer;}
#contactMount .consent-row a{text-decoration:underline;}
#contactMount .field.consent.err .consent-row{color:#f87171;}
#contactMount .field.consent.err input[type=checkbox]{outline:2px solid #f87171;outline-offset:2px;}
/* The social buttons under the map share the full width of the map, equal in size (they wrap to equal rows on a small screen). */
#contactMount .loc .socials{justify-content:stretch;gap:12px;}
#contactMount .loc .socials a{flex:1 1 64px;justify-content:center;}

/* RSP6: the Email, Call us and Location cards.
   With 1 to 3 cards the number of columns is a class (cinfo-1, cinfo-2, cinfo-3). On a laptop nothing changes.
   Up to 980px two columns, and up to 680px (a phone) ONE column: each card is a full-width row, so the email, phone
   number and address are never squeezed into a narrow column. */
.cinfo.cinfo-1{grid-template-columns:minmax(0,1fr);}
.cinfo.cinfo-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.cinfo.cinfo-3{grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:980px){
  .cinfo.cinfo-2,.cinfo.cinfo-3{grid-template-columns:repeat(2,minmax(0,1fr));}
  .cinfo.cinfo-1{grid-template-columns:minmax(0,1fr);}
}
@media(max-width:680px){
  .cinfo.cinfo-1,.cinfo.cinfo-2,.cinfo.cinfo-3{grid-template-columns:minmax(0,1fr);}
  .cinfo .card{width:100%;}
}
