/* =========================================================
   Costa Clima — "Fale Conosco" page template
   Scoped styles, loaded only on this page template.
   Reuses design tokens and shared components (.cc-container,
   .btn, .section-label, .section-title) already defined in
   main.css / responsive.css.
   ========================================================= */

/* ---------------------------------------------------------
   1. Hero interno
   ------------------------------------------------------- */
.contact-hero {
	position: relative;
	background:
		radial-gradient(120% 140% at 15% 0%, rgba(0, 174, 239, 0.16), transparent 55%),
		linear-gradient(160deg, var(--cc-dark) 0%, var(--cc-dark-secondary) 100%);
	overflow: hidden;
	padding-block: clamp(72px, 12vw, 130px) clamp(56px, 9vw, 96px);
}

.contact-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(2, 11, 18, 0.4), transparent 60%);
}

.contact-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 640px;
}

.contact-hero__title {
	color: var(--cc-white);
	font-size: clamp(34px, 5vw, 52px);
	letter-spacing: -0.01em;
	margin-bottom: 16px;
}

.contact-hero__subtitle {
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(15px, 1.6vw, 17px);
	line-height: 1.7;
}

/* ---------------------------------------------------------
   2. Contato + Formulário
   ------------------------------------------------------- */
.contact-main {
	background: var(--cc-white);
	padding-block: clamp(64px, 8vw, 100px);
}

.contact-main__grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.contact-info__title {
	font-size: clamp(24px, 2.8vw, 32px);
	margin-bottom: 16px;
}

.contact-info__text {
	color: var(--cc-text);
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 32px;
}

.contact-info__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-info__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.contact-info__icon {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--cc-gray-light);
	color: var(--cc-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.contact-info__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: 4px;
}

.contact-info__body strong {
	color: var(--cc-dark);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.contact-info__body a,
.contact-info__body span {
	color: var(--cc-text);
	font-size: 15px;
}

.contact-info__body a:hover {
	color: var(--cc-primary);
}

/* ---------------------------------------------------------
   Form card + WhatsApp alternative
   ------------------------------------------------------- */
.contact-form-wrap {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-form-card {
	background: var(--cc-gray-light);
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	padding: clamp(24px, 4vw, 40px);
}

.contact-form-placeholder {
	text-align: center;
	padding-block: 32px;
	color: var(--cc-text-light);
}

.contact-form-placeholder i {
	font-size: 36px;
	color: var(--cc-border);
	margin-bottom: 14px;
}

.contact-form-placeholder p {
	font-size: 15px;
}

.contact-form-placeholder__hint {
	max-width: 420px;
	margin-inline: auto;
	margin-top: 10px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--cc-text-light);
	opacity: 0.85;
}

.contact-whatsapp-alt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: var(--cc-dark);
	border-radius: var(--cc-radius);
	padding: 22px 28px;
	margin-top: 28px;
}

.contact-whatsapp-alt p {
	color: var(--cc-white);
	font-family: var(--cc-font-heading);
	font-weight: 600;
	font-size: 15px;
}

/* ---------------------------------------------------------
   3. Mapa / Localização
   ------------------------------------------------------- */
.contact-location {
	background: var(--cc-dark);
	padding-block: clamp(48px, 6vw, 72px);
}

.contact-location__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.contact-location__inner .section-title {
	font-size: clamp(18px, 2.2vw, 24px);
	max-width: 640px;
}

/* ---------------------------------------------------------
   4. Form field styling (WPForms / Contact Form 7 / generic),
   scoped to .contact-form-card so it never leaks to a form
   used elsewhere on the site.
   ------------------------------------------------------- */
.contact-form-card label,
.contact-form-card .wpforms-field-label {
	display: block;
	font-family: var(--cc-font-heading);
	font-weight: 600;
	font-size: 13.5px;
	color: var(--cc-dark);
	margin-bottom: 6px;
}

