/* ============================================================
   Front Porch of Bowdon – Marketing Suite : Frontend Styles
   Warm, residential, senior-friendly aesthetic.
   ============================================================ */

/* --- Custom properties (easily overridden by theme) --- */
:root {
	--fpb-primary:       #5a6e3c;   /* deep sage green  */
	--fpb-primary-dark:  #3e4e28;
	--fpb-accent:        #c9a84c;   /* warm gold        */
	--fpb-accent-light:  #f5efd6;
	--fpb-text:          #2c2c2c;
	--fpb-text-muted:    #6b6b6b;
	--fpb-border:        #d6d1c5;
	--fpb-bg:            #faf8f4;
	--fpb-white:         #ffffff;
	--fpb-error:         #b94a48;
	--fpb-success-bg:    #eaf4e9;
	--fpb-success-text:  #2d6a2d;
	--fpb-radius:        8px;
	--fpb-shadow:        0 2px 12px rgba(0, 0, 0, 0.08);
	--fpb-font:          inherit;
}

/* ============================================================
   Form wrapper
   ============================================================ */
.fpb-form-wrap {
	background: var(--fpb-bg);
	border: 1px solid var(--fpb-border);
	border-radius: var(--fpb-radius);
	box-shadow: var(--fpb-shadow);
	padding: 2rem 2.25rem;
	max-width: 640px;
	margin: 2rem auto;
	font-family: var(--fpb-font);
	color: var(--fpb-text);
}

.fpb-form-wrap h2,
.fpb-form-wrap h3 {
	margin: 0 0 0.5rem;
	color: var(--fpb-primary);
	font-size: 1.5rem;
}

.fpb-form-tagline {
	margin: 0 0 1.5rem;
	color: var(--fpb-text-muted);
	font-size: 0.95rem;
}

/* ============================================================
   Fields
   ============================================================ */
.fpb-field {
	margin-bottom: 1.1rem;
}

.fpb-field label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.3rem;
	color: var(--fpb-text);
}

.fpb-field label .fpb-required {
	color: var(--fpb-error);
	margin-left: 2px;
}

.fpb-field input[type="text"],
.fpb-field input[type="email"],
.fpb-field input[type="tel"],
.fpb-field input[type="date"],
.fpb-field select,
.fpb-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--fpb-border);
	border-radius: var(--fpb-radius);
	background: var(--fpb-white);
	color: var(--fpb-text);
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
	appearance: none;
}

.fpb-field input:focus,
.fpb-field select:focus,
.fpb-field textarea:focus {
	outline: none;
	border-color: var(--fpb-primary);
	box-shadow: 0 0 0 3px rgba(90, 110, 60, 0.18);
}

.fpb-field input.fpb-invalid,
.fpb-field select.fpb-invalid,
.fpb-field textarea.fpb-invalid {
	border-color: var(--fpb-error);
	box-shadow: 0 0 0 3px rgba(185, 74, 72, 0.15);
}

.fpb-field textarea {
	resize: vertical;
	min-height: 110px;
}

.fpb-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b6b' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	padding-right: 2.2rem;
}

.fpb-field-row {
	display: flex;
	gap: 1rem;
}

.fpb-field-row .fpb-field {
	flex: 1;
	min-width: 0;
}

/* ============================================================
   Field validation messages
   ============================================================ */
.fpb-field-error {
	color: var(--fpb-error);
	font-size: 0.8rem;
	margin-top: 0.25rem;
	display: none;
}

.fpb-field.has-error .fpb-field-error {
	display: block;
}

/* ============================================================
   Submit button
   ============================================================ */
.fpb-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.6rem;
	border: none;
	border-radius: var(--fpb-radius);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	text-decoration: none;
	line-height: 1.2;
}

.fpb-btn-primary {
	background: var(--fpb-primary);
	color: var(--fpb-white);
}

.fpb-btn-primary:hover {
	background: var(--fpb-primary-dark);
}

.fpb-btn-primary:active {
	transform: scale(0.98);
}

.fpb-btn-primary:disabled,
.fpb-btn-primary[aria-busy="true"] {
	opacity: 0.65;
	cursor: not-allowed;
}

.fpb-btn-further {
	background: var(--fpb-accent);
	color: var(--fpb-primary-dark);
	font-size: 0.95rem;
}

.fpb-btn-further:hover {
	background: #b8973c;
}

