/* Formularios: cotización nativa, Contact Form 7 y buscador. */

/* ---------- Tarjeta de cotización ---------- */
.quote {
	display: grid; gap: 24px;
	padding: 26px 22px; color: #fff;
	background:
		radial-gradient(80% 70% at 85% 10%, rgba(120, 190, 80, .35) 0%, transparent 60%),
		linear-gradient(160deg, #3b8a24 0%, #24691a 55%, #1a5512 100%);
	border-radius: 14px; box-shadow: var(--shadow);
}
.quote__title { margin: 0 0 6px; font-family: var(--ff-head); font-size: 26px; font-weight: 700; color: #fff; }
.quote__text { max-width: 420px; margin: 0 0 22px; font-size: 16px; line-height: 27px; color: rgba(255, 255, 255, .95); }

.form-notice { margin: 0 0 14px; padding: 10px 14px; font-size: 13px; font-weight: 600; border-radius: 6px; }
.form-notice.is-success { color: #0d3a05; background: #d9f5c8; }
.form-notice.is-error { color: #5a0d0d; background: #ffd9d9; }

.form-quote p { margin: 0; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: grid; gap: 8px 18px; grid-template-columns: 1fr; margin-bottom: 11px; }
.form-grid .is-full { grid-column: 1 / -1; }

.quote input[type="text"],
.quote input[type="tel"],
.quote input[type="email"],
.quote input[type="url"],
.quote input[type="number"],
.quote select,
.quote textarea {
	display: block; width: 100%; height: 42px; padding: 0 12px;
	font: inherit; font-size: 14px; color: var(--c-text);
	background: #fff; border: 1px solid transparent; border-radius: 4px;
}
.quote input::placeholder, .quote textarea::placeholder { color: #8a948c; }
.quote textarea { height: 93px; min-height: 93px; padding: 10px 12px; resize: vertical; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: 3px solid rgba(255, 255, 255, .55); outline-offset: 1px; }

.has-label { position: relative; height: 48px; padding: 5px 34px 0 10px; background: #fff; border-radius: 4px; }
.has-label label { display: block; font-size: 11px; color: #49524b; line-height: 1.2; }
.quote .has-label select {
	height: auto; padding: 1px 0 0; font-size: 13px; color: #49524b;
	background: transparent; border: 0; -webkit-appearance: none; appearance: none;
}
.has-label::after {
	content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
	border-right: 2px solid #3d463f; border-bottom: 2px solid #3d463f; transform: rotate(45deg); pointer-events: none;
}
.quote .btn--dark { min-height: 49px; font-size: 15px; }
.quote .btn--dark .icon { width: 24px; height: 24px; }

.quote__badges { display: grid; gap: 24px; align-content: center; margin: 0; padding: 0; list-style: none; }
.quote__badges li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; line-height: 22px; }
.quote__badge-icon {
	display: inline-flex; flex: none; align-items: center; justify-content: center;
	width: 34px; height: 34px; border: 1.5px solid rgba(255, 255, 255, .75); border-radius: 50%;
}
.quote__badge-icon .icon { width: 18px; height: 18px; }

@media (min-width: 640px) {
	.form-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
	.quote { grid-template-columns: minmax(0, 527px) 1fr; column-gap: 25px; padding: 26px 16px 28px 30px; }
	.quote__main { display: contents; }
	.quote__title, .quote__text, .form-notice, .quote__cf7 { grid-column: 1 / -1; }
	.form-quote, .quote__cf7 { grid-column: 1; }
	.quote__badges { grid-column: 2; grid-row: 3; padding-bottom: 60px; }
	.quote__title { margin: 0; }
	.quote__text { margin: 0 0 4px; }
}

/* ---------- Contact Form 7 (mismo aspecto) ---------- */
.quote .wpcf7 form p { margin: 0 0 10px; }
.quote .wpcf7 label { display: block; font-size: 12px; color: #fff; }
.quote .wpcf7-form-control-wrap { display: block; }
.quote .wpcf7-submit {
	display: inline-flex; width: 100%; justify-content: center; min-height: 49px; padding: 0 24px;
	font-family: var(--ff-head); font-size: 15px; font-weight: 700; text-transform: uppercase;
	color: #fff; background: #0c1a10; border: 0; border-radius: 4px;
}
.quote .wpcf7-submit:hover { background: #000; }
.quote .wpcf7-not-valid-tip { margin-top: 4px; font-size: 12px; color: #ffd9d9; }
.quote .wpcf7-response-output { margin: 10px 0 0 !important; padding: 8px 12px !important; font-size: 12.5px; color: #fff; border-color: rgba(255, 255, 255, .6) !important; border-radius: 6px; }

/* CF7 fuera de la tarjeta verde (página Contacto, etc.) */
.prose .wpcf7 input[type="text"], .prose .wpcf7 input[type="email"], .prose .wpcf7 input[type="tel"], .prose .wpcf7 select, .prose .wpcf7 textarea {
	width: 100%; padding: 11px 14px; font: inherit; border: 1px solid var(--c-border); border-radius: 6px;
}
.prose .wpcf7-submit { padding: 13px 28px; font-weight: 700; color: #fff; background: var(--c-primary); border: 0; border-radius: 4px; }

/* ---------- Buscador ---------- */
.search-form { display: flex; gap: 8px; max-width: 480px; margin-inline: auto; }
.search-form label { flex: 1; }
.search-field {
	width: 100%; padding: 11px 14px; font: inherit; font-size: 14px;
	color: var(--c-text); background: #fff; border: 1px solid var(--c-border); border-radius: 6px;
}
.search-submit {
	padding: 0 18px; font-weight: 700; color: #fff; background: var(--c-primary);
	border: 0; border-radius: 6px;
}
.search-submit:hover { background: var(--c-primary-dark); }
.sidebar .search-form { max-width: none; }
