/* FB Theme Parts — Contact Form 7 styling for the dark FB theme.
   Scoped to .wpcf7 so nothing else on the site is touched. */

.wpcf7 {
	--fbf-card: #1C2130;
	--fbf-field: #121622;
	--fbf-field-hover: #151a28;
	--fbf-border: rgba(255, 255, 255, 0.10);
	--fbf-border-strong: rgba(255, 255, 255, 0.18);
	--fbf-text: #F3F5FA;
	--fbf-body: #AEB6C9;
	--fbf-muted: #8A93A8;
	--fbf-accent: #6C5CE7;
	--fbf-accent-2: #FF2D75;
	--fbf-ok: #34D399;
	--fbf-bad: #FF6B8B;
	--fbf-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

.wpcf7 form.wpcf7-form {
	background: var(--fbf-card);
	border: 1px solid var(--fbf-border);
	border-radius: 14px;
	padding: 28px 28px 24px;
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
	color: var(--fbf-body);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wpcf7 form.wpcf7-form p { margin: 0 0 18px; }
.wpcf7 form.wpcf7-form p:last-of-type { margin-bottom: 0; }

/* Labels */
.wpcf7 form.wpcf7-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--fbf-text);
	letter-spacing: 0.01em;
}
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 8px; }

/* Text fields, select, textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 12px 14px;
	background: var(--fbf-field);
	border: 1px solid var(--fbf-border);
	border-radius: 10px;
	color: var(--fbf-text);
	font: 400 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: var(--fbf-muted); opacity: 1; }

.wpcf7 input[type="text"]:hover,
.wpcf7 input[type="email"]:hover,
.wpcf7 input[type="tel"]:hover,
.wpcf7 input[type="url"]:hover,
.wpcf7 select:hover,
.wpcf7 textarea:hover { border-color: var(--fbf-border-strong); background: var(--fbf-field-hover); }

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--fbf-accent);
	box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.28);
	background: var(--fbf-field);
}

.wpcf7 textarea { min-height: 150px; resize: vertical; }

/* Select with custom chevron */
.wpcf7 select {
	padding-right: 42px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238A93A8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
}
.wpcf7 select option { background: #121622; color: var(--fbf-text); }

/* Consent / checkbox / acceptance */
.wpcf7 .wpcf7-checkbox,
.wpcf7 .wpcf7-acceptance { display: block; }
.wpcf7 .wpcf7-list-item { display: block; margin: 0; }
.wpcf7 form.wpcf7-form .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--fbf-body);
	cursor: pointer;
}
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--fbf-accent);
	cursor: pointer;
}
.wpcf7 .wpcf7-list-item-label a { color: #A99CFF; }

/* Submit */
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	margin-top: 4px;
	padding: 13px 24px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--fbf-accent) 0%, var(--fbf-accent-2) 100%);
	color: #fff;
	font: 700 15.5px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow: 0 10px 28px -10px rgba(255, 45, 117, 0.55);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, opacity .15s ease;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
	transform: translateY(-1px);
	filter: brightness(1.06);
	box-shadow: 0 14px 32px -10px rgba(255, 45, 117, 0.65);
}
.wpcf7 input[type="submit"]:focus-visible { outline: 2px solid #A99CFF; outline-offset: 3px; }
.wpcf7 input[type="submit"]:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.wpcf7 .wpcf7-spinner { margin: 12px auto 0; display: block; }

/* Validation + response messages */
.wpcf7 .wpcf7-not-valid { border-color: var(--fbf-bad) !important; }
.wpcf7 .wpcf7-not-valid-tip { color: var(--fbf-bad); font-size: 12.5px; margin-top: 6px; }
.wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid var(--fbf-border);
	font-size: 14px;
	line-height: 1.5;
	color: var(--fbf-text);
	background: rgba(255, 255, 255, 0.03);
}
.wpcf7 form.sent .wpcf7-response-output { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .08); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output { border-color: rgba(255, 193, 7, .45); background: rgba(255, 193, 7, .07); }
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-color: rgba(255, 107, 139, .5); background: rgba(255, 107, 139, .08); }

@media (max-width: 767px) {
	.wpcf7 form.wpcf7-form { padding: 20px 18px 18px; border-radius: 12px; }
	.wpcf7 input[type="text"],
	.wpcf7 input[type="email"],
	.wpcf7 select,
	.wpcf7 textarea { font-size: 16px; } /* stops iOS zoom on focus */
}
