/* ============================================================
   STOR — Gravity Forms restyle to match the design export.
   Scoped to the wrapper divs the templates control:
     .hp-form        -> contact form (light card, Talk To Our Team)
     .cp-form-wrap   -> notify-me email (inline on red, Consumer Homepage)
   ============================================================ */

/* ---------- Contact form (light card) ---------- */
.hp-form .gform_wrapper { margin: 0; }
.hp-form .gform_wrapper form { display: flex; flex-direction: column; flex: 1; }
.hp-form .gform_wrapper .gform_fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	grid-row-gap: 18px;
}
.hp-form .gform_wrapper .gfield.gf-full { grid-column: 1 / -1; }

.hp-form .gform_wrapper .gfield_label {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	color: var(--text-body);
	margin-bottom: 6px;
}
.hp-form .gform_wrapper .gfield_required { color: var(--stor-red); margin-left: 2px; }

.hp-form .gform_wrapper input[type="text"],
.hp-form .gform_wrapper input[type="email"],
.hp-form .gform_wrapper select,
.hp-form .gform_wrapper textarea {
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--text-strong);
	background: var(--surface-card);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-md);
	padding: 12px 14px;
	width: 100%;
	box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
}
.hp-form .gform_wrapper select { border-radius: var(--radius-sm); padding: 10px 12px; }
.hp-form .gform_wrapper textarea { border-radius: var(--radius-sm); padding: 10px 12px; resize: vertical; min-height: 120px; line-height: 1.5; }
.hp-form .gform_wrapper input:focus,
.hp-form .gform_wrapper select:focus,
.hp-form .gform_wrapper textarea:focus {
	outline: none;
	border-color: var(--stor-red);
	box-shadow: 0 0 0 3px var(--red-100);
}
.hp-form .gform_wrapper ::placeholder { color: var(--text-subtle); }

.hp-form .gform_footer { padding: 28px 0 0; margin: 0; display: flex; align-items: center; gap: 16px; }
.hp-form .gform_wrapper .gfield_description,
.hp-form .gform_wrapper .validation_message {
	font-size: 13px;
	color: var(--stor-red);
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
}
.hp-form .gform_wrapper .gfield_error input,
.hp-form .gform_wrapper .gfield_error select,
.hp-form .gform_wrapper .gfield_error textarea { border-color: var(--stor-red); }
.hp-form .gform_wrapper .gform_validation_errors {
	background: var(--red-50);
	border: 1px solid var(--red-200);
	border-radius: var(--radius-md);
	color: var(--stor-red);
	box-shadow: none;
}
.hp-form .gform_confirmation_message {
	display: flex; align-items: center; gap: 10px;
	margin-top: 20px; padding: 16px 18px;
	background: var(--red-50); border: 1px solid var(--red-200);
	border-radius: var(--radius-md); color: var(--stor-red);
	font-size: 15px; font-weight: 600;
}

