/* Daily Rider: the Contact form (1.20.8, includes/contact.php), on base.css's tokens, fields and buttons. The
   Contact page does not load the community's styles, so the few field rules the form needs from there are here.
   Text in a <p> is styled as .drc .drc-contact__x: base.css's ".drc p" reset (colour, font, margin) outranks one class. */

.drc-contact { margin: 0 0 8px; }
.drc-contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.drc-contact .drc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.drc-contact .drc-field--wide { grid-column: 1 / -1; }
.drc-contact .drc-field > label { color: var(--dr-ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.drc-contact .drc-opt { color: var(--dr-muted); font-weight: 400; }

/* Fields: 44px tall, edges strong enough to see in sunlight (as on the community's own forms). */
.drc-contact { --dr-field: #8a857c; }
:root[data-color-mode*="dark"] .drc-contact { --dr-field: #78736b; }
.drc-contact :is(input[type="text"], input[type="email"]), .drc-contact textarea { border-color: color-mix(in srgb, var(--dr-field) 55%, var(--dr-line)); }
.drc-contact :is(input[type="text"], input[type="email"]) { height: 44px; padding-top: 0; padding-bottom: 0; }
.drc-contact textarea { min-height: 176px; line-height: 1.55; resize: vertical; }
.drc-contact :is(input, textarea):hover { border-color: var(--dr-ink); }
.drc-contact :is(input, textarea)[aria-invalid="true"], .drc-contact :is(input, textarea)[aria-invalid="true"]:hover { border-color: var(--dr-nc); }
.drc .drc-contact__err { margin: 0; color: var(--dr-nc); font-size: 13px; font-weight: 600; line-height: 1.4; }

/* The bot trap: off screen, out of the tab order, silent to screen readers. */
.drc-contact .drc-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.drc .drc-contact__status { margin: 18px 0 0; padding: 11px 14px; border-radius: var(--dr-r-ctl); background: var(--dr-nc-bg); color: var(--dr-nc); font-size: 14px; font-weight: 600; line-height: 1.45; }
.drc-contact__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.drc .drc-contact__send { min-height: 44px; padding: 12px 26px; font-size: 15px; }
.drc .drc-contact__note { flex: 1 1 220px; margin: 0; color: var(--dr-muted); font-size: 13px; line-height: 1.5; }
.drc .drc-contact__note a { color: var(--dr-muted); text-decoration: underline; }
.drc .drc-contact__note a:hover { color: var(--dr-accent); }

/* Sent: a green tick, the title in the site's display face, and who the reply goes to. */
.drc-contact__done { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border: 1px solid var(--dr-line); border-radius: var(--dr-r-card); background: var(--dr-surface); }
.drc-contact__done:focus { outline: none; }
.drc-contact__done:focus-visible { outline: 2px solid var(--dr-accent); outline-offset: 2px; }
.drc-contact__tick { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--dr-pb-bg); color: var(--dr-pb); }
.drc .drc-contact__done-title { margin: 0; color: var(--dr-ink); font-family: var(--dr-display); font-size: 28px; font-weight: 700; line-height: 1.05; text-transform: uppercase; }
.drc .drc-contact__done-text { margin: 6px 0 0; color: var(--dr-muted); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.drc .drc-contact__again { margin: 10px 0 0 -6px; font-size: 14px; }

.drc .drc-contact__noscript { margin: 0; color: var(--dr-muted); font-size: 15px; }
.drc .drc-contact__noscript a { color: var(--dr-accent); text-decoration: underline; }

@media (max-width: 600px) {
	.drc-contact__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.drc .drc-contact__send { width: 100%; }
	.drc-contact__done { padding: 18px; }
}
/* Touch screens: fields at 16px so phones do not zoom in. */
@media (pointer: coarse) {
	.drc-contact input, .drc-contact textarea { font-size: 16px !important; }
}

/* ---------- 1.21.0: the Contact page around the form ([drc_contact_page]) ---------- */

.drc-cpage { display: flex; flex-direction: column; gap: 24px; }

/* The hero: the Tenere in the forest, darkened on the left for the words. */
.drc-cpage__hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 400px; padding: 48px; overflow: hidden; border-radius: var(--dr-r-card); background: #000; color: #fff; }
.drc-cpage__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; }
.drc-cpage__hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .72) 45%, rgba(0, 0, 0, .12) 100%), linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 55%); }
.drc-cpage__herotext { max-width: 620px; }
.drc .drc-cpage__eyebrow { margin: 0 0 10px; color: #8cc4ff; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.drc .drc-cpage__title { margin: 0; padding: 0; color: #fff; font-family: var(--dr-display); font-size: 68px; font-weight: 700; line-height: .95; letter-spacing: 0; text-transform: uppercase; }
.drc .drc-cpage__lead { margin: 16px 0 0; color: rgba(255, 255, 255, .88); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.drc .drc-cpage__lead strong { color: #fff; }
.drc .drc-cpage__quick { margin: 22px 0 0; }
.drc .drc-cpage__quick a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--dr-r-ctl); background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px; font-weight: 600; }
.drc .drc-cpage__quick a:hover { border-color: #fff; background: #fff; color: #000; }
.drc .drc-cpage__quick .drc-cpage__ico { width: 24px; height: 24px; background: none; color: inherit; }

/* The form and the side cards. */
.drc-cpage__main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 24px; }
.drc-cpage .drc-card { background: var(--dr-surface); border: 1px solid var(--dr-line); border-radius: var(--dr-r-card); }
.drc-cpage__formcard { padding: 30px 32px 32px; }
.drc .drc-cpage__h2 { margin: 0; color: var(--dr-ink); font-family: var(--dr-display); font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: uppercase; }
.drc .drc-cpage__sub { margin: 14px 0 0; color: var(--dr-muted); font-size: 14px; font-weight: 600; }
.drc-cpage__topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 24px; }
.drc .drc-cpage__topic { min-height: 38px; padding: 0 14px; border: 1px solid var(--dr-line); border-radius: var(--dr-r-ctl); background: var(--dr-surface); color: var(--dr-ink); font-size: 14px; font-weight: 600; }
.drc .drc-cpage__topic:hover { border-color: var(--dr-accent); color: var(--dr-accent); }
.drc .drc-cpage__topic[aria-pressed="true"] { border-color: var(--dr-accent-strong); background: var(--dr-accent-strong); color: #fff; }
.drc-cpage__formcard .drc-contact { margin: 0; }

.drc-cpage__side { display: flex; flex-direction: column; gap: 16px; }
.drc-cpage__card { padding: 20px 22px; }
.drc .drc-cpage__h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--dr-ink); font-family: var(--dr-font); font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.drc-cpage__ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--dr-accent-soft); color: var(--dr-accent); }
.drc-cpage__list > div { padding: 10px 0; border-top: 1px solid var(--dr-line); }
.drc-cpage__list > div:first-child { padding-top: 0; border-top: 0; }
.drc-cpage__list > div:last-child { padding-bottom: 0; }
.drc-cpage__list dt { color: var(--dr-muted); font-size: 13px; font-weight: 600; }
.drc-cpage__list dd { margin: 2px 0 0; color: var(--dr-ink); font-size: 15px; overflow-wrap: anywhere; }
.drc .drc-cpage__list a { color: var(--dr-accent); font-weight: 600; }
.drc .drc-cpage__list a:hover { color: var(--dr-accent-hover); text-decoration: underline; }
.drc-cpage__list--hours > div { display: flex; justify-content: space-between; gap: 12px; }
.drc-cpage__list--hours dt { color: var(--dr-ink); font-size: 14px; font-weight: 600; }
.drc-cpage__list--hours dd { margin: 0; color: var(--dr-muted); font-size: 14px; white-space: nowrap; }

