/* Fideograph Forms — Frontend Styles v1
   Author: Saint Thomas Aquinas Ministry | https://www.aquinas.ng */

.fgf-wrapper {
	max-width: 680px;
	margin: 0 auto;
	font-family: inherit;
}

.fgf-form { width: 100%; }

.fgf-field {
	margin-bottom: 20px;
}

.fgf-label {
	display: block;
	font-size: .9rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: inherit;
}

.fgf-required {
	color: #c0392b;
	margin-left: 2px;
}

.fgf-input,
.fgf-textarea,
.fgf-select {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 5px;
	font-size: 1rem;
	font-family: inherit;
	color: inherit;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
	-webkit-appearance: none;
}

.fgf-input:focus,
.fgf-textarea:focus,
.fgf-select:focus {
	border-color: #1a3a5c;
	box-shadow: 0 0 0 3px rgba(26,58,92,.12);
	outline: none;
}

.fgf-textarea { resize: vertical; min-height: 100px; }

.fgf-radio-group,
.fgf-checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fgf-radio-label,
.fgf-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .95rem;
	cursor: pointer;
}

.fgf-file {
	padding: 8px 0;
	border: none;
	background: transparent;
}

.fgf-field-error {
	display: block;
	color: #c0392b;
	font-size: .8125rem;
	margin-top: 4px;
	min-height: 1em;
}

.fgf-actions {
	margin-top: 24px;
}

.fgf-submit {
	display: inline-block;
	padding: 12px 32px;
	background: #1a3a5c;
	color: #fff;
	border: none;
	border-radius: 5px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, transform .1s;
	font-family: inherit;
}

