/* ==========================================================
   K9 Paw – Hero + Quote Form widget
   ========================================================== */
.k9hq {
	--k9-gold: #DCA54A;
	--k9-gold-dark: #c48f37;
	--k9-dark: #171717;
	--k9-light: #F7F7F8;
	--k9-form-w: 440px;
	--k9-heading: 'Roboto', sans-serif;
	--k9-body: 'Roboto', sans-serif;

	position: relative;
	display: flex;
	align-items: center;
	min-height: 620px;
	background-color: #111;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	font-family: var(--k9-body);
	color: var(--k9-light);
}
.k9hq *, .k9hq *::before, .k9hq *::after { box-sizing: border-box; }

.k9hq__overlay {
	position: absolute; inset: 0; z-index: 0;
	background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%);
	pointer-events: none;
}

.k9hq__inner {
	position: relative; z-index: 1;
	width: 100%; max-width: 1240px; margin: 0 auto;
	padding: 60px 30px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--k9-form-w);
	gap: 40px;
	align-items: center;
}
.k9hq--no-form .k9hq__inner { grid-template-columns: 1fr; }

/* ---------- Left content ---------- */
.k9hq__content { max-width: 560px; }

.k9hq__sub {
	font-family: var(--k9-body);
	font-size: 12px; font-weight: 700;
	letter-spacing: 1.6px; text-transform: uppercase;
	color: var(--k9-gold);
	margin-bottom: 14px;
}

.k9hq__title {
	font-family: var(--k9-heading);
	font-size: 50px; font-weight: 800; line-height: 1.12;
	color: #fff;
	margin: 0 0 22px;
}
.k9hq__title span { display: block; }
.k9hq__gold { color: var(--k9-gold); }

.k9hq__desc {
	font-size: 15px; line-height: 1.6; font-weight: 400;
	color: rgba(255,255,255,.88);
	margin: 0 0 30px; max-width: 480px;
}