.drc-cpage__socials li + li { margin-top: 2px; }
.drc .drc-cpage__social { display: flex; align-items: center; gap: 12px; margin: 0 -10px; padding: 8px 10px; border-radius: var(--dr-r-ctl); color: var(--dr-ink); }
.drc .drc-cpage__social:hover { background: var(--dr-soft); }
.drc-cpage__sicon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--dr-btn); color: var(--dr-btn-ink); transition: background-color .18s ease; }
.drc .drc-cpage__social:hover .drc-cpage__sicon { background: var(--dr-accent-strong); color: #fff; }
.drc-cpage__sicon svg { width: 18px; height: 18px; }
.drc-cpage__social strong { display: block; font-size: 15px; line-height: 1.3; }
.drc-cpage__handle { display: block; color: var(--dr-muted); font-size: 13px; line-height: 1.3; }

/* The map: the area, never a street. Google's map has no dark style, so dark mode tones it down. */
.drc-cpage__mapcard { overflow: hidden; }
.drc-cpage__maphead { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--dr-line); }
.drc .drc-cpage__maphead .drc-cpage__h3 { margin: 0; }
.drc .drc-cpage__maphead p { margin: 2px 0 0; color: var(--dr-muted); font-size: 14px; }
.drc-cpage__map { display: block; width: 100%; height: 420px; border: 0; background: var(--dr-soft); }
:root[data-color-mode*="dark"] .drc-cpage__map { filter: invert(.9) hue-rotate(180deg) brightness(.95) contrast(.9); }