.fgf-submit:hover  { background: #142d47; }
.fgf-submit:active { transform: scale(.98); }
.fgf-submit:disabled { opacity: .6; cursor: wait; }

.fgf-form-error {
	margin-top: 12px;
	color: #c0392b;
	font-size: .875rem;
}

.fgf-success {
	background: #d1fae5;
	border: 1px solid #34d399;
	border-radius: 5px;
	padding: 16px 20px;
	color: #065f46;
	font-weight: 500;
	margin-bottom: 20px;
}

.fgf-error {
	color: #c0392b;
	font-style: italic;
	font-size: .9rem;
}

/* Honeypot */
.fgf-hp { position: absolute; left: -9999px; opacity: 0; }

/* Loading spinner */
.fgf-submit.fgf-loading::after {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: fgf-spin .6s linear infinite;
	margin-left: 8px;
	vertical-align: middle;
}

@keyframes fgf-spin {
	to { transform: rotate(360deg); }
}

/* Conditional field visibility */
.fgf-field[data-condition] { transition: opacity .2s; }
.fgf-field--hidden { display: none !important; }

/* ============================================================
   THEMES
   Author: Saint Thomas Aquinas Ministry | https://www.aquinas.ng
   ============================================================ */

/* ---- Theme: Default (already the base styles above) ---- */
.fgf-theme--default {}

/* ---- Theme: Fideograph — matches fideograph.com contact page exactly ---- */

.fgf-theme--fideograph {
	max-width: 680px;
	color: #2c2822;
	font-family: Georgia, "Times New Roman", serif;
}

/* No gap between fields — they stack flush */
.fgf-theme--fideograph .fgf-field {
	margin-bottom: 0;
	position: relative;
}

/* Labels hidden — placeholders do the job */
.fgf-theme--fideograph .fgf-label {
	display: none;
}

/* Required asterisk hidden too */
.fgf-theme--fideograph .fgf-required {
	display: none;
}

/* All inputs: warm grey fill, thin warm border, NO radius, flush stacked */
.fgf-theme--fideograph .fgf-input,
.fgf-theme--fideograph .fgf-textarea,
.fgf-theme--fideograph .fgf-select {
	background: #e8e4d9;
	border: 1px solid #ccc6b8;
	border-radius: 0;
	padding: 13px 16px;
	font-size: 1rem;
	font-family: Georgia, "Times New Roman", serif;
	color: #2c2822;
	box-shadow: none;
	transition: background .12s, border-color .12s;
	margin-top: -1px;
	position: relative;
	z-index: 0;
	width: 100%;
	box-sizing: border-box;
}

.fgf-theme--fideograph .fgf-field:first-child .fgf-input,
.fgf-theme--fideograph .fgf-field:first-child .fgf-textarea,
.fgf-theme--fideograph .fgf-field:first-child .fgf-select {
	margin-top: 0;
}

.fgf-theme--fideograph .fgf-input::placeholder,
.fgf-theme--fideograph .fgf-textarea::placeholder {
	color: #8a8278;
	font-style: normal;
}

.fgf-theme--fideograph .fgf-input:focus,
.fgf-theme--fideograph .fgf-textarea:focus,
.fgf-theme--fideograph .fgf-select:focus {
	background: #dedad0;
	border-color: #9a8660;
	outline: none;
	z-index: 1;
}

.fgf-theme--fideograph .fgf-textarea {
	min-height: 160px;
	resize: vertical;
}

.fgf-theme--fideograph .fgf-select {
	-webkit-appearance: auto;
	appearance: auto;
	cursor: pointer;
}

.fgf-theme--fideograph .fgf-actions {
	margin-top: 16px;
}

.fgf-theme--fideograph .fgf-submit {
	background: #1a1a1a;
	color: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	border-radius: 2px;
	padding: 16px 32px;
	border: none;
	cursor: pointer;
	transition: background .15s;
	display: inline-block;
	-webkit-appearance: none;
}

.fgf-theme--fideograph .fgf-submit:hover  { background: #383838; }
.fgf-theme--fideograph .fgf-submit:active { transform: scale(.98); }

.fgf-theme--fideograph .fgf-success {
	background: #eaf2ea;
	border: 1px solid #8aba8a;
	color: #2d5a2d;
	padding: 14px 18px;
	margin-bottom: 16px;
	font-family: Georgia, serif;
	font-size: .95rem;
}

.fgf-theme--fideograph .fgf-field-error {
	color: #b94a3a;
	font-size: .8rem;
	font-family: -apple-system, sans-serif;
	margin-top: 4px;
	display: block;
}

.fgf-theme--fideograph .fgf-radio-label,
.fgf-theme--fideograph .fgf-checkbox-label {
	color: #2c2822;
	font-size: .95rem;
	font-family: Georgia, serif;
	padding: 10px 0;
}

/* ---- Theme: Minimal — no borders, underline only ---- */
.fgf-theme--minimal .fgf-input,
.fgf-theme--minimal .fgf-textarea,
.fgf-theme--minimal .fgf-select {
	border: none;
	border-bottom: 2px solid #d1d5db;
	border-radius: 0;
	padding: 10px 2px;
	background: transparent;
	box-shadow: none;
}

.fgf-theme--minimal .fgf-input:focus,
.fgf-theme--minimal .fgf-textarea:focus,
.fgf-theme--minimal .fgf-select:focus {
	border-bottom-color: #1a3a5c;
	box-shadow: none;
	outline: none;
}

.fgf-theme--minimal .fgf-label {
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: #9ca3af;
	font-weight: 700;
}

.fgf-theme--minimal .fgf-submit {
	background: transparent;
	color: #1a3a5c;
	border: 2px solid #1a3a5c;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: .8125rem;
	border-radius: 4px;
	padding: 11px 28px;
}

.fgf-theme--minimal .fgf-submit:hover {
	background: #1a3a5c;
	color: #fff;
}

/* ---- Theme: Card — elevated, rounded, shadowed ---- */
.fgf-theme--card {
	background: #ffffff;
	border-radius: 16px;
	padding: 36px 40px;
	box-shadow: 0 8px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
	max-width: 560px;
}

.fgf-theme--card .fgf-field { margin-bottom: 22px; }

.fgf-theme--card .fgf-input,
.fgf-theme--card .fgf-textarea,
.fgf-theme--card .fgf-select {
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	padding: 12px 16px;
	background: #f9fafb;
	font-size: 1rem;
}

.fgf-theme--card .fgf-input:focus,
.fgf-theme--card .fgf-textarea:focus,
.fgf-theme--card .fgf-select:focus {
	border-color: #1a3a5c;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(26,58,92,.08);
}

.fgf-theme--card .fgf-submit {
	width: 100%;
	padding: 14px;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 10px;
	background: #1a3a5c;
}

.fgf-theme--card .fgf-submit:hover { background: #142d47; }

.fgf-theme--card .fgf-actions { margin-top: 28px; }
