/* ===== Contact page (page-contact, plain Gutenberg content) =====
   Markup: wp:group className cop-contact-grid wrapping two wp:group
   className cop-contact-card blocks (kicker paragraph, h3 name/title,
   wp:buttons mailto/tel links using is-style-cop-gold). Below the grid,
   Gravity Forms form id 2 ("Contact") is embedded via a plain wp:shortcode
   block ([gravityform id="2" title="false" description="false"]) inside a
   wp:group className cop-contact-form wrapper — styled here to match the
   site's existing GF treatment (see page-tickets.css's .cop-tix-email__form
   for the same pattern), generalized to cover form 2's actual fields: an
   advanced Name field (first/last only visible), Email, a "Reason for
   Contact" select, and a message textarea. */

.cop-contact-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
	gap: var(--sp-4) var(--sp-5) !important;
	margin-top: var(--sp-4);
}
.cop-contact-card {
	background: var(--surface-card);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	padding: var(--sp-4);
	display: flex;
	flex-direction: column;
}
.cop-contact-card__kicker {
	font-family: var(--font-body);
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-secondary);
	margin: 0 0 var(--sp-2);
}
.cop-contact-card .wp-block-heading {
	margin: 0 0 var(--sp-2);
}
.cop-contact-card .wp-block-buttons {
	margin-top: auto;
	padding-top: var(--sp-2);
	gap: 8px;
}

@media (max-width: 480px) {
	.cop-contact-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Gravity Forms (form id 2) */
.cop-contact-form {
	margin-top: var(--sp-6);
	padding-top: var(--sp-4);
	border-top: 1px solid var(--border-subtle);
}
.cop-contact-form .gform_wrapper {
	margin: 0;
	max-width: 560px;
}
.cop-contact-form .gform_heading {
	display: none; /* belt-and-suspenders: shortcode already passes title="false" description="false" */
}
.cop-contact-form form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.cop-contact-form .gform_body {
	min-width: 0;
}
.cop-contact-form .gfield {
	margin: 0;
	list-style: none;
}
.cop-contact-form .gfield_label,
.cop-contact-form .gform-field-label__text,
.cop-contact-form legend.gfield_label {
	display: block;
	font-family: var(--font-body);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 6px;
}
.cop-contact-form .ginput_complex {
	display: flex;
	gap: 12px;
}
.cop-contact-form .ginput_complex span {
	flex: 1 1 0;
	margin: 0;
}
.cop-contact-form .ginput_complex label {
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 4px;
}
/* Gravity Forms' own theme CSS (gform_basic-css / gform_theme-css) enqueues
   after this stylesheet and scopes its input/select rules to
   .gform_wrapper.gravity-theme, which ties or beats our specificity — so
   these need the .gform_wrapper prefix (to match or exceed it) plus
   !important (consistent with the grid overrides above and elsewhere in
   this theme) to actually win. Plain background/border without !important
   here was being silently overridden, leaving native white GF inputs. */
.cop-contact-form .gform_wrapper input[type="text"],
.cop-contact-form .gform_wrapper input[type="email"],
.cop-contact-form .gform_wrapper input[type="tel"],
.cop-contact-form .gform_wrapper select,
.cop-contact-form .gform_wrapper textarea {
	width: 100%;
	padding: 0 12px;
	background: var(--surface-card) !important;
	border: 1px solid var(--border-default) !important;
	border-radius: var(--radius-sm);
	color: var(--text-body) !important;
	font-family: var(--font-body);
	font-size: 14px;
	box-shadow: none;
}
.cop-contact-form .gform_wrapper input[type="text"],
.cop-contact-form .gform_wrapper input[type="email"],
.cop-contact-form .gform_wrapper input[type="tel"],
.cop-contact-form .gform_wrapper select {
	height: 40px;
}
.cop-contact-form .gform_wrapper textarea {
	padding-top: 10px;
	padding-bottom: 10px;
	min-height: 120px;
	resize: vertical;
}
/* The background shorthand above resets background-image to none, which
   wipes GF's own dropdown-arrow icon along with its white fill — so redraw
   a custom chevron (gold-400, matching the rest of the site's accent) and
   switch off native appearance so it renders consistently cross-browser. */
.cop-contact-form .gform_wrapper select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23EFC65C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 10px center !important;
	background-size: 16px 16px !important;
}
.cop-contact-form .gform_footer {
	margin: 0;
	padding: 0;
}
.cop-contact-form .gform_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	background: var(--gold-500);
	color: var(--text-on-gold);
	border: 1px solid var(--gold-500);
	cursor: pointer;
	white-space: nowrap;
	transition: var(--transition-control);
	align-self: flex-start;
}
.cop-contact-form .gform_button:hover {
	background: var(--gold-400);
	border-color: var(--gold-400);
	box-shadow: var(--shadow-gold-glow);
}
.cop-contact-form .gform_button:active {
	background: var(--gold-600);
	border-color: var(--gold-600);
	box-shadow: none;
}
.cop-contact-form .validation_error,
.cop-contact-form .gfield_description.validation_message {
	font-size: 12px;
	color: var(--accent-400);
	margin-top: 4px;
}

@media (max-width: 480px) {
	.cop-contact-form .ginput_complex {
		flex-direction: column;
		gap: 10px;
	}
}