/* ---------- Notify-me (inline, on red) ---------- */
.cp-form-wrap .gform_wrapper { margin: 0; }
.cp-form-wrap .gform_wrapper form {
	display: flex; gap: 12px; max-width: 480px; margin: 0 auto;
	flex-wrap: wrap; justify-content: center; align-items: center;
}
.cp-form-wrap .gform_wrapper .gform_body { display: flex; align-items: center; margin: 0; }
.cp-form-wrap .gform_wrapper .gform_fields { display: block; margin: 0; width: 100%; }
.cp-form-wrap .gform_wrapper .gfield { margin: 0; }
.cp-form-wrap .gform_wrapper .gfield_label,
.cp-form-wrap .gform_wrapper .gform_required_legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cp-form-wrap .gform_wrapper input[type="email"] {
	flex: 1 1 240px; min-width: 0; height: 52px;
	border-radius: var(--radius-md);
	border: 1px solid rgba(255,255,255,.5);
	background: rgba(255,255,255,.12);
	color: #fff; padding: 0 18px; font-size: 16px;
	font-family: var(--font-body); box-sizing: border-box;
}
.cp-form-wrap .gform_wrapper input[type="email"]::placeholder { color: rgba(255,255,255,.7); }
.cp-form-wrap .gform_wrapper input[type="email"]:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.18); }
.cp-form-wrap .gform_body { flex: 1 1 240px; }
.cp-form-wrap .gform_footer { margin: 0; padding: 0; }
.cp-form-wrap .gform_wrapper .validation_message { color: #ffcdd2; font-size: 14px; width: 100%; text-align: center; margin-top: 10px; }
.cp-form-wrap .gform_wrapper .gform_validation_errors { display: none; }
.cp-form-wrap .gform_confirmation_message {
	margin-top: 18px; font-size: 15px; color: var(--stor-yellow); font-weight: 600; text-align: center; width: 100%;
}

/* ---------- Force the STOR button look over Gravity Forms theme defaults ---------- */
.hp-form .gform_wrapper .gform_footer button,
.hp-form .gform_wrapper button.stor-btn,
.hp-form .gform_wrapper input[type="submit"] {
	background: var(--action-primary) !important;
	color: #fff !important;
	border: 2px solid transparent !important;
	border-radius: var(--radius-md) !important;
	box-shadow: none !important;
	font-family: var(--font-body) !important;
	font-weight: 700 !important;
	font-size: 17px !important;
	padding: 16px 30px !important;
	width: auto !important;
}
.hp-form .gform_wrapper .gform_footer button:hover,
.hp-form .gform_wrapper button.stor-btn:hover { background: var(--action-primary-hover) !important; }

.cp-form-wrap .gform_wrapper .gform_footer { display: flex; align-items: center; margin: 0; padding: 0; }
.cp-form-wrap .gform_wrapper .gform_footer button,
.cp-form-wrap .gform_wrapper button.stor-btn,
.cp-form-wrap .gform_wrapper input[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #fff !important;
	color: var(--stor-red) !important;
	border: 2px solid #fff !important;
	border-radius: var(--radius-md) !important;
	box-shadow: 0 2px 10px rgba(0,0,0,.14) !important;
	font-family: var(--font-body) !important;
	font-weight: 700 !important;
	font-size: 17px !important;
	line-height: 1 !important;
	padding: 0 28px !important;
	height: 52px !important;
	min-height: 52px !important;
	box-sizing: border-box !important;
	width: auto !important;
}
.cp-form-wrap .gform_wrapper .gform_footer button:hover,
.cp-form-wrap .gform_wrapper button.stor-btn:hover { background: #f2e7e4 !important; }

/* Select: avoid clipped placeholder text */
.hp-form .gform_wrapper select { height: auto; line-height: 1.4; min-height: 46px; }

/* ---------- Select: own the chevron in every state (kills GF's tiled
   hover background-image that renders as a zigzag pattern) ---------- */
.hp-form .gform_wrapper select,
.hp-form .gform_wrapper select:hover,
.hp-form .gform_wrapper select:focus,
.hp-form .gform_wrapper select:active {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-color: var(--surface-card) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23635F5E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 16px 16px !important;
	padding-right: 40px !important;
	color: var(--text-strong) !important;
}
.hp-form .gform_wrapper select:hover { border-color: var(--border-strong) !important; }
.hp-form .gform_wrapper select:focus { border-color: var(--stor-red) !important; box-shadow: 0 0 0 3px var(--red-100) !important; }

/* Text inputs: never let GF paint hover background images either */
.hp-form .gform_wrapper input[type="text"]:hover,
.hp-form .gform_wrapper input[type="email"]:hover,
.hp-form .gform_wrapper textarea:hover {
	background-image: none !important;
	background-color: var(--surface-card) !important;
}

/* ---------- Notify-me input: enforce the export recipe over GF theme ---------- */
.cp-form-wrap .gform_wrapper input[type="email"],
.cp-form-wrap .gform_wrapper input[type="email"]:hover {
	background-color: rgba(255,255,255,.12) !important;
	background-image: none !important;
	border: 1px solid rgba(255,255,255,.5) !important;
	border-radius: var(--radius-md) !important;
	color: #fff !important;
	text-align: left !important;
	height: 52px !important;
	min-height: 52px !important;
	padding: 0 18px !important;
	font-size: 16px !important;
	font-family: var(--font-body) !important;
	box-shadow: none !important;
	width: 100% !important;
}
.cp-form-wrap .gform_wrapper input[type="email"]:focus {
	outline: none !important;
	border-color: #fff !important;
	background-color: rgba(255,255,255,.18) !important;
	box-shadow: none !important;
}
.cp-form-wrap .gform_wrapper input[type="email"]::placeholder {
	color: rgba(255,255,255,.7) !important;
	text-align: left;
	opacity: 1;
}
.cp-form-wrap .gform_wrapper .gfield { flex: 1 1 240px; min-width: 0; }

@media (max-width: 560px) {
	.hp-form .gform_wrapper .gform_fields { grid-template-columns: 1fr; }
}
