/* Feedbackgram Portal — portal / builder / public-form / report styles.
 * Brand: Livvic, teal #14B1BB, darker teal #0F7A81, dark grey #54595F.
 * Class names match the markup rendered by class-fg-portal.php,
 * class-fg-form-builder.php, class-fg-public-form.php and
 * class-fg-reports.php. Shared bits (.fg-errors, .fg-success,
 * .fg-notice, .fg-field basics) live in fg-portal.css.
 *
 * v1.2.1 polish: soft cards, teal-gradient accents, clear hierarchy,
 * generous spacing, obvious locked states, mobile stacking at <=560px.
 * Every class/ID/hook the PHP and JS rely on is preserved.
 */

/* --- Shared ---------------------------------------------------------- */

.fg-portal,
.fg-public-form,
.fg-report {
	font-family: 'Livvic', 'Montserrat', Arial, sans-serif;
	color: #54595f;
	line-height: 1.6;
	max-width: 960px;
	margin: 0 auto;
}

.fg-portal h2, .fg-portal h3, .fg-portal h4,
.fg-public-form h2, .fg-public-form h3,
.fg-report h2, .fg-report h3 {
	color: #54595f;
	font-weight: 600;
}

.fg-muted { color: #7a7a7a; }
.fg-badge {
	background: linear-gradient(135deg, #14b1bb, #0f7a81);
	color: #fff;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	white-space: nowrap;
}
.fg-badge-locked { background: #c7c4c4; }

.fg-table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(9, 29, 52, .05);
}
.fg-table th, .fg-table td {
	border: 1px solid #e6ecec;
	border-bottom: 1px solid #eef2f2;
	padding: 11px 14px;
	text-align: left;
	vertical-align: top;
}
.fg-table thead th {
	background: linear-gradient(180deg, #eefafa, #e6f7f8);
	color: #0f7a81;
	font-weight: 600;
	border-bottom: 2px solid #cdeff1;
}
.fg-table tbody tr:hover { background: #f8fcfc; }
.fg-qr { display: block; margin: 6px 0; border-radius: 8px; }

.fg-portal .fg-field,
.fg-public-form .fg-field { margin: 0 0 16px; }
.fg-portal .fg-label,
.fg-public-form .fg-label { font-weight: 600; color: #54595f; }
.fg-portal .fg-field .required,
.fg-public-form .fg-field .required { color: #c0392b; }
.fg-portal .fg-field input[type="text"],
.fg-portal .fg-field input[type="email"],
.fg-portal .fg-field input[type="tel"],
.fg-portal .fg-field input[type="date"],
.fg-portal .fg-field input[type="number"],
.fg-portal .fg-field select,
.fg-portal .fg-field textarea,
.fg-public-form .fg-field input[type="text"],
.fg-public-form .fg-field input[type="email"],
.fg-public-form .fg-field select,
.fg-public-form .fg-field textarea {
	width: 100%;
	max-width: 560px;
	padding: 10px 12px;
	border: 1px solid #c7c4c4;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
	box-sizing: border-box;
}
.fg-portal .fg-field input:focus,
.fg-portal .fg-field select:focus,
.fg-portal .fg-field textarea:focus,
.fg-public-form .fg-field input:focus,
.fg-public-form .fg-field select:focus,
.fg-public-form .fg-field textarea:focus {
	border-color: #14b1bb;
	outline: none;
	box-shadow: 0 0 0 3px rgba(20, 177, 187, .18);
}
.fg-portal .fg-field small,
.fg-public-form .fg-field small { font-size: 13px; color: #7a7a7a; }
.fg-portal .fg-submit,
.fg-public-form .fg-submit {
	font-size: 16px;
	padding: 12px 28px;
	background: linear-gradient(135deg, #14b1bb, #0f7a81);
	border: 1px solid #0f7a81;
	border-radius: 8px;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(15, 122, 129, .25);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.fg-portal .fg-submit:hover,
.fg-portal .fg-submit:focus,
.fg-public-form .fg-submit:hover,
.fg-public-form .fg-submit:focus {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(15, 122, 129, .32);
	color: #fff;
}
.fg-portal .fg-row { display: flex; flex-wrap: wrap; gap: 16px; }
.fg-portal .fg-row .fg-field { flex: 1 1 200px; }

/* Honeypot: off-screen, never display:none (bots notice that). */
.fg-honeypot {
	position: absolute !important;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

/* --- Portal header / tabs / cards ------------------------------------ */

.fg-portal-head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 22px;
	padding: 20px 22px;
	background: linear-gradient(135deg, #eafafa 0%, #dff3f4 55%, #d2eef0 100%);
	border: 1px solid #cdeff1;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(9, 29, 52, .05);
}
.fg-portal-head img { flex: 0 0 auto; }
.fg-portal-head h2 { margin: 0; color: #0f7a81; font-size: 26px; line-height: 1.25; }
.fg-portal-head p { margin: 4px 0 0; color: #7a7a7a; }

.fg-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	border-bottom: 2px solid #cdeff1;
	margin-bottom: 22px;
}
.fg-tab {
	padding: 10px 18px;
	text-decoration: none;
	color: #54595f;
	font-weight: 600;
	border-radius: 10px 10px 0 0;
	border: 1px solid transparent;
	border-bottom: none;
	transition: background .15s ease, color .15s ease;
}
.fg-tab:hover { background: #e6f7f8; color: #0f7a81; text-decoration: none; }
.fg-tab-active {
	background: linear-gradient(135deg, #14b1bb, #0f7a81);
	color: #fff;
	box-shadow: 0 2px 8px rgba(15, 122, 129, .25);
}

.fg-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
	margin-bottom: 26px;
}
.fg-card {
	border: 1px solid #e6ecec;
	border-radius: 14px;
	padding: 20px 22px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(9, 29, 52, .06);
	transition: transform .15s ease, box-shadow .15s ease;
}
.fg-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(9, 29, 52, .10);
}
.fg-card h3 {
	margin-top: 0;
	border-bottom: 2px solid #14b1bb;
	padding-bottom: 10px;
	color: #0f7a81;
}
/* v1.7.0: headline stat cards on the marketing member portal. */
.fg-stat-card { text-align: center; }
.fg-stat-card .fg-stat-number { font-size: 42px; font-weight: 700; color: #0f7a81; line-height: 1.15; margin: 8px 0 4px; }
.fg-stat-card .fg-stat-label { color: #54595f; font-weight: 600; margin: 0 0 6px; }
.fg-stat-card .fg-stat-note { color: #7a7a7a; font-size: 14px; margin: 0; }
.fg-info-table { border-collapse: collapse; width: 100%; }
.fg-info-table th, .fg-info-table td { padding: 5px 10px 5px 0; text-align: left; vertical-align: top; }
.fg-info-table th { color: #7a7a7a; font-weight: 600; white-space: nowrap; }
.fg-sections { list-style: none; margin: 0; padding: 0; }
.fg-sections li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.fg-sections li:last-child { border-bottom: none; }
.fg-section-on { color: #0f7a81; font-weight: 600; }
.fg-section-on::before { content: "\2713  "; color: #14b1bb; }
.fg-section-off { color: #7a7a7a; }
.fg-section-off::before { content: "\1F512  "; opacity: .7; }
.fg-lock-note {
	background: #fff8e1;
	border: 1px solid #ffe082;
	border-left: 4px solid #f0b429;
	border-radius: 8px;
	padding: 12px 16px;
	margin: 14px 0;
}
.fg-locked-label { color: #7a7a7a; font-style: italic; }

/* --- Form builder ---------------------------------------------------- */

.fg-builder { max-width: 960px; }
.fg-builder-form { background: #fff; }

.fg-reminder {
	background: linear-gradient(135deg, #eafafa, #e6f7f8);
	border-left: 4px solid #14b1bb;
	border-radius: 10px;
	padding: 16px 20px;
	margin: 18px 0;
	box-shadow: 0 1px 6px rgba(9, 29, 52, .04);
}
.fg-reminder strong { color: #0f7a81; }
.fg-counter {
	display: inline-block;
	background: #e6f7f8;
	color: #0f7a81;
	font-weight: 600;
	border-radius: 999px;
	padding: 6px 16px;
	margin: 10px 0 4px;
}
.fg-reminder-warn {
	color: #c0392b;
	font-weight: 600;
	background: #fdecea;
	border: 1px solid #f5c6cb;
	border-radius: 8px;
	padding: 10px 14px;
	margin: 8px 0 0;
}

.fg-bank-group { margin-bottom: 28px; }
.fg-bank-group h4 {
	background: linear-gradient(90deg, #eefafa, #f8fcfc);
	border-left: 4px solid #14b1bb;
	border-radius: 0 8px 8px 0;
	padding: 10px 14px;
	margin: 18px 0 10px;
	color: #0f7a81;
}
.fg-bank-section { color: #0f7a81; margin: 16px 0 8px; font-weight: 600; }
.fg-qrow {
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 10px;
	background: #fff;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.fg-qrow:hover { border-color: #9fdfe3; box-shadow: 0 1px 6px rgba(20, 177, 187, .12); }
.fg-qrow:has(input[data-fg-qcheck]:checked) {
	border-color: #14b1bb;
	background: #f4fbfb;
	box-shadow: 0 1px 6px rgba(20, 177, 187, .14);
}
.fg-qrow-label { font-weight: 600; cursor: pointer; display: block; }
.fg-qrow-label input[type="checkbox"] { accent-color: #14b1bb; width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
.fg-qtype { font-weight: 400; color: #7a7a7a; font-size: 13px; }
.fg-qsettings { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.fg-qsettings label { font-size: 14px; color: #7a7a7a; }
.fg-qsettings input[type="number"] { width: 70px; padding: 5px 8px; border: 1px solid #c7c4c4; border-radius: 6px; }
.fg-qsettings input[type="checkbox"] { accent-color: #14b1bb; }
.fg-sort { width: 70px; }

.fg-custom-row {
	border: 1px solid #d9ecec;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 12px;
	background: #fbfcfc;
	box-shadow: 0 1px 5px rgba(9, 29, 52, .04);
}
.fg-custom-row .fg-field input[type="text"],
.fg-custom-row .fg-field select,
.fg-custom-row .fg-field textarea { max-width: 100%; }
.fg-custom-options { margin-left: 0; }
.fg-subfield {
	margin-left: 22px !important;
	padding-left: 14px;
	border-left: 3px solid #cdeff1;
}
.fg-current-logo { font-size: 14px; color: #7a7a7a; }

/* --- Public form ----------------------------------------------------- */

.fg-public-page-main { padding: 8px 0 24px; }
.fg-public-form { max-width: 760px; }
.fg-public-form { position: relative; }
.fg-public-form .fg-brand { text-align: center; margin-bottom: 10px; }
.fg-public-form .fg-brand .fg-brand-name { font-size: 28px; font-weight: 700; color: #0f7a81; margin: 0; line-height: 1.25; }
.fg-public-form .fg-powered-by { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; opacity: .8; }
.fg-public-form .fg-powered-by img { width: 36px; height: 36px; }
.fg-public-form .fg-powered-label { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: #7a7a7a; }
.fg-public-form .fg-powered-name { font-size: 11px; font-weight: 600; color: #7a7a7a; }
.fg-public-form .fg-brand img { max-width: 120px; height: auto; }
.fg-public-form .fg-brand p { color: #7a7a7a; margin: 6px 0 0; }
.fg-public-form h2 { text-align: center; color: #0f7a81; font-size: 26px; }
.fg-intro {
	background: linear-gradient(135deg, #f4fbfb, #eefafa);
	border: 1px solid #d9ecec;
	border-radius: 12px;
	padding: 18px 22px;
	margin-bottom: 18px;
}
.fg-form-type { text-align: center; color: #7a7a7a; }
.fg-incentive {
	background: linear-gradient(135deg, #14b1bb, #0f8a92);
	color: #fff;
	border-radius: 12px;
	padding: 16px 22px;
	margin: 0 0 26px;
	text-align: center;
	font-size: 18px;
	line-height: 1.5;
	box-shadow: 0 4px 16px rgba(15, 122, 129, .28);
}
.fg-question {
	margin-bottom: 24px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #e6ecec;
	border-radius: 12px;
	box-shadow: 0 1px 6px rgba(9, 29, 52, .04);
}
.fg-question textarea { width: 100%; min-height: 90px; }
.fg-question .fg-radio {
	display: block;
	padding: 7px 10px;
	border-radius: 8px;
	transition: background .12s ease;
}
.fg-question .fg-radio:hover { background: #f4fbfb; }
.fg-question input[type="radio"] { accent-color: #14b1bb; width: 16px; height: 16px; vertical-align: -2px; margin-right: 6px; }
.fg-qdesc textarea { width: 100%; }
.fg-identified-fields {
	background: linear-gradient(135deg, #f4fbfb, #eefafa);
	border: 1px solid #d9ecec;
	border-radius: 12px;
	padding: 18px 20px 4px;
	margin-bottom: 18px;
}
.fg-feedback-form .fg-submit { width: 100%; max-width: 420px; display: block; margin: 8px auto 0; }

/* --- Report ---------------------------------------------------------- */

.fg-report-head {
	display: flex;
	align-items: center;
	gap: 18px;
	border-bottom: 3px solid #14b1bb;
	padding: 18px 20px 20px;
	margin-bottom: 22px;
	background: linear-gradient(135deg, #f8fcfc, #eefafa);
	border-radius: 14px 14px 0 0;
}
.fg-report-head h2 { margin: 0; color: #0f7a81; }
.fg-report-head h3 { margin: 4px 0 0; color: #0f7a81; font-size: 18px; }
.fg-report-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
	margin-bottom: 26px;
}
.fg-report-stat {
	border: 1px solid #e6ecec;
	border-radius: 14px;
	padding: 20px 16px;
	text-align: center;
	background: #fff;
	box-shadow: 0 2px 12px rgba(9, 29, 52, .06);
}
.fg-report-number {
	display: block;
	font-size: 34px;
	font-weight: 600;
	color: #0f7a81;
	line-height: 1.2;
}
.fg-report-label { font-size: 14px; color: #7a7a7a; }
.fg-donut { display: block; margin: 0 auto 10px; }
.fg-sender-bar { display: block; margin: 12px auto 4px; }
.fg-month-chart { display: block; margin: 10px auto; max-width: 100%; height: auto; }
.fg-report-questions { margin-bottom: 18px; }
.fg-report-q { margin-bottom: 16px; }
.fg-report-q-text { margin-bottom: 6px; font-weight: 600; }
.fg-bar {
	position: relative;
	background: #eef2f2;
	border-radius: 999px;
	height: 26px;
	overflow: hidden;
}
.fg-bar-fill { background: linear-gradient(90deg, #14b1bb, #0f7a81); height: 100%; border-radius: 999px; }
.fg-bar-label {
	position: absolute;
	right: 10px;
	top: 2px;
	font-weight: 600;
	font-size: 14px;
	color: #54595f;
}
.fg-report-suggestions li { margin-bottom: 14px; }

/* --- Responsive ------------------------------------------------------ */

@media (max-width: 720px) {
	.fg-portal-head { flex-direction: column; text-align: center; gap: 10px; }
	.fg-report-head { flex-direction: column; text-align: center; gap: 10px; }
	.fg-table th, .fg-table td { padding: 8px 9px; font-size: 14px; }
}

@media (max-width: 560px) {
	.fg-portal .fg-row { flex-direction: column; gap: 0; }
	.fg-tabs { gap: 4px; }
	.fg-tab { padding: 8px 12px; font-size: 14px; }
	.fg-card { padding: 16px; }
	.fg-stat-card .fg-stat-number { font-size: 34px; }
	.fg-qrow { padding: 10px; }
	.fg-qsettings { gap: 6px 12px; }
	.fg-question { padding: 14px; }
	.fg-portal .fg-submit,
	.fg-public-form .fg-submit { width: 100%; padding: 12px 16px; }
	.fg-subfield { margin-left: 10px !important; }
	.fg-incentive { font-size: 16px; padding: 14px 16px; }
}

/* --- v1.3.0: layered subscription windows + consultation meetings --- */

.fg-badge-expired { background: #b7791f; }
.fg-plan-windows { list-style: none; margin: 0 0 10px; padding: 0; }
.fg-plan-windows li { padding: 8px 0; border-bottom: 1px solid #eef2f2; }
.fg-plan-windows li:last-child { border-bottom: none; }
.fg-section-off::before { content: "\1F512  "; opacity: .7; }

.fg-meeting-form { max-width: 620px; }
.fg-meetings { display: flex; flex-direction: column; gap: 14px; }
.fg-meeting-card {
	background: #fff;
	border: 1px solid #e6ecec;
	border-left: 4px solid #14b1bb;
	border-radius: 10px;
	box-shadow: 0 1px 6px rgba(9, 29, 52, .05);
	padding: 14px 18px;
}
.fg-meeting-card ul { margin: 8px 0 0; padding-left: 18px; }
.fg-meeting-card li { margin-bottom: 4px; }

/* --- v1.4.0: subscription renewals ---------------------------------- */

.fg-renew-banner {
	background: #fdf6e7;
	border: 1px solid #f0dfb8;
	border-left: 4px solid #b7791f;
	border-radius: 10px;
	box-shadow: 0 1px 6px rgba(9, 29, 52, .05);
	padding: 14px 18px;
	margin-bottom: 16px;
}
.fg-renew-banner p { margin: 0 0 10px; }
.fg-renew-banner p:last-child { margin-bottom: 0; }
.fg-renew-banner .button { margin-left: 8px; }

.fg-renew-form { max-width: 620px; }
.fg-renew-total { font-size: 18px; font-weight: 700; color: #0f7a81; }

/* Payment frequency choice (v1.6.0): a bordered option box so the
   two ways to pay read as one clear choice. */
.fg-frequency-options {
	border: 1px solid #cdeff1;
	border-radius: 10px;
	background: #fbfefe;
	padding: 14px 18px;
}
.fg-frequency-options .fg-radio {
	display: block;
	padding: 5px 0;
	font-weight: 600;
}
.fg-frequency-options .fg-label {
	font-weight: 700;
	color: #0f7a81;
}

/* --- v1.5.0: monthly billing ----------------------------------------- */

.fg-badge-suspended { background: #b3372e; color: #fff; }

.fg-billing-banner {
	background: #fdf6e7;
	border: 1px solid #f0dfb8;
	border-left: 4px solid #b7791f;
	border-radius: 10px;
	box-shadow: 0 1px 6px rgba(9, 29, 52, .05);
	padding: 14px 18px;
	margin-bottom: 16px;
}
.fg-billing-banner p { margin: 0 0 10px; }
.fg-billing-banner p:last-child { margin-bottom: 0; }
.fg-billing-banner .button { margin-left: 8px; }
.fg-billing-suspended {
	background: #fdf0ef;
	border: 1px solid #f2c7c3;
	border-left: 4px solid #b3372e;
	border-radius: 10px;
	padding: 12px 14px;
}

.fg-billing-card {
	background: #fff;
	border: 1px solid #e6ecec;
	border-left: 4px solid #14b1bb;
	border-radius: 10px;
	box-shadow: 0 1px 6px rgba(9, 29, 52, .05);
	padding: 14px 18px;
	margin-bottom: 16px;
}
.fg-billing-card h4 { margin: 0 0 6px; }
.fg-billing-card p { margin: 0 0 8px; }

.fg-receipt-form { max-width: 620px; }
.fg-receipt-form input[type="text"],
.fg-receipt-form textarea { width: 100%; max-width: 520px; }

/* --- Suspended-plan public form (v1.6.1) ------------------------------ */
/* QR visitors to a form whose plan is suspended for non-payment see
 * the form dimmed behind a modal popup. Dismissing the modal leaves
 * the page dimmed with an inline notice; the form stays disabled
 * (the submission handler refuses it anyway). The modal is visible
 * by default in the markup, so it shows even if the JS fails. */

.fg-form-suspended .fg-suspended-dim {
	opacity: .45;
	filter: blur(2px);
	pointer-events: none;
	user-select: none;
}
.fg-suspended-notice {
	background: #fdf0ef;
	border: 1px solid #f2c7c3;
	border-left: 4px solid #b3372e;
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 16px;
}
.fg-suspended-notice p { margin: 0 0 8px; }
.fg-suspended-notice p:last-child { margin-bottom: 0; }

/* --- Scheduled public form (v1.9.8.3) --------------------------------- */
/* Outside its Active from – To dates the designed form stays visible
 * as a matte, blurred preview behind an informational notice; the
 * wrapper is inert and the submission handler refuses posts. */
.fg-form-scheduled .fg-scheduled-dim {
	opacity: .5;
	filter: blur(5px);
	pointer-events: none;
	user-select: none;
}
.fg-schedule-notice {
	background: #eefafa;
	border: 1px solid #bfe6e9;
	border-left: 4px solid #14b1bb;
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 16px;
}
.fg-schedule-notice p { margin: 0 0 8px; }
.fg-schedule-notice p:last-child { margin-bottom: 0; }
.fg-suspended-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(9, 29, 52, .72);
	box-sizing: border-box;
}
.fg-suspended-modal[hidden] { display: none; }
.fg-suspended-modal-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
	border-top: 5px solid #14b1bb;
	max-width: 480px;
	width: 100%;
	padding: 28px 28px 24px;
	text-align: center;
	font-family: 'Livvic', 'Montserrat', Arial, sans-serif;
	color: #54595f;
	line-height: 1.6;
}
.fg-suspended-modal-card h3 {
	margin: 0 0 12px;
	color: #0f7a81;
	font-size: 22px;
	font-weight: 700;
}
.fg-suspended-modal-card p { margin: 0 0 12px; }
.fg-suspended-modal-card p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
	.fg-suspended-modal { padding: 16px; }
	.fg-suspended-modal-card { padding: 22px 18px 20px; }
	.fg-suspended-modal-card h3 { font-size: 19px; }
}

/* ==========================================================================
   v1.9.8 DESIGN SYSTEM — professional account environment (owner's item 14)
   --------------------------------------------------------------------------
   One token set for the whole customer account (business portal first;
   the marketing portal shares these styles and inherits the same system):

   Colour   brand        #14B1BB   (primary actions, active states)
            brand-dark   #0F7A81   (hover, headings, active text)
            ink          #22313A   (headings)
            body         #45545E   (running text)
            muted        #7A8794   (secondary text, locked states)
            line         #E2EBEC   (borders, dividers)
            surface      #FFFFFF   (cards, bars)
            soft         #F6FAFA   (page wells, zebra rows)
            wash         #EAF6F7   (hover washes, header fills)
   Type     Livvic throughout. Scale: page title 25/700, section 18/600,
            card 16/600, body 15.5/1.65, label 13/600, small 13 muted.
   Space    4 / 8 / 12 / 16 / 24 / 32 scale. Cards pad 20–24, bars pad 6–8,
            sections separate by 24.
   Radius   8 controls · 12 bars & cards · 14 hero cards.
   Shadow   card: 0 1px 3px rgba(16,42,48,.05), 0 8px 24px rgba(16,42,48,.05)
            pop:  0 4px 14px rgba(15,122,129,.28) (active tab, primary btn)

   CSS-led only: no class, ID or data-hook was renamed and no markup
   changed — these rules restyle the existing renderers by cascade
   (this file loads last) and add the states that had no styles at all
   (.fg-tab-locked, .fg-payment-pending, .fg-profile).
   ========================================================================== */

/* --- Foundations ------------------------------------------------------ */

.fg-portal,
.fg-public-form,
.fg-report {
	font-size: 15.5px;
	color: #45545e;
}
.fg-portal h2, .fg-report h2 { font-size: 25px; font-weight: 700; color: #0f7a81; line-height: 1.3; }
.fg-portal h3, .fg-report h3 { font-size: 18px; font-weight: 600; color: #22313a; line-height: 1.35; }
.fg-portal h4 { font-size: 15px; font-weight: 600; color: #22313a; }
.fg-portal a { color: #0f7a81; }
.fg-portal a:hover { color: #14b1bb; }
.fg-portal :focus-visible,
.fg-public-form :focus-visible {
	outline: 2px solid #14b1bb;
	outline-offset: 2px;
	border-radius: 4px;
}

/* Inside the portal shell the account sits on a white panel — the
   SaaS-account surface the rest of the system is tuned against. */
body.fg-portal-shell .fg-portal,
body.fg-portal-shell .fg-public-form {
	background: #fff;
	border: 1px solid #e2ebec;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(16, 42, 48, .05), 0 8px 24px rgba(16, 42, 48, .05);
	padding: 28px 30px 32px;
}

/* --- Tab menu (priority) ---------------------------------------------- */
/* A real navigation bar: white pill bar, even spacing, brand-teal
   active pill, quiet hover wash, and a locked state that reads as
   deliberately locked (grey pill + lock glyph + not-allowed cursor),
   never as a broken link. On narrow screens the bar scrolls
   horizontally instead of wrapping into a ragged second row. */

.fg-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	background: #fff;
	border: 1px solid #e2ebec;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(16, 42, 48, .05);
	padding: 6px;
	margin-bottom: 24px;
	overflow-x: auto;
	scrollbar-width: none;
}
.fg-tabs::-webkit-scrollbar { display: none; }
.fg-tab {
	flex: 0 0 auto;
	padding: 9px 16px;
	border: none;
	border-radius: 8px;
	color: #45545e;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.fg-tab:hover { background: #eaf6f7; color: #0f7a81; text-decoration: none; }
.fg-tab-active,
.fg-tab-active:hover {
	background: linear-gradient(135deg, #14b1bb, #0f7a81);
	color: #fff;
	box-shadow: 0 4px 14px rgba(15, 122, 129, .28);
	text-decoration: none;
}
.fg-tab-locked {
	background: #f1f4f4;
	color: #8a97a0;
	cursor: not-allowed;
	box-shadow: none;
}
.fg-tab-locked::before {
	content: "\1F512";
	font-size: 12px;
	margin-right: 6px;
	opacity: .75;
}
.fg-tab-locked:hover { background: #f1f4f4; color: #8a97a0; }

/* --- Portal header ------------------------------------------------------ */

.fg-portal-head {
	background: linear-gradient(135deg, #f2fbfb 0%, #e7f5f6 60%, #dcf0f1 100%);
	border: 1px solid #d7ecec;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(16, 42, 48, .05), 0 8px 24px rgba(16, 42, 48, .04);
	padding: 22px 24px;
	margin-bottom: 24px;
}
.fg-portal-head h2 { font-size: 24px; }
.fg-portal-head p { color: #7a8794; font-size: 14.5px; }

/* --- Cards & panels ----------------------------------------------------- */

.fg-cards { gap: 16px; margin-bottom: 24px; }
.fg-card {
	border: 1px solid #e2ebec;
	border-radius: 12px;
	padding: 20px 22px;
	box-shadow: 0 1px 3px rgba(16, 42, 48, .05), 0 8px 24px rgba(16, 42, 48, .05);
}
.fg-card:hover { transform: none; box-shadow: 0 2px 6px rgba(16, 42, 48, .06), 0 12px 28px rgba(16, 42, 48, .07); }
.fg-card h3 { font-size: 16px; border-bottom: 2px solid #14b1bb; padding-bottom: 8px; margin-bottom: 12px; }
.fg-stat-card .fg-stat-number { font-size: 38px; color: #0f7a81; }
.fg-meeting-card,
.fg-billing-card {
	border: 1px solid #e2ebec;
	border-left: 4px solid #14b1bb;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(16, 42, 48, .05);
	padding: 16px 20px;
}

/* --- Tables -------------------------------------------------------------- */

.fg-table {
	border: 1px solid #e2ebec;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(16, 42, 48, .05);
	margin: 16px 0 24px;
}
.fg-table th, .fg-table td { border: none; border-bottom: 1px solid #eef3f3; padding: 12px 16px; }
.fg-table thead th {
	background: #eef7f7;
	color: #0f7a81;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	border-bottom: 2px solid #cdeff1;
}
.fg-table tbody tr:nth-child(even) { background: #fbfdfd; }
.fg-table tbody tr:hover { background: #f4fbfb; }
.fg-table tbody tr:last-child td { border-bottom: none; }

/* Profile definition list (v1.9.8 item 9): quiet two-column rows with
   hairline dividers — labels in muted small caps, values in ink. */
.fg-profile {
	border: 1px solid #e2ebec;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(16, 42, 48, .05);
	padding: 22px 24px;
	background: #fff;
}
.fg-info-table th, .fg-info-table td {
	padding: 10px 12px 10px 0;
	border-bottom: 1px solid #eef3f3;
}
.fg-info-table tr:last-child th, .fg-info-table tr:last-child td { border-bottom: none; }
.fg-info-table th {
	color: #7a8794;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	width: 220px;
}
.fg-info-table td { color: #22313a; font-weight: 500; }

/* --- Buttons -------------------------------------------------------------- */

.fg-portal .fg-submit,
.fg-public-form .fg-submit {
	font-size: 15.5px;
	font-weight: 600;
	padding: 12px 30px;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(15, 122, 129, .22);
}
.fg-portal .fg-submit:hover,
.fg-portal .fg-submit:focus,
.fg-public-form .fg-submit:hover,
.fg-public-form .fg-submit:focus { box-shadow: 0 6px 18px rgba(15, 122, 129, .30); }
/* Secondary actions rendered with the WordPress .button class inside
   the portal (meeting / billing / renewal screens). */
.fg-portal a.button,
.fg-portal .button {
	display: inline-block;
	padding: 8px 18px;
	background: #fff;
	border: 1px solid #0f7a81;
	border-radius: 8px;
	color: #0f7a81;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.fg-portal a.button:hover,
.fg-portal .button:hover { background: #eaf6f7; color: #0f7a81; text-decoration: none; }
.fg-portal .button-primary {
	background: linear-gradient(135deg, #14b1bb, #0f7a81);
	border-color: #0f7a81;
	color: #fff;
}
.fg-portal .button-primary:hover { background: linear-gradient(135deg, #14b1bb, #0f7a81); color: #fff; filter: brightness(1.06); }

/* --- Form controls --------------------------------------------------------- */

.fg-portal .fg-field,
.fg-public-form .fg-field { margin: 0 0 18px; }
.fg-portal .fg-label,
.fg-public-form .fg-label { font-size: 14px; font-weight: 600; color: #22313a; }
.fg-portal .fg-field input[type="text"],
.fg-portal .fg-field input[type="email"],
.fg-portal .fg-field input[type="tel"],
.fg-portal .fg-field input[type="date"],
.fg-portal .fg-field input[type="number"],
.fg-portal .fg-field select,
.fg-portal .fg-field textarea,
.fg-public-form .fg-field input[type="text"],
.fg-public-form .fg-field input[type="email"],
.fg-public-form .fg-field select,
.fg-public-form .fg-field textarea {
	border: 1px solid #c9d6d8;
	border-radius: 8px;
	padding: 11px 13px;
	font-size: 15px;
	color: #22313a;
}
.fg-portal .fg-field input:focus,
.fg-portal .fg-field select:focus,
.fg-portal .fg-field textarea:focus,
.fg-public-form .fg-field input:focus,
.fg-public-form .fg-field select:focus,
.fg-public-form .fg-field textarea:focus {
	border-color: #14b1bb;
	box-shadow: 0 0 0 3px rgba(20, 177, 187, .16);
}
.fg-portal .fg-field small,
.fg-public-form .fg-field small { color: #7a8794; }

/* The fixed anonymous option on the public form (v1.9.8 item 11):
   a soft brand-tinted box so the choice reads as part of the form. */
.fg-anonymous-option {
	background: #f6fafa;
	border: 1px solid #d7ecec;
	border-radius: 12px;
	padding: 14px 18px;
}
.fg-anonymous-option .fg-checkbox { font-weight: 600; color: #22313a; cursor: pointer; }
.fg-anonymous-option input[type="checkbox"] { accent-color: #14b1bb; width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }

/* --- Notices & banners ------------------------------------------------------ */

.fg-lock-note,
.fg-renew-banner,
.fg-billing-banner {
	border-radius: 12px;
	padding: 16px 20px;
	margin: 16px 0 24px;
	box-shadow: 0 1px 3px rgba(16, 42, 48, .05);
}
/* Payment-pending notice (v1.9.7 lock; styled v1.9.8): an amber-accent
   card — the account is active, one step remains. */
.fg-payment-pending {
	background: #fffdf4;
	border: 1px solid #f0dfb8;
	border-left: 4px solid #f0b429;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(16, 42, 48, .05), 0 8px 24px rgba(16, 42, 48, .04);
	padding: 22px 24px;
	margin-bottom: 24px;
}
.fg-payment-pending h3 { margin-top: 0; color: #7a5410; font-size: 18px; }
.fg-payment-pending ul { margin: 8px 0 12px; padding-left: 20px; }
.fg-badge { padding: 3px 11px; font-size: 12px; }

/* Empty states: portal views print a plain paragraph when a list is
   empty — give those paragraphs the same breathing room as panels. */
.fg-portal > p { margin: 0 0 16px; }

/* --- Design-system responsive ------------------------------------------------ */

@media (max-width: 860px) {
	.fg-tabs { border-radius: 10px; }
	.fg-tab { padding: 8px 13px; font-size: 14px; }
	body.fg-portal-shell .fg-portal,
	body.fg-portal-shell .fg-public-form { padding: 20px 18px 24px; }
	.fg-info-table th { width: 150px; }
}
@media (max-width: 560px) {
	.fg-tabs { gap: 2px; padding: 4px; }
	.fg-tab { padding: 8px 11px; }
	.fg-profile { padding: 16px; }
	.fg-info-table th, .fg-info-table td { display: block; width: auto; padding: 6px 0 2px; border-bottom: none; }
	.fg-info-table td { padding: 0 0 10px; border-bottom: 1px solid #eef3f3; }
	.fg-payment-pending { padding: 16px; }
}

/* --- v1.9.8.3 polish (owner feedback, 2026-11-18): prettier, correct,
   and everything inside the frame. CSS-only overrides; no class or id
   renamed, no DOM hook touched. --- */

/* Back to Dashboard (v1.9.8.3): a quiet outline button above the tab
   bar on every non-dashboard view. */
.fg-back-row { margin: 0 0 14px; }
.fg-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1.5px solid #14b1bb;
	border-radius: 999px;
	color: #0f7a81;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.fg-back-btn:hover, .fg-back-btn:focus { background: #14b1bb; color: #fff; text-decoration: none; }

/* Anonymous-by-default note in the form builder + the promotion
   callout above the optional identity fields on the public form. */
.fg-anon-note {
	background: #f7fafa;
	border: 1px solid #e2ebec;
	border-radius: 10px;
	padding: 12px 16px;
	margin: 0 0 16px;
}
.fg-anon-note p { margin: 0; }
.fg-promo-note {
	background: #eef7f7;
	border: 1px solid #cdeff1;
	border-radius: 10px;
	padding: 10px 14px;
	color: #0f7a81;
	font-weight: 600;
}

/* Cards hug their content: the dashboard's shorter card no longer
   stretches to the taller card's height, leaving an empty frame. */
.fg-cards { align-items: start; }

/* Long cell content wraps inside its frame instead of pushing the
   layout out (long emails and URLs were clipped at the card edge). */
.fg-portal td, .fg-portal th { overflow-wrap: break-word; }

/* Info tables: fixed layout keeps the two columns inside the card at
   any width; the label column takes a proportional share instead of
   a fixed 220px, labels may wrap, and values always wrap. */
.fg-info-table { table-layout: fixed; }
.fg-info-table th { width: 34%; white-space: normal; }
.fg-info-table td { overflow-wrap: anywhere; }
.fg-info-table th, .fg-info-table td { padding: 9px 14px 9px 0; }
.fg-info-table tbody tr { transition: background .12s ease; }
.fg-info-table tbody tr:hover { background: #fbfdfd; }

/* Keep the stacked small-screen layout authoritative over the fixed
   layout above. */
@media (max-width: 560px) {
	.fg-info-table th, .fg-info-table td { width: auto; }
	.fg-back-btn { padding: 7px 13px; font-size: 13.5px; }
}
.fg-logo-preview { max-width: 200px; height: auto; display: block; }
.fg-info-table .fg-logo-preview { max-width: 140px; }

/* Dashboard Business Information (v1.9.8.7): a stacked field list
   replaces the two-column table in the dashboard card — the bold
   label sits on its own line with the value directly under it,
   matching the Subscription card's typography, with clean spacing
   and no cell borders, so nothing wraps mid-word at the card's
   narrow width and the layout is phone-safe by construction. */
.fg-info-list { margin: 0; }
.fg-info-item { margin: 0 0 15px; }
.fg-info-item:last-child { margin-bottom: 0; }
.fg-info-item dt {
	color: #22313a;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	margin: 0 0 2px;
}
.fg-info-item dd {
	margin: 0;
	color: #22313a;
	font-size: 15px;
	font-weight: 500;
	overflow-wrap: anywhere;
}
.fg-info-list .fg-logo-preview { max-width: 140px; }

/* Locked "Type of feedback" options in the form builder
   (v1.9.8.7): the lock note is an inline <span> inside the radio
   label, but the banner-style rules above give it box padding
   and vertical margins, which do not apply to inline boxes —
   the painted note boxes overlapped the next option. As a
   block the note now flows cleanly under its own option:
   smaller type and padding, a clear gap before the next
   option, and full width on phones. The pale-yellow banner
   colours from the base rule are unchanged. */
.fg-builder-form .fg-lock-note {
	display: block;
	font-size: 12.5px;
	font-style: normal;
	line-height: 1.45;
	padding: 6px 10px;
	margin: 6px 0 12px;
	border-radius: 8px;
}

/* Non-English language lock on the ready-made questions
   accordion (v1.9.8.7, Change 8b): the panel greys out while
   fg-bank-locked is set by fg-portal.js (and rendered by PHP
   for a stored non-English form); the lock note sits under
   the accordion head so it is visible even while the panel
   is closed, and the [hidden] attribute must win over the
   builder lock-note's display:block above. */
.fg-builder-form .fg-lock-note[hidden] { display: none; }
.fg-builder-form .fg-acc-item .fg-lock-note { margin: 10px 14px 12px; }
.fg-builder-form .fg-acc-item.fg-bank-locked .fg-acc-panel { opacity: .55; }

/* --- Builder questions accordion + preview (v1.9.8.3) ------------------ */
.fg-accordion { display: grid; gap: 14px; margin: 6px 0 18px; }
.fg-acc-item { border: 1px solid #e6ecec; border-radius: 12px; overflow: hidden; background: #fff; }
.fg-acc-head { margin: 0; }
.fg-acc-btn {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	background: #f4f8f8;
	border: 0;
	padding: 13px 16px;
	font: inherit;
	font-weight: 700;
	color: #0b2b3a;
	cursor: pointer;
	text-align: left;
}
.fg-acc-chevron { transition: transform .2s ease; }
.fg-acc-btn[aria-expanded="false"] .fg-acc-chevron { transform: rotate(-90deg); }
.fg-acc-panel { padding: 6px 16px 14px; border-top: 1px solid #e6ecec; }
.fg-qoptions { margin: 2px 0 4px 26px; color: #5b7183; }
.fg-preview-modal {
	position: fixed;
	inset: 0;
	z-index: 120;
	background: rgba(9, 29, 52, .72);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 24px 14px;
	box-sizing: border-box;
}
.fg-preview-modal[hidden] { display: none; }
.fg-preview-card {
	background: #fff;
	border-radius: 14px;
	max-width: 720px;
	width: 100%;
	padding: 20px 22px 26px;
	box-sizing: border-box;
}
.fg-preview-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

/* --- Profile page design pass (v1.9.8.3) -------------------------------- */
/* The Profile view gets a finished card of its own: the registration
   table sits inside a bordered, rounded frame with generous cell
   padding (text no longer hugs the row lines), sentence-case labels
   instead of the raw all-caps look, and a whisper of zebra striping. */
.fg-profile { padding: 28px 30px; border-radius: 14px; box-shadow: 0 2px 12px rgba(9, 29, 52, .06); }
.fg-profile h3 { margin: 0 0 6px; font-size: 22px; }
.fg-profile > p { color: #5b7183; margin: 0 0 20px; max-width: 640px; line-height: 1.55; }
.fg-profile .fg-info-table {
	border: 1px solid #e6ecec;
	border-radius: 12px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}
.fg-profile .fg-info-table th,
.fg-profile .fg-info-table td {
	padding: 13px 18px;
	border-bottom: 1px solid #eef3f3;
	background: #fff;
}
.fg-profile .fg-info-table tr:nth-child(even) th,
.fg-profile .fg-info-table tr:nth-child(even) td { background: #fafcfc; }
.fg-profile .fg-info-table tr:last-child th,
.fg-profile .fg-info-table tr:last-child td { border-bottom: none; }
.fg-profile .fg-info-table th {
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
	color: #5b7183;
	width: 30%;
}
.fg-profile .fg-info-table td { font-size: 15px; }
