/* Gertrudes contact page (information/contact).
   Linked by template/information/contact.twig after {{ header }}, so it loads
   after every theme sheet on both server-selected headers and wins at equal
   specificity. Everything is scoped under .gtr-contact / .gtr-form. */

/* ---------------------------------------------------------------- 1. Tokens */
.gtr-contact {
	--gt-brand: #e85224;        /* icons / large accents only — 3.7:1, fails AA at text size */
	--gt-brand-strong: #c73e12; /* interactive text, hovers — 5.1:1 on white */
	--gt-brand-deep: #a83210;   /* hover/active for filled controls */
	--gt-brand-soft: #fdeee6;
	--gt-ink: #2f2a26;
	--gt-muted: #6f6862;
	--gt-line: #efe8e2;
	--gt-border: #ddd2c8;       /* form control borders — visible but soft */
	--gt-surface-alt: #faf5f0;
	color: var(--gt-ink);
}

/* ---------------------------------------------------------------- 2. Layout */
.gtr-contact {
	display: grid;
	gap: 20px;
	margin: 6px 0 10px;
}

@media (min-width: 992px) {
	.gtr-contact {
		grid-template-columns: 360px minmax(0, 1fr);
		gap: 28px;
		align-items: start;
	}
}

.gtr-contact__info {
	display: grid;
	gap: 20px;
}

/* ------------------------------------------------------------- 3. Info cards */
.gtr-contact-card {
	padding: 22px;
	border: 1px solid var(--gt-line);
	border-radius: 10px;
	background: var(--gt-surface-alt);
}

.gtr-contact__form {
	padding: 22px;
	border: 1px solid var(--gt-line);
	border-radius: 10px;
	background: #fff;
}

/* CARD-level title (level 3), per plaza/gtr-sectionhead.css. Was Prata at
   19px, which put it within 3px of a real section title and made a card look
   like a band. Cards are sans; the serif is reserved for levels 1 and 2. */
.gtr-contact .gtr-contact-card__title {
	margin: 0 0 14px;
	font-size: var(--gt-title-card, 17px);
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	color: var(--gt-title-ink, #2f2a26);
}

.gtr-contact-card__address {
	margin: 0;
	font-style: normal;
	font-size: 14px;
	line-height: 1.65;
	color: var(--gt-muted);
}

.gtr-contact .gtr-contact-card__subtitle {
	margin: 16px 0 4px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--gt-ink);
}

.gtr-contact-card__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--gt-muted);
}

.gtr-contact-card__map {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	margin-top: 14px;
	padding: 0 18px;
	border: 1px solid var(--gt-brand-strong);
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--gt-brand-strong);
	background: #fff;
	text-decoration: none;
}

.gtr-contact-card__map:hover,
.gtr-contact-card__map:focus {
	color: #fff;
	background: var(--gt-brand-strong);
	text-decoration: none;
}

/* ---------------------------------------------------- 4. Contact channel list */
.gtr-contact-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gtr-contact-lines__item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	border-bottom: 1px solid var(--gt-line);
}

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

.gtr-contact-lines__item > .fa {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--gt-brand-soft);
	color: var(--gt-brand-strong);
	font-size: 14px;
}

.gtr-contact-lines__label {
	flex: 0 0 72px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--gt-muted);
}

.gtr-contact-lines__item > a {
	min-width: 0;
	overflow-wrap: anywhere;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--gt-ink);
	text-decoration: none;
}

.gtr-contact-lines__item > a:hover,
.gtr-contact-lines__item > a:focus {
	color: var(--gt-brand-strong);
	text-decoration: underline;
}

/* ------------------------------------------------------------------- 5. Form */
.gtr-form .form-group {
	margin: 0 0 16px;
}

.gtr-form .control-label,
.gtr-form label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-size: 13.5px;
	font-weight: 600;
	text-align: left;
	color: var(--gt-ink);
}

/* Keep the theme's required asterisk readable next to stacked labels */
.gtr-form .required .control-label:before {
	margin-right: 2px;
}

.gtr-form .form-control {
	height: auto;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--gt-border);
	border-radius: 8px;
	box-shadow: none;
	font-size: 14.5px;
	color: var(--gt-ink);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gtr-form textarea.form-control {
	min-height: 160px;
	resize: vertical;
}

.gtr-form .form-control:focus {
	border-color: var(--gt-brand-strong);
	box-shadow: 0 0 0 3px var(--gt-brand-soft);
	outline: 0;
}

.gtr-form .text-danger {
	margin-top: 6px;
	font-size: 13px;
}

.gtr-form .has-error .form-control {
	border-color: #b3402e;
}

.gtr-form__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 4px;
}

.gtr-form .gtr-form__submit {
	min-height: 48px;
	padding: 12px 34px;
	border: 0;
	border-radius: 999px;
	background: var(--gt-brand-strong);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.gtr-form .gtr-form__submit:hover,
.gtr-form .gtr-form__submit:focus {
	background: var(--gt-brand-deep);
	color: #fff;
}

.gtr-form .gtr-form__submit:focus-visible {
	outline: 2px solid var(--gt-brand-strong);
	outline-offset: 2px;
}

/* ------------------------------------------- 6. Captcha block normalization */
/* {{ captcha }} (extension/captcha/google.twig) emits its own fieldset with
   form-horizontal grid classes; flatten them into the stacked layout. */
.gtr-form fieldset {
	margin: 0 0 4px;
	padding: 0;
	border: 0;
}

.gtr-form legend {
	width: auto;
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--gt-ink);
}

.gtr-form .col-sm-2,
.gtr-form .col-sm-10 {
	float: none;
	width: auto;
	min-height: 0;
	padding: 0;
	position: static;
}

.gtr-form .g-recaptcha {
	max-width: 100%;
}

/* ------------------------------------------------- 7. Stores accordion (dormant
   unless locations are configured in admin) */
.gtr-contact-stores {
	margin: 26px 0 10px;
}

.gtr-contact-stores .panel {
	border: 1px solid var(--gt-line);
	border-radius: 10px;
	box-shadow: none;
	overflow: hidden;
}

.gtr-contact-stores .panel-heading {
	background: var(--gt-surface-alt);
	border-bottom: 1px solid var(--gt-line);
}

.gtr-contact-stores .accordion-toggle {
	display: block;
	color: var(--gt-ink);
	font-weight: 600;
	text-decoration: none;
}

.gtr-contact-stores .accordion-toggle:hover,
.gtr-contact-stores .accordion-toggle:focus {
	color: var(--gt-brand-strong);
}

/* -------------------------------------------------------------- 8. Small screens */
@media (max-width: 767px) {
	.gtr-contact-card,
	.gtr-contact__form {
		padding: 16px;
	}

	.gtr-form__actions {
		justify-content: stretch;
	}

	.gtr-form .gtr-form__submit {
		width: 100%;
	}
}