.k9hq__features {
	list-style: none; margin: 0 0 38px; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px; max-width: 480px;
}
.k9hq__feat { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0; }
.k9hq__feat-icon {
	color: var(--k9-gold); font-size: 30px; line-height: 1;
	margin-bottom: 12px; display: inline-flex;
}
.k9hq__feat-icon svg { width: 30px; height: 30px; fill: currentColor; }
.k9hq__feat-text { font-size: 12.5px; font-weight: 700; line-height: 1.45; color: #fff; }
.k9hq__feat:first-child .k9hq__feat-text { color: var(--k9-gold); }

/* ---------- Buttons ---------- */
.k9hq__btns { display: flex; flex-wrap: wrap; gap: 16px; }
.k9hq__btn-icon { color: var(--k9-gold); display: inline-flex; }
.k9hq__btn-icon svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Form box ---------- */
.k9hq__form {
	background: #fff; color: var(--k9-dark);
	border-radius: 10px; padding: 26px 22px 18px;
	box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.k9hq__form-title {
	font-family: var(--k9-heading); font-weight: 700;
	font-size: 26px; line-height: 1.2; color: var(--k9-dark);
	margin: 0 0 8px;
}
.k9hq__form-desc { font-size: 13px; line-height: 1.5; color: #666; margin: 0 0 18px; }
.k9hq__form-note {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	font-size: 11px; color: #777; margin: 12px 0 0; text-align: center;
}
.k9hq__placeholder {
	padding: 40px 16px; text-align: center; font-size: 13px; color: #888;
	border: 2px dashed #ddd; border-radius: 6px;
}

/* Generic form styling (WPForms / CF7 / any shortcode) */
.k9hq__form label,
.k9hq__form .wpforms-field-label {
	display: block; font-family: var(--k9-body);
	font-size: 12.5px !important; font-weight: 700 !important;
	color: var(--k9-dark) !important; margin: 0 0 6px !important;
}
.k9hq__form .wpforms-required-label,
.k9hq__form .required { color: #d63638 !important; }

.k9hq__form input[type="text"],
.k9hq__form input[type="email"],
.k9hq__form input[type="tel"],
.k9hq__form input[type="number"],
.k9hq__form select,
.k9hq__form textarea {
	width: 100% !important; max-width: 100% !important;
	height: 38px !important; padding: 8px 12px !important;
	font-family: var(--k9-body) !important; font-size: 13px !important; color: var(--k9-dark) !important;
	background: #f4f4f5 !important;
	border: 1px solid #e3e3e6 !important; border-radius: 5px !important;
	box-shadow: none !important; transition: border-color .2s, background .2s;
}
.k9hq__form textarea { height: 90px !important; resize: vertical; }
.k9hq__form input:focus,
.k9hq__form select:focus,
.k9hq__form textarea:focus {
	outline: none !important; background: #fff !important;
	border-color: var(--k9-gold) !important;
	box-shadow: 0 0 0 3px rgba(220,165,74,.18) !important;
}
.k9hq__form ::placeholder { color: #aaa !important; opacity: 1; }

/* WPForms spacing */
.k9hq__form .wpforms-container { margin: 0 !important; }
.k9hq__form .wpforms-field { padding: 0 0 14px !important; }
.k9hq__form .wpforms-field-container { display: flex; flex-wrap: wrap; justify-content: space-between; }
.k9hq__form .wpforms-field-container > .wpforms-field { width: 100%; }
.k9hq__form .wpforms-field-container > .wpforms-field.k9-half { width: calc(50% - 7px); }
.k9hq__form .wpforms-field-name .wpforms-field-row,
.k9hq__form .wpforms-field-medium { max-width: 100% !important; }
.k9hq__form em.wpforms-error, .k9hq__form label.wpforms-error { font-size: 11px !important; color: #d63638 !important; font-weight: 400 !important; }

/* CF7 spacing */
.k9hq__form .wpcf7-form p { margin: 0 0 14px; }
.k9hq__form .wpcf7-spinner { display: none; }

/* Submit button – global K9 button style (Roboto, gold → dark on hover) */
.k9hq__form button[type="submit"],
.k9hq__form input[type="submit"],
.k9hq__form .wpforms-submit {
	width: 100% !important; height: auto !important; min-height: 52px;
	padding: 15px 24px !important;
	font-family: var(--k9-font, 'Roboto', sans-serif) !important; font-size: 15px !important; font-weight: 600 !important;
	color: var(--k9-dark) !important; background-color: var(--k9-gold) !important;
	border: 1px solid var(--k9-gold) !important; border-radius: 4px !important; cursor: pointer;
	box-shadow: 0 8px 18px rgba(220,165,74,.25) !important;
	transition: transform .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease !important;
}
.k9hq__form button[type="submit"]::after,
.k9hq__form .wpforms-submit::after {
	content: none; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 13px;
	margin-left: 10px; display: inline-block; transition: transform .3s ease;
}
.k9hq__form button[type="submit"]:hover,
.k9hq__form input[type="submit"]:hover,
.k9hq__form .wpforms-submit:hover {
	color: var(--k9-gold) !important; background-color: var(--k9-dark) !important; border-color: var(--k9-dark) !important;
	transform: translateY(-3px); box-shadow: 0 12px 24px rgba(220,165,74,.35) !important;
}
.k9hq__form button[type="submit"]:hover::after,
.k9hq__form .wpforms-submit:hover::after { transform: translateX(5px); }
.k9hq__form .wpforms-submit-container { padding: 4px 0 0 !important; margin: 0 !important; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
	.k9hq__inner { grid-template-columns: 1fr; gap: 40px; padding: 70px 30px; }
	.k9hq__content { max-width: 680px; }
	.k9hq__title { font-size: 44px; }
	.k9hq__form { max-width: 620px; width: 100%; }
	.k9hq__overlay { background: rgba(0,0,0,.65); }
}

@media (max-width: 767px) {
	.k9hq { min-height: auto; }
	.k9hq__inner { padding: 50px 16px; gap: 32px; }
	.k9hq__sub { font-size: 11px; }
	.k9hq__title { font-size: 34px; }
	.k9hq__desc { font-size: 14px; margin-bottom: 26px; }
	.k9hq__features { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; margin-bottom: 30px; }
	.k9hq__btns { flex-direction: column; }
	.k9hq__btn { width: 100%; }
	.k9hq__form { padding: 22px 16px 16px; }
	.k9hq__form-title { font-size: 23px; }
	.k9hq__form .wpforms-field-container > .wpforms-field.k9-half { width: 100%; }
}

@media (max-width: 380px) {
	.k9hq__title { font-size: 30px; }
}

/* WYSIWYG description content */
.k9hq__desc p, .k9hq__form-desc p { margin: 0 0 10px; color: inherit; font: inherit; }
.k9hq__desc p:last-child, .k9hq__form-desc p:last-child { margin-bottom: 0; }
.k9hq__desc a, .k9hq__form-desc a { color: var(--k9-gold); }