/* ============================================================
   Form notices
   ============================================================ */
.fpb-form-message {
	padding: 0.9rem 1.1rem;
	border-radius: var(--fpb-radius);
	margin-top: 1rem;
	font-size: 0.95rem;
	display: none;
}

.fpb-form-message.fpb-success {
	background: var(--fpb-success-bg);
	color: var(--fpb-success-text);
	border: 1px solid #a8d5a2;
	display: block;
}

.fpb-form-message.fpb-error {
	background: #fdf3f3;
	color: var(--fpb-error);
	border: 1px solid #f0b8b8;
	display: block;
}

/* ============================================================
   Divider / section label within forms
   ============================================================ */
.fpb-form-section-label {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fpb-primary);
	border-bottom: 2px solid var(--fpb-accent-light);
	padding-bottom: 0.35rem;
	margin: 1.5rem 0 1rem;
}

/* ============================================================
   Honeypot (hidden from real visitors)
   ============================================================ */
.fpb-hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* ============================================================
   Further widget block
   ============================================================ */
.fpb-further-wrapper {
	background: var(--fpb-primary);
	color: var(--fpb-white);
	border-radius: var(--fpb-radius);
	padding: 2rem 2.25rem;
	max-width: 560px;
	margin: 2rem auto;
	text-align: center;
	box-shadow: var(--fpb-shadow);
}

.fpb-further-heading {
	margin: 0 0 0.5rem;
	font-size: 1.4rem;
	color: var(--fpb-white);
}

.fpb-further-subtext {
	margin: 0 0 1.25rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
}

/* ============================================================
   Further tour trigger button  [fpb_further_tour_button]
   ============================================================ */

/* Base */
.fpb-further-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: var(--fpb-radius);
	font-family: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.18s, color 0.18s, border-color 0.18s, opacity 0.18s, transform 0.1s;
	white-space: nowrap;
}

.fpb-further-btn:active { transform: scale(0.97); }

.fpb-further-btn:disabled,
.fpb-further-btn[aria-busy="true"] {
	opacity: 0.55;
	cursor: wait;
}

/* Icon */
.fpb-further-btn__icon {
	width: 1.1em;
	height: 1.1em;
	flex-shrink: 0;
}

/* Sizes */
.fpb-further-btn--small  { padding: 0.45rem 1rem;   font-size: 0.85rem; }
.fpb-further-btn--medium { padding: 0.6rem  1.4rem;  font-size: 0.95rem; }
.fpb-further-btn--large  { padding: 0.75rem 1.9rem;  font-size: 1.05rem; }

/* Style: primary — Georgia Clay fill */
.fpb-further-btn--primary {
	background: #B5613A;
	color: #ffffff;
	border: 2px solid #B5613A;
}
.fpb-further-btn--primary:hover {
	background: #8B6F47;
	border-color: #8B6F47;
	color: #ffffff;
}

/* Style: outline — transparent with Georgia Clay border */
.fpb-further-btn--outline {
	background: transparent;
	color: #B5613A;
	border: 2px solid #B5613A;
}
.fpb-further-btn--outline:hover {
	background: #B5613A;
	color: #ffffff;
}

/* Style: link — no border, no background, Georgia Clay text */
.fpb-further-btn--link {
	background: transparent;
	color: #B5613A;
	border: 2px solid transparent;
	padding-left: 0;
	padding-right: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.fpb-further-btn--link:hover {
	color: #8B6F47;
	text-decoration-color: #8B6F47;
}

/* ============================================================
   Further fullscreen backdrop  (fullscreen="yes")
   ============================================================ */

/* Backdrop overlay — sits behind the VSA Bubble (z-index 2147483646)
   and in front of everything else on the page. */
#fpb-further-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	z-index: 2147483645;
	cursor: pointer;
	animation: fpbFadeIn 0.18s ease;
}

@keyframes fpbFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* Prevent page scroll while the fullscreen VSA is open. */
body.fpb-further-fs-open {
	overflow: hidden !important;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
	.fpb-form-wrap {
		padding: 1.25rem 1rem;
		margin: 1rem 0;
	}

	.fpb-field-row {
		flex-direction: column;
		gap: 0;
	}

	.fpb-further-wrapper {
		padding: 1.25rem 1rem;
		margin: 1rem 0;
	}
}