html body .contact-form-card input[type="text"],
html body .contact-form-card input[type="email"],
html body .contact-form-card input[type="tel"],
html body .contact-form-card input[type="number"],
html body .contact-form-card select,
html body .contact-form-card textarea,
html body .contact-form-card .wpcf7-form-control,
html body .contact-form-card .wpforms-field-medium,
html body .contact-form-card .wpforms-field-large {
	/*
	 * !important + the "html body" prefix throughout this block: WPForms'
	 * own reset/field rules (e.g. "div.wpforms-container-full select")
	 * chain two real element selectors, which out-specifies a plain
	 * ".contact-form-card select". Adding harmless real ancestor element
	 * selectors (html, body — always true, no semantic change) raises our
	 * specificity above theirs so our overrides reliably win, without
	 * needing to guess at every internal WPForms/CF7 selector.
	 */
	width: 100% !important;
	background: var(--cc-white) !important;
	border: 1px solid var(--cc-border) !important;
	border-radius: 10px !important;
	padding: 13px 16px !important;
	font-family: var(--cc-font-body) !important;
	font-size: 14.5px !important;
	color: var(--cc-dark) !important;
	transition: border-color var(--cc-transition), box-shadow var(--cc-transition);
}

html body .contact-form-card textarea,
html body .contact-form-card .wpcf7-textarea {
	min-height: 130px !important;
	resize: vertical;
}

/*
 * Native <select> rendering doesn't respect padding the way text inputs
 * do (the option text hugs the top of the box, as seen in "Tipo de
 * Serviço"). Resetting the native appearance and drawing our own chevron
 * gives full control over the box and centers the text properly.
 */
html body .contact-form-card select {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	line-height: 1.4 !important;
	min-height: 48px !important;
	/* Full shorthand (not just padding-right) so this unambiguously
	   supersedes the shared shorthand rule above at equal specificity. */
	padding: 13px 42px 13px 16px !important;
	background-color: var(--cc-white) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2368737d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 8 10 13 15 8'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
	background-size: 14px !important;
}

.contact-form-card select::-ms-expand {
	display: none;
}

html body .contact-form-card input:focus,
html body .contact-form-card select:focus,
html body .contact-form-card textarea:focus {
	outline: none;
	border-color: var(--cc-primary) !important;
	box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15) !important;
}

.contact-form-card .wpforms-field {
	margin-bottom: 18px;
}

.contact-form-card .wpcf7-form p {
	margin-bottom: 18px;
}

.contact-form-card .wpforms-field-required-label,
.contact-form-card .wpforms-required-label {
	color: var(--cc-primary);
}

.contact-form-card input[type="submit"],
.contact-form-card button[type="submit"],
.contact-form-card .wpforms-submit,
.contact-form-card .wpcf7-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: var(--cc-primary) !important;
	color: var(--cc-white) !important;
	font-family: var(--cc-font-heading) !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border: none !important;
	border-radius: 999px !important;
	padding: 14px 32px !important;
	height: auto !important;
	cursor: pointer;
	transition: background var(--cc-transition), transform var(--cc-transition);
}

.contact-form-card input[type="submit"]:hover,
.contact-form-card button[type="submit"]:hover,
.contact-form-card .wpforms-submit:hover,
.contact-form-card .wpcf7-submit:hover {
	background: var(--cc-primary-dark) !important;
	transform: translateY(-2px);
}

.contact-form-card .wpcf7-spinner {
	margin-left: 10px;
}

.contact-form-card .wpcf7-not-valid-tip {
	color: #e0455a;
	font-size: 12.5px;
	margin-top: 4px;
}

.contact-form-card .wpforms-error {
	color: #e0455a;
	font-size: 12.5px;
}

/* ---------------------------------------------------------
   Responsive
   ------------------------------------------------------- */
@media (max-width: 1024px) {
	.contact-main__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.contact-hero {
		padding-block: 56px 44px;
	}

	.contact-whatsapp-alt {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.contact-whatsapp-alt .btn {
		width: 100%;
	}

	.contact-location__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.contact-location__inner .btn {
		width: 100%;
		justify-content: center;
	}
}
