/* Contact page (page-templates/contact.php). Shared pieces live in base.css. */

/* Hero */
.c-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.c-hero .phero { position: relative; padding-top: 184px; padding-bottom: 72px; }
.c-hero__title { margin: 24px 0 0; max-width: 960px; font-size: clamp(44px, 6vw, 88px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.c-hero__p { margin: 24px 0 0; max-width: 620px; font-size: 19px; line-height: 30px; color: var(--mist); }

/* Layout: form + contact card on the left, calendar on the right */
.c-main { background: var(--concrete); }
.c-main__in { padding-top: 72px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.c-left { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cside { flex: 1 1 400px; min-width: 0; position: sticky; top: 112px; }
.admin-bar .cside { top: 144px; }

/* Form */
.cform { position: relative; min-width: 0; background: #fff; border: 1px solid var(--line-light); padding: 40px; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 88px; }
.c-form__title { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -.015em; }
.c-form__q { margin: 16px 0 0; font-size: 17px; line-height: 27px; font-weight: 600; }
.c-form__p { margin: 8px 0 0; font-size: 16px; line-height: 26px; color: var(--slate); }
.c-rule { height: 1px; background: var(--line-light); }
.q-l { display: flex; flex-direction: column; }
.c-lb { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.in { height: 52px; border: 1px solid var(--line-light); border-radius: 4px; padding: 0 14px; font: 400 16px var(--font); color: var(--ink); background: #fff; box-sizing: border-box; width: 100%; }
.in::placeholder { color: var(--steel); }
.in:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(0,170,180,.2); }
.in--area { height: auto; min-height: 140px; padding-top: 12px; padding-bottom: 12px; resize: vertical; font: inherit; line-height: 24px; }
select.in { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b2a37' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; }
select.in:invalid { color: var(--steel); }
select.in option { color: var(--ink); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.c-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--slate); cursor: pointer; }
.c-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal-deep); cursor: pointer; }
.c-send { width: 100%; justify-content: center; box-sizing: border-box; }
.c-send[disabled] { opacity: .6; cursor: progress; }
.c-note { margin: -8px 0 0; font-size: 13px; line-height: 20px; color: var(--slate); }

/* Result of a send */
.c-msg { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid; border-left-width: 4px; font-size: 15px; line-height: 24px; font-weight: 500; }
.c-msg:focus { outline: none; }
.c-msg__i { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; font: 600 13px/1 var(--mono); }
.c-msg.is-ok { border-color: var(--teal-deep); background: #e6f6f7; color: var(--ink); }
.c-msg.is-ok .c-msg__i { background: var(--teal-deep); color: #fff; }
.c-msg.is-err { border-color: #b3261e; background: #fbeceb; color: #5c1410; }
.c-msg.is-err .c-msg__i { background: #b3261e; color: #fff; }

/* Contact card */
.cal { box-sizing: border-box; }
.c-card { background: #fff; border: 1px solid var(--line-light); padding: 32px; }
.c-card__k { color: var(--teal-deep); }
.c-card__list { list-style: none; margin: 16px 0 0; padding: 0; }
.ct { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-light); font-size: 16px; line-height: 24px; }
.ct--last { border-bottom: 1px solid var(--line-light); }
.ct .lbl { color: var(--slate); padding-top: 4px; }
.ct a { color: var(--ink); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.ct a:hover { color: var(--teal-deep); }

/* Calendar */
.c-cal { background: var(--ink); color: #fff; padding: 32px; }
.c-cal__k { color: var(--teal); }
.c-cal__title { margin-top: 10px; font-size: 22px; font-weight: 600; }
.c-cal__meta { margin-top: 6px; color: var(--mist); }
.c-cal__note { margin: 14px 0 0; font-size: 13px; line-height: 20px; color: var(--mist); }
.c-cal__none { margin: 24px 0 0; font-size: 16px; line-height: 26px; color: var(--mist); }
.c-cal__btn { margin-top: 24px; width: 100%; justify-content: center; box-sizing: border-box; }

/* Scroll-in animation (from the design) */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.ct, .cform, .cal { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
	}
}

/* Phones (the design's -M boards) */
@media (max-width: 900px) {
	.c-hero .phero { padding-top: 128px; padding-bottom: 56px; }
	.c-main__in { padding-top: 64px; padding-bottom: 64px; }
	.c-main .btn-p { height: auto; min-height: 54px; padding-top: 14px; padding-bottom: 14px; justify-content: center; text-align: center; width: 100%; box-sizing: border-box; }
	.cform { padding: 24px 20px; gap: 24px; }
	.two { grid-template-columns: 1fr; }
	.cal, .c-card, .c-cal { padding: 24px 20px; }
	.cside { position: static; }
}
