/* HomeWeb.Pro — signup form + fallback landing styles.
 * Kept at low specificity so Elementor style controls always win. */

body.hwp-landing { margin: 0; }
.hwp-landing__main { display: block; }

/* ---------- Signup form ---------- */
.hwp-signup { width: 100%; box-sizing: border-box; }
/* Customisable through CSS variables (the block sets these from its Colors / Size panels):
   --hwp-accent, --hwp-accent-hover, --hwp-button-text, --hwp-input-bg, --hwp-input-text, --hwp-radius, --hwp-max-width */
.hwp-signup *, .hwp-signup *::before, .hwp-signup *::after { box-sizing: border-box; }

.hwp-signup__form { max-width: var(--hwp-max-width, 560px); margin: 0; position: relative; }
.hwp-align-center .hwp-signup__form { margin-left: auto; margin-right: auto; text-align: center; }
.hwp-align-right .hwp-signup__form { margin-left: auto; text-align: right; }

.hwp-signup__fields { display: flex; gap: 10px; flex-wrap: wrap; }
.hwp-signup--stacked .hwp-signup__fields { flex-direction: column; }
.hwp-signup--stacked .hwp-signup__input { flex: 0 0 auto; }
.hwp-signup--inline .hwp-signup__input { flex: 1 1 200px; min-width: 0; }

.hwp-signup__input {
	font: inherit;
	font-size: 16px; /* 16px stops iOS from zooming on focus */
	line-height: 1.4;
	color: var(--hwp-input-text, #0f172a);
	background: var(--hwp-input-bg, #fff);
	border: 1px solid #cbd5e1;
	border-radius: var(--hwp-radius, 10px);
	padding: 14px 16px;
	width: 100%;
	margin: 0;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}
.hwp-signup__input::placeholder { color: #64748b; opacity: 1; }
.hwp-signup__input:focus { outline: none; border-color: var(--hwp-accent, #2563eb); box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); }
.hwp-signup__input[aria-invalid="true"] { border-color: #dc2626; }

.hwp-signup__button {
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--hwp-button-text, #fff);
	background: var(--hwp-accent, #2563eb);
	border: 1px solid transparent;
	border-radius: var(--hwp-radius, 10px);
	padding: 14px 24px;
	margin: 0;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s, transform .05s, opacity .15s;
}
.hwp-signup__button:hover, .hwp-signup__button:focus { background: var(--hwp-accent-hover, #1d4ed8); color: var(--hwp-button-text, #fff); }
.hwp-signup__button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hwp-signup__button:active { transform: translateY(1px); }
.hwp-signup--stacked .hwp-signup__button { width: 100%; }
.hwp-signup.is-loading .hwp-signup__button { opacity: .7; cursor: progress; }

.hwp-signup__consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14px; line-height: 1.45; text-align: left; cursor: pointer; }
.hwp-align-center .hwp-signup__consent { justify-content: center; }
.hwp-signup__consent input { margin: 3px 0 0; flex: 0 0 auto; }
.hwp-signup__consent a { color: inherit; text-decoration: underline; }

.hwp-signup__message { min-height: 0; margin-top: 12px; font-size: 15px; line-height: 1.45; }
.hwp-signup__message:empty { display: none; }
.hwp-signup__message.is-success { color: #16a34a; }
.hwp-signup__message.is-error { color: #dc2626; }

/* Light text for forms placed on dark backgrounds */
.hwp-signup--on-dark .hwp-signup__message.is-success { color: #86efac; }
.hwp-signup--on-dark .hwp-signup__message.is-error { color: #fca5a5; }
.hwp-signup--on-dark .hwp-signup__consent { color: #cbd5e1; }

/* Block editor: a dynamic block's wrapper should not add its own spacing */
.hwp-signup-block { width: 100%; }

/* After a successful signup the fields collapse and only the message stays. */
.hwp-signup.is-done .hwp-signup__fields,
.hwp-signup.is-done .hwp-signup__consent { display: none; }
.hwp-signup.is-done .hwp-signup__message { font-size: 18px; font-weight: 600; margin-top: 0; }

/* Honeypot + screen-reader-only labels */
.hwp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hwp-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 520px) {
	.hwp-signup--inline .hwp-signup__fields { flex-direction: column; }
	.hwp-signup--inline .hwp-signup__input { flex: 0 0 auto; }
	.hwp-signup--inline .hwp-signup__button { width: 100%; }
}

/* ---------- Fallback landing (block editor / no Elementor) ---------- */
.hwp-hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 24px;
	background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
	color: #cbd5e1;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	text-align: center;
	box-sizing: border-box;
}
.hwp-hero__inner { width: 100%; max-width: 760px; }
.hwp-eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: #93c5fd; }
.hwp-title { margin: 0 0 20px; font-size: clamp(34px, 6vw, 52px); font-weight: 800; line-height: 1.1; color: #fff; }
.hwp-lead { margin: 0 0 32px; font-size: 19px; line-height: 1.6; }
.hwp-note { margin: 20px 0 0; font-size: 14px; color: #94a3b8; }
.hwp-hero .hwp-signup__message.is-success { color: #86efac; }
.hwp-hero .hwp-signup__message.is-error { color: #fca5a5; }
.hwp-hero .hwp-signup__consent { color: #cbd5e1; }
