/**
 * Quick contact page styles.
 *
 * Mobile-first: the form and info card stack in a single column and become a
 * two-column layout on wider viewports. Colors, spacing, radii and shadows come
 * from the theme-wide --mytheme-* tokens defined in responsive.css.
 */

.contact-page {
	padding-top: clamp(1.5rem, 4vw, 3rem);
	padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.contact-page__intro {
	max-width: 640px;
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-page__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.9rem, 5vw, 2.75rem);
	line-height: 1.15;
	color: var(--mytheme-ink, #16202c);
}

.contact-page__lead {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--mytheme-muted, #5a6675);
}

/* Flash / notice banners ------------------------------------------------ */

.contact-flash {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.9rem 1.1rem;
	margin-bottom: 1.5rem;
	border-radius: var(--mytheme-radius, 12px);
	border: 1px solid transparent;
	font-size: 1rem;
	line-height: 1.5;
}

.contact-flash--success {
	background: #e8f6ec;
	border-color: #b7e2c2;
	color: #1c6b34;
}

.contact-flash--error {
	background: #fdecea;
	border-color: #f5c2bd;
	color: var(--mytheme-accent-dark, #a71d15);
}

.contact-flash__icon {
	flex: 0 0 auto;
	font-weight: 700;
}

/* Layout grid ----------------------------------------------------------- */

.contact-page__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: start;
}

@media (min-width: 820px) {
	.contact-page__grid {
		grid-template-columns: 1.5fr 1fr;
	}
}

.contact-card {
	background: var(--mytheme-surface, #fff);
	border: 1px solid var(--mytheme-border, #e3e8ef);
	border-radius: var(--mytheme-radius, 12px);
	box-shadow: var(--mytheme-shadow, 0 6px 20px rgba(16, 32, 44, 0.08));
	padding: clamp(1.25rem, 4vw, 2rem);
}

.contact-card__heading {
	margin: 0 0 1rem;
	font-size: 1.35rem;
	color: var(--mytheme-ink, #16202c);
}

.contact-card__note {
	margin: 0 0 1.25rem;
	color: var(--mytheme-muted, #5a6675);
	line-height: 1.55;
}

/* Form ------------------------------------------------------------------ */

.contact-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form__field {
	margin-bottom: 1.15rem;
}

.contact-form__label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
	color: var(--mytheme-ink, #16202c);
}

.contact-form__req {
	color: var(--mytheme-accent, #c8281e);
}

.contact-form__optional {
	font-weight: 400;
	color: var(--mytheme-muted, #5a6675);
	font-size: 0.9em;
}

.contact-form__input {
	display: block;
	width: 100%;
	min-height: var(--mytheme-touch, 44px);
	padding: 0.7rem 0.85rem;
	font-size: 1rem;
	font-family: inherit;
	color: var(--mytheme-ink, #16202c);
	background: var(--mytheme-surface, #fff);
	border: 1px solid var(--mytheme-border, #e3e8ef);
	border-radius: var(--mytheme-radius-sm, 8px);
	transition: border-color var(--mytheme-duration, 220ms) var(--mytheme-ease, ease),
		box-shadow var(--mytheme-duration, 220ms) var(--mytheme-ease, ease);
}

.contact-form__input:focus {
	outline: none;
	border-color: var(--mytheme-accent, #c8281e);
	box-shadow: 0 0 0 3px rgba(200, 40, 30, 0.18);
}

.contact-form__input:focus-visible {
	outline: 2px solid var(--mytheme-accent, #c8281e);
	outline-offset: 2px;
}

.contact-form__input.has-error {
	border-color: var(--mytheme-accent, #c8281e);
	background: #fffafa;
}

.contact-form__textarea {
	resize: vertical;
	min-height: 8rem;
}

.contact-form__error {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.9rem;
	color: var(--mytheme-accent-dark, #a71d15);
}

.contact-form__actions {
	margin-top: 1.5rem;
}

.contact-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--mytheme-touch, 44px);
	padding: 0.8rem 1.75rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: #fff;
	background: var(--mytheme-accent, #c8281e);
	border: 0;
	border-radius: var(--mytheme-radius-sm, 8px);
	cursor: pointer;
	transition: background-color var(--mytheme-duration, 220ms) var(--mytheme-ease, ease),
		transform var(--mytheme-duration, 220ms) var(--mytheme-ease, ease);
}

.contact-form__submit:hover {
	background: var(--mytheme-accent-dark, #a71d15);
}

.contact-form__submit:active {
	transform: translateY(1px);
}

.contact-form__submit:focus-visible {
	outline: 2px solid var(--mytheme-accent-dark, #a71d15);
	outline-offset: 2px;
}

/* Info aside ------------------------------------------------------------ */

.contact-card--info {
	background: var(--mytheme-bg, #f5f7fa);
}

.contact-info {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.contact-info__item {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--mytheme-border, #e3e8ef);
}

.contact-info__item:last-child {
	border-bottom: 0;
}

.contact-info__label {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mytheme-muted, #5a6675);
	margin-bottom: 0.2rem;
}

.contact-info__value {
	color: var(--mytheme-ink, #16202c);
	text-decoration: none;
	font-size: 1.05rem;
	line-height: 1.4;
	transition: color var(--mytheme-duration, 220ms) var(--mytheme-ease, ease);
}

.contact-info__value:hover {
	color: var(--mytheme-accent, #c8281e);
}

.contact-info__phone {
	font-weight: 700;
	font-size: 1.25rem;
}

.contact-hours {
	margin-bottom: 1.5rem;
}

.contact-hours__heading {
	margin: 0 0 0.6rem;
	font-size: 1rem;
	color: var(--mytheme-ink, #16202c);
}

.contact-hours__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.contact-hours__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.35rem 0;
	color: var(--mytheme-muted, #5a6675);
	font-size: 0.95rem;
}

.contact-hours__row.is-closed .contact-hours__time {
	color: var(--mytheme-accent, #c8281e);
	font-weight: 600;
}

.contact-hours__day {
	font-weight: 600;
	color: var(--mytheme-ink, #16202c);
}

.contact-info__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--mytheme-touch, 44px);
	padding: 0.8rem 1.25rem;
	font-weight: 600;
	color: var(--mytheme-accent, #c8281e);
	background: var(--mytheme-surface, #fff);
	border: 2px solid var(--mytheme-accent, #c8281e);
	border-radius: var(--mytheme-radius-sm, 8px);
	text-decoration: none;
	transition: background-color var(--mytheme-duration, 220ms) var(--mytheme-ease, ease),
		color var(--mytheme-duration, 220ms) var(--mytheme-ease, ease);
}

.contact-info__cta:hover,
.contact-info__cta:focus {
	background: var(--mytheme-accent, #c8281e);
	color: #fff;
}

.contact-info__cta:focus-visible {
	outline: 2px solid var(--mytheme-accent-dark, #a71d15);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.contact-form__input,
	.contact-form__submit,
	.contact-info__value,
	.contact-info__cta {
		transition: none;
	}
}
