/* ==========================================================================
   CLW Contact Form - Modern & Responsive Styling
   ========================================================================== */

.clw-contact-form-card {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	background: #ffffff;
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.03);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	transition: all 0.3s ease;
}

.clw-contact-form-card *,
.clw-contact-form-card *::before,
.clw-contact-form-card *::after {
	box-sizing: border-box;
}

/* Header Section */
.clw-cf-header {
	margin-bottom: 28px;
}

.clw-cf-title {
	font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: #0f2942;
	line-height: 1.25;
	margin: 0 0 8px 0;
	letter-spacing: -0.02em;
}

.clw-cf-subtitle {
	font-size: 15px;
	color: #6b7280;
	line-height: 1.5;
	margin: 0;
}

.clw-cf-subtitle em,
.clw-cf-subtitle i {
	font-style: italic;
	color: #4b5563;
}

/* Grid Layout */
.clw-cf-grid {
	display: grid;
	width: 100%;
}

.clw-cf-grid-2 {
	grid-template-columns: repeat(2, 1fr);
	grid-column-gap: 16px;
	grid-row-gap: 20px;
	margin-bottom: 20px;
}

.clw-cf-field-group {
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
}

.clw-cf-grid-2 .clw-cf-field-group {
	margin-bottom: 0;
}

/* Labels */
.clw-cf-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	margin-bottom: 8px;
	letter-spacing: -0.01em;
}

.clw-cf-required {
	color: #ef4444;
	margin-left: 2px;
	font-weight: bold;
}

/* Inputs & Textarea */
.clw-cf-input,
.clw-cf-textarea {
	width: 100%;
	display: block;
	background-color: #f4f4f4;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 13px 16px;
	font-size: 14px;
	font-family: inherit;
	color: #1f2937;
	outline: none;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	-webkit-appearance: none;
	appearance: none;
}

.clw-cf-input::placeholder,
.clw-cf-textarea::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.clw-cf-input:hover,
.clw-cf-textarea:hover {
	border-color: #d1d5db;
	background-color: #f0f0f0;
}

.clw-cf-input:focus,
.clw-cf-textarea:focus {
	background-color: #ffffff;
	border-color: #8ce53f;
	box-shadow: 0 0 0 3px rgba(140, 229, 63, 0.25);
}

.clw-cf-textarea {
	min-height: 110px;
	resize: vertical;
	line-height: 1.5;
}

/* Consent Checkbox */
.clw-cf-consent-group {
	margin-top: 6px;
	margin-bottom: 24px;
}

.clw-cf-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	user-select: none;
}

.clw-cf-checkbox {
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin-top: 3px;
	accent-color: #8ce53f;
	border: 1.5px solid #d1d5db;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.clw-cf-consent-text {
	font-size: 12.5px;
	line-height: 1.55;
	color: #6b7280;
}

.clw-cf-consent-text a {
	color: #111827;
	font-weight: 600;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.clw-cf-consent-text a:hover {
	color: #7dd32e;
}

/* Button & Wrapper */
.clw-cf-button-wrapper {
	width: 100%;
	display: flex;
}

.clw-cf-btn-align-left .clw-cf-button-wrapper {
	justify-content: flex-start;
}

.clw-cf-btn-align-center .clw-cf-button-wrapper {
	justify-content: center;
}

.clw-cf-btn-align-right .clw-cf-button-wrapper {
	justify-content: flex-end;
}

.clw-cf-btn-align-justify .clw-cf-button-wrapper,
.clw-cf-btn-align-justify .clw-cf-submit-btn {
	width: 100%;
}

.clw-cf-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: #8ce53f;
	color: #0f2942;
	font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 600;
	padding: 15px 32px;
	border-radius: 35px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	box-shadow: none;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.clw-cf-submit-btn:hover {
	background-color: #7dd32e;
	transform: translateY(-1px);
	box-shadow: none;
}

.clw-cf-submit-btn:active {
	transform: translateY(0);
	box-shadow: none;
}

.clw-cf-submit-btn:disabled {
	opacity: 0.75;
	cursor: not-allowed;
	transform: none;
}

.clw-cf-btn-content {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.clw-cf-btn-icon {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	transition: transform 0.2s ease;
}

.clw-cf-btn-icon svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.clw-cf-btn-icon-right {
	margin-left: 8px;
}

.clw-cf-btn-icon-left {
	margin-right: 8px;
}

.clw-cf-submit-btn:hover .clw-cf-btn-icon-right {
	transform: translate(2px, -2px);
}

/* Spinner */
.clw-cf-btn-spinner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.clw-cf-spinner-svg {
	animation: clw-rotate 1.4s linear infinite;
	width: 18px;
	height: 18px;
}

.clw-cf-spinner-svg .path {
	stroke: currentColor;
	stroke-linecap: round;
	animation: clw-dash 1.4s ease-in-out infinite;
}

@keyframes clw-rotate {
	100% {
		transform: rotate(360deg);
	}
}

@keyframes clw-dash {
	0% {
		stroke-dasharray: 1, 150;
		stroke-dashoffset: 0;
	}
	50% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -35;
	}
	100% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -124;
	}
}

/* Alert Notices */
.clw-cf-alert-wrap {
	margin-top: 20px;
}

.clw-cf-alert {
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	border: 1px solid transparent;
	animation: clwFadeIn 0.3s ease;
}

.clw-cf-alert.clw-cf-success {
	background-color: #f0fdf4;
	color: #15803d;
	border-color: #bbf7d0;
}

.clw-cf-alert.clw-cf-error {
	background-color: #fef2f2;
	color: #b91c1c;
	border-color: #fecaca;
}

@keyframes clwFadeIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 767px) {
	.clw-contact-form-card {
		padding: 24px 20px;
		border-radius: 16px;
	}

	.clw-cf-grid-2 {
		grid-template-columns: 1fr;
		grid-gap: 16px;
		margin-bottom: 16px;
	}

	.clw-cf-title {
		font-size: 22px;
	}

	.clw-cf-subtitle {
		font-size: 14px;
	}

	.clw-cf-submit-btn {
		width: 100%;
		padding: 14px 24px;
		font-size: 15px;
	}
}
