/* ===================================================
   Fonstria Contact — Form Styles
   Uses CSS custom properties from the Fonstria theme
   =================================================== */

/* --- Layout --- */
.fcon-wrapper {
	width: 100%;
}

.fcon-fields {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.fcon-field {
	display: flex;
	flex-direction: column;
}

.fcon-row--2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

@media (max-width: 600px) {
	.fcon-row--2col {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* --- Label --- */
.fcon-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--foreground));
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.fcon-required {
	color: hsl(var(--gold));
	margin-left: 2px;
}

/* --- Inputs & Textarea --- */
.fcon-input,
.fcon-textarea {
	width: 100%;
	background: hsl(var(--secondary));
	border: 1px solid transparent;
	border-radius: var(--radius, 0.25rem);
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
	color: hsl(var(--foreground));
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	outline: none;
}

.fcon-input {
	height: 3rem;
}

.fcon-textarea {
	resize: none;
	min-height: 175px;
	line-height: 1.6;
}

.fcon-input::placeholder,
.fcon-textarea::placeholder {
	color: hsl(var(--muted-foreground));
	opacity: 0.8;
}

.fcon-input:focus,
.fcon-textarea:focus {
	border-color: hsl(var(--gold));
	box-shadow: 0 0 0 3px hsl(var(--gold) / 0.18);
}

/* --- Submit Row --- */
.fcon-submit-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.fcon-required-note {
	font-size: 0.8125rem;
	color: hsl(var(--muted-foreground));
}

/* --- Submit Button --- */
.fcon-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 3.5rem;
	padding: 0 2.5rem;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.025em;
	border: none;
	border-radius: calc(var(--radius, 0.25rem));
	cursor: pointer;
	box-shadow: var(--shadow-elevated, 0 20px 60px -15px rgba(0,0,0,0.15));
	transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
	white-space: nowrap;
	font-family: inherit;
}

.fcon-submit-btn:hover:not(:disabled) {
	background: hsl(var(--navy-light, 216 50% 25%));
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.fcon-submit-btn:disabled {
	opacity: 0.65;
	pointer-events: none;
	cursor: not-allowed;
}

/* --- Spinner --- */
.fcon-spinner {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border: 2px solid hsl(var(--primary-foreground) / 0.35);
	border-top-color: hsl(var(--primary-foreground));
	border-radius: 50%;
	animation: fcon-spin 0.7s linear infinite;
	flex-shrink: 0;
}

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

/* --- Feedback Messages --- */
.fcon-feedback {
	padding: 1rem 1.25rem;
	border-radius: var(--radius, 0.25rem);
	font-size: 0.9375rem;
	line-height: 1.55;
	margin-bottom: 1.5rem;
}

.fcon-feedback.fcon-success {
	background: hsl(142 60% 95%);
	color: hsl(142 50% 22%);
	border-left: 3px solid hsl(142 50% 42%);
}

.fcon-feedback.fcon-error {
	background: hsl(0 70% 96%);
	color: hsl(0 60% 28%);
	border-left: 3px solid hsl(0 60% 52%);
}

/* --- Compact Variant --- */
.fcon-compact .fcon-fields {
	gap: 1rem;
}

.fcon-compact .fcon-row--2col {
	gap: 1rem;
}

.fcon-compact .fcon-label {
	font-size: 0.8125rem;
	margin-bottom: 0.3rem;
}

.fcon-compact .fcon-input {
	height: 2.75rem;
	padding: 0.625rem 0.875rem;
	font-size: 0.875rem;
}

.fcon-compact .fcon-textarea {
	min-height: 120px;
	font-size: 0.875rem;
}

.fcon-compact .fcon-submit-btn {
	height: 3rem;
	padding: 0 2rem;
	font-size: 0.875rem;
}

/* ===================================================
   Contact Info Cards (used in contact.php redesign)
   =================================================== */
.fcon-info-card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.25rem 1.25rem 1.25rem 1rem;
	border: 1px solid hsl(var(--gold) / 0.2);
	border-left: 3px solid hsl(var(--gold) / 0.55);
	border-radius: var(--radius, 0.25rem);
	background: hsl(var(--background));
	transition: box-shadow 0.25s ease, border-left-color 0.25s ease;
}

.fcon-info-card:hover {
	box-shadow: var(--shadow-soft, 0 4px 30px -5px rgba(0,0,0,0.08));
	border-left-color: hsl(var(--gold) / 0.9);
}

.fcon-info-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: hsl(var(--secondary));
	border-radius: var(--radius, 0.25rem);
}

/* --- Trust Badge --- */
.fcon-trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	padding: 0.4rem 0.9rem;
	background: hsl(var(--secondary));
	border-radius: 9999px;
	margin-bottom: 1.5rem;
	border: 1px solid hsl(var(--gold) / 0.3);
}

.fcon-trust-badge strong {
	color: hsl(var(--foreground));
	font-weight: 600;
}

/* --- Google rating card improvements --- */
.fcon-google-card {
	margin-top: 2rem;
	padding: 1.5rem;
	background: hsl(var(--secondary));
	border-radius: var(--radius, 0.25rem);
	border: 1px solid hsl(var(--gold) / 0.2);
}

/* --- reCAPTCHA badge position --- */
.grecaptcha-badge {
	visibility: visible !important;
	opacity: 0.7;
	transition: opacity 0.3s;
}

.grecaptcha-badge:hover {
	opacity: 1;
}
