/* Contact page (EN contact.php and FR fr/contact.php): skyline banner, Montréal card, weather, form.
   Loaded after style.css and pages.css. */
main.page.contact-page { max-width: 1100px; }
/* ---------- Header (2026-10): the Montréal skyline as a wide banner, the title and intro in its sky ---------- */
.contact-hero {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 600 / 290; min-height: 420px;
  border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 24px 48px -32px rgba(20, 33, 61, 0.35);
}
.contact-hero .city-map { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.contact-hero-text { max-width: 600px; padding: 48px 52px; }
.contact-hero h1 { margin: 0 0 14px; font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.contact-hero .lead { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
@supports (color: color-mix(in srgb, red, blue)) { .contact-hero .lead { color: color-mix(in srgb, var(--ink) 70%, var(--muted)); } }
.contact-where {
  position: absolute; right: 20px; bottom: 18px; margin: 0;
  /* Two lines: "📍 Based in Montréal, Canada", then the time and weather under the name */
  display: grid; grid-template-columns: auto minmax(0, 1fr); justify-content: start;   /* the pin column stays as narrow as the pin, even when the badge above is wider */ align-items: center; gap: 2px 8px;
  padding: 10px 16px 11px 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem;
}
@supports (color: color-mix(in srgb, red, blue)) {
  .contact-where { background: color-mix(in srgb, var(--card) 82%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.contact-where strong { color: var(--ink); }
.contact-where .city-time { grid-column: 2; }
.contact-where .city-time:empty { display: none; }   /* without JavaScript: just "Based in Montréal, Canada" */
/* The availability pill (Admin > Pages > Home > Availability badge) heads the card: what's on, where, what time */
.contact-where .avail-badge { grid-column: 1 / -1; justify-self: start; margin: 0 0 8px -3px; }
/* Phones: the text and the pill on the sky colour, then the whole skyline under them (not zoomed in) */
@media (max-width: 699px) {
  .contact-hero { aspect-ratio: auto; min-height: 0; display: flex; flex-direction: column; background: var(--accent-soft); }
  .contact-hero-text { padding: 28px 24px 0; }
  .contact-where { position: static; align-self: flex-start; margin: 16px 24px 4px; }
  .contact-hero .city-map { position: static; order: 3; z-index: 0; height: auto; }
}

.or { display: flex; align-items: center; gap: 16px; margin: 36px 0 24px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 24px 48px -28px rgba(20, 33, 61, 0.35); }
.row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row.two { grid-template-columns: 1fr 1fr; } }
.field { margin: 0 0 16px; }
.field label, .field legend { display: block; margin: 0 0 6px; padding: 0; font-weight: 600; font-size: 0.9rem; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: inherit;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
fieldset.field { border: 0; min-width: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.9rem; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #0f1626; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.send {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 24px; border: 0; border-radius: 999px;
  background: var(--accent); color: #0f1626; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.send:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(125, 155, 184, 0.9); }
.send:disabled { opacity: 0.65; cursor: progress; transform: none; box-shadow: none; }
.send svg { width: 18px; height: 18px; }
.send .t-sending, form.is-sending .send .t-send { display: none; }
form.is-sending .send .t-sending { display: inline; }
.form-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 0.88rem; }
.form-status { margin: 14px 0 0; text-align: center; font-weight: 600; font-size: 0.95rem; color: #b3261e; }
.form-status[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .form-status { color: #ff8a80; } }

.success { display: none; text-align: center; padding: 16px 8px; }
.success:focus { outline: none; }
.form-card.sent .success { display: block; }
.form-card.sent form { display: none; }
.success svg { width: 72px; height: 72px; margin: 0 auto 8px; display: block; }
.success circle { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 3; }
.success path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) { .form-card.sent .success path { animation: draw 0.6s ease-out 0.15s backwards; } }
@keyframes draw { from { stroke-dashoffset: 40; } }
.success h2 { margin: 8px 0 8px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.success p { margin: 0; color: var(--muted); }
/* Weather in the sky (assets/inc/weather.php adds wx-<kind> to the skyline): clouds, rain, snow, fog, lightning */
.city-map .wx { display: none; }
.city-map .cloud { fill: #ffffff; opacity: 0.92; }
.city-map .drops { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0.75; }
.city-map .flakes { fill: #ffffff; }
.city-map .fog { fill: none; stroke: #ffffff; stroke-width: 7; stroke-linecap: round; opacity: 0.7; }
.city-map .bolt { fill: #ffc72c; }
.city-map.wx-mostly .cloud-b,
.city-map.wx-partly .cloud-a, .city-map.wx-partly .cloud-b,
.city-map.wx-cloudy .cloud-a, .city-map.wx-cloudy .cloud-b, .city-map.wx-cloudy .cloud-c,
.city-map.wx-fog .wx-fog-bands,
.city-map.wx-drizzle .cloud-a, .city-map.wx-drizzle .cloud-b, .city-map.wx-drizzle .drops-a,
.city-map.wx-rain .cloud-a, .city-map.wx-rain .cloud-b, .city-map.wx-rain .cloud-c, .city-map.wx-rain .drops-a, .city-map.wx-rain .drops-b, .city-map.wx-rain .drops-c,
.city-map.wx-snow .cloud-a, .city-map.wx-snow .cloud-b, .city-map.wx-snow .cloud-c, .city-map.wx-snow .flakes,
.city-map.wx-storm .cloud-a, .city-map.wx-storm .cloud-b, .city-map.wx-storm .cloud-c, .city-map.wx-storm .drops-a, .city-map.wx-storm .drops-c, .city-map.wx-storm .bolt { display: inline; }
/* Grey skies hide the sun (and the moon); fog only dims it */
.city-map.wx-cloudy .sun, .city-map.wx-cloudy .moon-cut,
.city-map.wx-rain .sun, .city-map.wx-rain .moon-cut,
.city-map.wx-snow .sun, .city-map.wx-snow .moon-cut,
.city-map.wx-storm .sun, .city-map.wx-storm .moon-cut { display: none; }
.city-map.wx-fog .sun { opacity: 0.55; }
.city-map.wx-rain .cloud, .city-map.wx-storm .cloud { fill: #c3cfdc; }
.city-map.wx-storm .cloud { fill: #a9b6c6; }
.city-map.wx-drizzle .drops-a { opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .city-map .drops { animation: wx-fall 0.9s linear infinite; }
  .city-map .drops-b { animation-delay: -0.3s; }
  .city-map .drops-c { animation-delay: -0.6s; }
  .city-map .flakes { animation: wx-drift 4s ease-in-out infinite alternate; }
  .city-map .bolt { animation: wx-flash 5s steps(1) infinite; }
}
@keyframes wx-fall { from { transform: translateY(-6px); opacity: 0; } 30% { opacity: 0.75; } to { transform: translateY(10px); opacity: 0; } }
@keyframes wx-drift { from { transform: translate(-3px, -2px); } to { transform: translate(3px, 4px); } }
@keyframes wx-flash { 0%, 100% { opacity: 0; } 8%, 12% { opacity: 1; } }
@media (prefers-color-scheme: dark) {
  .city-map .cloud { fill: var(--accent); opacity: 0.45; }
  .city-map .flakes { fill: var(--ink); opacity: 0.8; }
  .city-map .fog { stroke: var(--accent); opacity: 0.35; }
  .city-map.wx-rain .cloud, .city-map.wx-storm .cloud { fill: var(--accent); opacity: 0.6; }
}
/* ---------- The form, full width under the header ---------- */
.contact-layout { margin-top: 40px; }
.contact-layout .or { display: block; margin: 0 0 14px; color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-layout .or::before, .contact-layout .or::after { display: none; }
.form-card textarea { min-height: 180px; }
@media (min-width: 700px) {
  .form-card .send { display: flex; width: 320px; margin-left: auto; }
  .form-card .form-note { text-align: right; }
}

/* Montréal card: an illustrated skyline (Mont Royal and its cross, downtown, the Olympic Stadium, the Biosphère) and the local time */
.city-map { display: block; width: 100%; height: auto; }
.city-map .sky { fill: var(--accent-soft); }
.city-map .sun { fill: #ffc72c; }   /* daytime sun; at night (7 p.m. to 7 a.m. Montréal time) it becomes a purple crescent moon */
.city-map .moon-cut { fill: var(--accent-soft); display: none; }
.city-map.is-night .sun { fill: #9b7fe6; }
.city-map.is-night .moon-cut { display: inline; }
.city-map .far { fill: var(--accent); opacity: 0.32; }
.city-map .far-cross { fill: var(--accent); opacity: 0.7; }
.city-map .mid { fill: var(--accent); opacity: 0.8; }
.city-map .near { fill: #394c68; }
@supports (color: color-mix(in srgb, red, blue)) { .city-map .near { fill: color-mix(in srgb, var(--accent) 35%, #14213d); } }
.city-map .stadium-cable { fill: none; stroke: #394c68; stroke-width: 1; opacity: 0.6; }
.city-map .water { fill: var(--bg); }
.city-map .biosphere { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; }
.city-map .ripple { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) {
  .city-map .ripple { animation: ripple 6s ease-in-out infinite alternate; }
}
@keyframes ripple { from { transform: translateX(-4px); } to { transform: translateX(4px); } }
@media (prefers-color-scheme: dark) {
  .city-map .near { fill: var(--accent); }
  .city-map .stadium-cable { stroke: var(--accent); }
  .city-map .mid { opacity: 0.38; }
  .city-map .far { opacity: 0.2; }
}
.city-time strong { color: var(--ink); font-variant-numeric: tabular-nums; }