/* 1.24.0: the message card and the side cards end on the same line (Jean: "make sure the message box lines up with the
   social box keeping things symmetric and neat"). Laptops only: the message card stretches to the side column and the
   message box takes the extra room, Send staying at the card's foot; if the form is ever the taller one, the last side
   card takes the difference instead. */
@media (min-width: 961px) {
	.drc-cpage__main { align-items: stretch; }
	.drc-cpage__formcard { display: flex; flex-direction: column; }
	.drc-cpage__formcard .drc-contact, .drc-cpage__formcard .drc-contact__form { display: flex; flex: 1; flex-direction: column; }
	.drc-cpage__formcard .drc-contact__grid { flex: 1; grid-template-rows: auto auto 1fr; }
	.drc-cpage__formcard .drc-field:has(> textarea) { display: flex; flex-direction: column; }
	.drc-cpage__formcard .drc-field > textarea { flex: 1; }
	.drc-cpage__side > .drc-card:last-child { flex: 1; }
}

@media (max-width: 960px) {
	.drc-cpage__main { grid-template-columns: minmax(0, 1fr); }
	.drc-cpage__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
	.drc-cpage__hero { min-height: 340px; padding: 36px; }
	.drc .drc-cpage__title { font-size: 56px; }
}
@media (max-width: 600px) {
	.drc-cpage { gap: 16px; }
	.drc-cpage__hero { min-height: 0; padding: 120px 20px 24px; }
	.drc-cpage__hero::after { background: linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .75) 55%, rgba(0, 0, 0, .2) 100%); }
	.drc .drc-cpage__title { font-size: 44px; }
	.drc .drc-cpage__lead { font-size: 16px; }
	.drc .drc-cpage__quick a { width: 100%; justify-content: center; }
	.drc-cpage__formcard { padding: 22px 18px 24px; }
	.drc .drc-cpage__h2 { font-size: 28px; }
	.drc-cpage__map { height: 300px; }
}

/* 1.37.0: the contact page in the site's new finish (Jean: "apply this to the rest of the site"): cards with the same
   whisper of depth, topic choices as pills, one inner padding per screen size (24 / 20 / 16; the form card had 30 by
   32 and the side cards 20 by 22) and one gap between cards (16, 8 on phones; the page had 24 and 16). */
.drc-cpage .drc-card { border-color: color-mix(in srgb, var(--dr-line) 80%, transparent); box-shadow: var(--dr-shadow); }
.drc .drc-cpage__topic { border-radius: var(--dr-r-pill); }
.drc-cpage, .drc-cpage__main, .drc-cpage__side { gap: 16px; }
.drc-cpage__formcard, .drc-cpage__card { padding: 24px; }
@media (max-width: 900px) { .drc-cpage__formcard, .drc-cpage__card { padding: 20px; } }
@media (max-width: 560px) {
	.drc-cpage, .drc-cpage__main, .drc-cpage__side { gap: 8px; }
	.drc-cpage__formcard, .drc-cpage__card { padding: 16px; }
	.drc-cpage { max-width: none !important; margin-inline: calc(50% - 50vw + 8px) !important; } /* 8px from the screen's sides, as every other page's cards (they sat 24 in); !important: the block layout centres its children with auto margins !important */
}
