/**
 * fnet Simple Contact Form - Frontend Styles
 *
 * Scoped CSS for the contact form to avoid global conflicts.
 *
 * @package Fnet_SCF
 * @since   1.0.0
 */

/* Container */
.fnet-scf-container {
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

.fnet-scf-container *,
.fnet-scf-container *::before,
.fnet-scf-container *::after {
	box-sizing: border-box;
}

/* Form */
.fnet-scf-form {
	width: 100%;
}

/* Row - Two Column Layout */
.fnet-scf-row {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 20px;
}

/* Columns */
.fnet-scf-col {
	flex: 1 1 45%;
	min-width: 280px;
}

/* Field Container */
.fnet-scf-field {
	margin-bottom: 15px;
}

/* Input Fields */
.fnet-scf-field input[type="text"],
.fnet-scf-field input[type="email"],
.fnet-scf-field input[type="tel"],
.fnet-scf-field textarea {
	width: 100%;
	padding: 0 10px;
	border: 1px solid #cddeee;
	border-radius: 0;
	font-size: 14px;
	line-height: 30px;
	color: #333;
	background-color: #e6f0f7;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	height: 30px;
	outline: none;
}

/* Focus States */
.fnet-scf-field input[type="text"]:focus,
.fnet-scf-field input[type="email"]:focus,
.fnet-scf-field input[type="tel"]:focus,
.fnet-scf-field textarea:focus {
	outline: none;
	border-color: #19334a;
	box-shadow: none;
}

/* Placeholder */
.fnet-scf-field input::placeholder,
.fnet-scf-field textarea::placeholder {
	color: #292929;
	font-size: 14px;
}

/* Textarea */
.fnet-scf-field textarea {
	height: 165px;
	min-height: auto;
	resize: none;
	padding: 5px 10px;
	line-height: 1.5;
}

/* Textarea field */
.fnet-scf-field-textarea {
	margin-bottom: 10px;
}

/* Error States */
.fnet-scf-field-error input,
.fnet-scf-field-error textarea {
	border-color: #c00;
	background-color: #fff8f8;
}

.fnet-scf-field-error input:focus,
.fnet-scf-field-error textarea:focus {
	border-color: #c00;
	box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.2);
}

/* Error Message */
.fnet-scf-error-message {
	display: block;
	margin-top: 5px;
	color: #c00;
	font-size: 12px;
	line-height: 1.4;
}

/* Submit Row */
.fnet-scf-submit-row {
	margin-top: 0;
	text-align: center;
}

/* Submit Button */
.fnet-scf-submit-btn {
	display: inline-block;
	height: 30px;
	padding: 0 15px;
	background-color: #19334a;
	color: #fff;
	border: none;
	border-radius: 0;
	font-size: 14px;
	font-weight: normal;
	line-height: 30px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	box-sizing: border-box;
	outline: none;
}

.fnet-scf-submit-btn:hover {
	background-color: #0d1f2d;
}

.fnet-scf-submit-btn:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(25, 51, 74, 0.4);
}

.fnet-scf-submit-btn:active {
	background-color: #0d1f2d;
}

/* Disabled state during submission */
.fnet-scf-submit-btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	transform: none;
}

/* General Error Message */
.fnet-scf-general-error {
	padding: 12px 15px;
	margin-bottom: 20px;
	background-color: #fef0f0;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	color: #721c24;
	font-size: 14px;
	line-height: 1.5;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
	.fnet-scf-row {
		flex-direction: column;
		gap: 0;
	}

	.fnet-scf-col {
		flex: 1 1 100%;
		min-width: 100%;
	}

	.fnet-scf-submit-btn {
		width: 100%;
	}
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.fnet-scf-field input,
	.fnet-scf-field textarea,
	.fnet-scf-submit-btn {
		transition: none;
	}
}

/* Required Fields Note */
.fnet-scf-required-note {
	margin-top: 20px;
	margin-bottom: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #666;
}

/* reCAPTCHA Badge - Hidden but accessible */
.grecaptcha-badge {
	visibility: hidden;
}
