/* ════════════════════════════════════════════
   EB Contact Form — Frontend Styles
   ════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.eb-cf-container {
	width: 100%;
	max-width: 100%;
	font-family: 'Inter', sans-serif;
	box-sizing: border-box;
}

/* ── Form Card ─────────────────────────────── */
.eb-cf-form {
	background: #ffffff;
	border: 1px solid #e8ecf0;
	border-radius: 16px;
	padding: 48px;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 640px) {
	.eb-cf-form {
		padding: 28px 20px;
		border-radius: 12px;
	}
}

/* ── Grid ──────────────────────────────────── */
.eb-cf-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

@media (max-width: 600px) {
	.eb-cf-form-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Field Groups ──────────────────────────── */
.eb-cf-field-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
}

.eb-cf-form-grid .eb-cf-field-group {
	margin-bottom: 0;
}

.eb-cf-field-group label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

.eb-cf-required {
	color: #ef4444;
	margin-left: 2px;
}

/* ── Inputs ────────────────────────────────── */
.eb-cf-field-group input[type="text"],
.eb-cf-field-group input[type="email"],
.eb-cf-field-group select {
	width: 100%;
	padding: 13px 16px;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 400;
	color: #111827;
	background: #f9fafb;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	outline: none;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.eb-cf-field-group input[type="text"]:focus,
.eb-cf-field-group input[type="email"]:focus,
.eb-cf-field-group select:focus {
	border-color: #6366f1;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.eb-cf-field-group input[type="text"].is-invalid,
.eb-cf-field-group input[type="email"].is-invalid,
.eb-cf-field-group select.is-invalid {
	border-color: #ef4444;
	background: #fff5f5;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

textarea#eb_cf_message {
	width: 100%;
	padding: 14px 16px;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	color: #111827;
	background: #f9fafb;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	outline: none;
	resize: vertical;
	min-height: 140px;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

textarea#eb_cf_message:focus {
	border-color: #6366f1;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

textarea#eb_cf_message.is-invalid {
	border-color: #ef4444;
	background: #fff5f5;
}

.eb-cf-char-count {
	text-align: right;
	font-size: 12px;
	color: #9ca3af;
	margin-top: 4px;
}

/* ── Field Logic Notice ────────────────────── */
.eb-cf-logic-notice {
	margin: 0 0 24px;
}

/* ── Payment Box ──────────────────────────── */
.eb-cf-payment-box {
	margin: 8px 0 20px;
	padding: 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.eb-cf-payment-box h4 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
}

.eb-cf-payment-amount {
	margin: 0 0 10px;
	font-size: 14px;
	color: #1f2937;
}

.eb-cf-payment-hint {
	margin: 0 0 10px;
	font-size: 13px;
	color: #b45309;
}

.eb-cf-payment-method {
	margin-bottom: 0;
}

.eb-cf-payment-method label {
	text-transform: none;
	font-size: 13px;
}

.eb-cf-payment-method-label {
	margin: 0;
	font-size: 14px;
	color: #1f2937;
}

.eb-cf-logic-title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 12px;
}

.eb-cf-logic-choice {
	position: relative;
	font-size: 20px;
	font-weight: 700;
	color: #111827;
	padding-left: 34px;
	margin: 0 0 14px;
}

.eb-cf-logic-choice::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 20px;
	height: 20px;
	border: 2px solid #4b7a9a;
	border-radius: 50%;
	box-sizing: border-box;
	background: radial-gradient(circle at 50% 50%, #4b7a9a 0 6px, transparent 7px);
}

.eb-cf-logic-box {
	background: #e6e3a3;
	border: 1px solid #d7d48d;
	border-radius: 2px;
	padding: 28px 30px;
	font-size: 22px;
	line-height: 1.7;
	color: #111827;
}

@media (max-width: 900px) {
	.eb-cf-logic-box {
		font-size: 18px;
		padding: 18px 20px;
	}

	.eb-cf-logic-choice {
		font-size: 17px;
	}
}

/* ── Submit Row ────────────────────────────── */
.eb-cf-submit-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 8px;
}

.eb-cf-privacy-note {
	font-size: 12px;
	color: #9ca3af;
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	flex: 1;
}

.eb-cf-consent-row {
	margin: 4px 0 6px;
}

.eb-cf-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: #374151;
}

.eb-cf-consent-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: #6366f1;
	flex-shrink: 0;
}

.eb-cf-consent-label a {
	color: #4338ca;
	text-decoration: underline;
}

.eb-cf-consent-label.is-invalid {
	color: #b91c1c;
}

.eb-cf-consent-label input[type="checkbox"].is-invalid {
	outline: 2px solid rgba(239, 68, 68, 0.45);
	outline-offset: 2px;
}

.eb-cf-submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 600;
	padding: 14px 32px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
	white-space: nowrap;
}

.eb-cf-submit-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.eb-cf-submit-btn:active:not(:disabled) {
	transform: translateY(0);
}

.eb-cf-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.eb-cf-submit-btn svg {
	width: 17px;
	height: 17px;
}

.eb-cf-btn-spinner svg {
	animation: eb-cf-spin 0.8s linear infinite;
}

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

@media (max-width: 480px) {
	.eb-cf-submit-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.eb-cf-submit-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ── Error Box ─────────────────────────────── */
.eb-cf-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 16px;
}

/* ── Success ───────────────────────────────── */
.eb-cf-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 64px 32px;
	background: #ffffff;
	border: 1px solid #e8ecf0;
	border-radius: 16px;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
}

.eb-cf-success-icon {
	width: 80px;
	height: 80px;
	margin-bottom: 24px;
}

.eb-cf-success-icon svg {
	width: 80px;
	height: 80px;
}

.eb-cf-success-icon circle {
	stroke: #10b981;
	stroke-width: 2;
	stroke-dasharray: 166;
	stroke-dashoffset: 166;
	stroke-miterlimit: 10;
	fill: none;
	animation: eb-cf-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.eb-cf-success-icon path {
	transform-origin: 50% 50%;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	stroke: #10b981;
	stroke-width: 2;
	fill: none;
	animation: eb-cf-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes eb-cf-stroke {
	100% {
		stroke-dashoffset: 0;
	}
}

.eb-cf-success h3 {
	font-size: 26px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 12px;
}

.eb-cf-success p {
	font-size: 16px;
	color: #6b7280;
	max-width: 420px;
	line-height: 1.6;
	margin: 0;
}

/* ── Shake Animation ───────────────────────── */
@keyframes eb-cf-shake {

	0%,
	100% {
		transform: translateX(0);
	}

	20% {
		transform: translateX(-6px);
	}

	40% {
		transform: translateX(6px);
	}

	60% {
		transform: translateX(-4px);
	}

	80% {
		transform: translateX(4px);
	}
}

.shake {
	animation: eb-cf-shake 0.5s ease;
}
