/* Mailto Contact Form — scoped styles (all classes prefixed mcf- to avoid collisions) */

/*
 * Color variables — reference your theme's actual custom accent variables,
 * with your real brand hex codes hardcoded as the fallback (used only if
 * those variables aren't defined in a given context, e.g. block editor preview).
 */
.mcf-wrapper {
	--mcf-link-color: var(--wp--preset--color--custom-accent-purple, #af00ff);
	--mcf-link-hover-color: var(--wp--preset--color--custom-accent-green-hover, #44f414);
	--mcf-button-bg: var(--wp--preset--color--custom-accent-purple, #af00ff);
	--mcf-button-bg-hover: var(--wp--preset--color--custom-accent-green-hover, #44f414);
	--mcf-button-text: #ffffff;
	--mcf-button-text-hover: #000000;

	max-width: 560px;
	margin: 0 auto;
	font-family: inherit;
	color: inherit;
}

.mcf-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.mcf-field-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.mcf-label {
	font-size: 0.95rem;
	font-weight: 600;
}

.mcf-required {
	color: #c0392b;
}

.mcf-input {
	width: 100%;
	padding: 0.6rem 0.75rem;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}

.mcf-input:focus {
	outline: none;
	border-color: var(--mcf-link-color);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--mcf-link-color) 20%, transparent);
}

.mcf-input.mcf-invalid {
	border-color: #c0392b;
}

.mcf-textarea {
	resize: vertical;
	min-height: 100px;
}

.mcf-char-count {
	font-size: 0.8rem;
	color: #777;
	align-self: flex-end;
}

.mcf-error {
	font-size: 0.82rem;
	color: #c0392b;
}

.mcf-error:empty {
	display: none;
}

.mcf-terms-group {
	flex-direction: row;
	align-items: flex-start;
}

.mcf-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.88rem;
	cursor: pointer;
}

.mcf-checkbox-label input[type="checkbox"] {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.mcf-checkbox-label a {
	color: var(--mcf-link-color);
	text-decoration: underline;
}

.mcf-checkbox-label a:hover {
	color: var(--mcf-link-hover-color);
}

.mcf-warning {
	font-size: 0.85rem;
	color: #8a5a00;
	background: #fff6e0;
	border: 1px solid #ffdf8a;
	border-radius: 6px;
	padding: 0.6rem 0.75rem;
}

.mcf-submit-group {
	margin-top: 0.25rem;
}

.mcf-submit-btn {
	background: var(--mcf-button-bg);
	color: var(--mcf-button-text);
	border: none;
	border-radius: 6px;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.mcf-submit-btn:hover {
	background: var(--mcf-button-bg-hover);
	color: var(--mcf-button-text-hover);
}

.mcf-submit-btn:disabled {
	background: color-mix(in srgb, var(--mcf-button-bg) 50%, #ffffff);
	color: var(--mcf-button-text);
	cursor: not-allowed;
}

/* Send options — hidden until the form validates successfully; shown
   in place of the Send Mail button (see .mcf-submit-btn[hidden] below).
   The [hidden] attribute must win over the flex display below, since
   author CSS otherwise overrides the browser's built-in hidden styling. */
.mcf-submit-btn[hidden],
.mcf-send-options[hidden],
.mcf-copy-panel[hidden] {
	display: none;
}

.mcf-send-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.mcf-option-btn {
	background: var(--mcf-button-bg);
	color: var(--mcf-button-text);
	border: none;
	border-radius: 6px;
	padding: 0.7rem 1.1rem;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	line-height: 1.2;
	transition: background 0.15s ease, color 0.15s ease;
	flex: 1 1 auto;
}

.mcf-option-btn:hover {
	background: var(--mcf-button-bg-hover);
	color: var(--mcf-button-text-hover);
}

.mcf-option-btn-copy {
	background: transparent;
	color: var(--mcf-link-color);
	border: 1px solid var(--mcf-link-color);
}

.mcf-option-btn-copy:hover {
	background: var(--mcf-link-color);
	color: var(--mcf-button-text);
}

/* Copy panel — only appears after "Copy Manually" is clicked. */
.mcf-copy-panel {
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid #333333;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.mcf-copy-instructions {
	margin: 0;
	font-size: 0.82rem;
	color: #999999;
}

.mcf-copy-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: #131313;
	border: 1px solid #333333;
	border-radius: 6px;
	padding: 0.5rem 0.6rem;
}

.mcf-copy-row-message {
	align-items: flex-start;
}

.mcf-copy-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: #999999;
	flex-shrink: 0;
	align-self: flex-start;
	padding-top: 0.1rem;
}

.mcf-copy-value {
	flex: 1;
	font-size: 0.88rem;
	overflow-wrap: anywhere;
	word-break: break-word;
	background: none;
	color: #f0f0f0;
}

.mcf-copy-value-block {
	white-space: pre-wrap;
	font-family: inherit;
	margin: 0;
	max-height: 220px;
	overflow-y: auto;
}

.mcf-copy-btn {
	flex-shrink: 0;
	background: none;
	border: none;
	padding: 0.2rem;
	cursor: pointer;
	color: var(--mcf-link-color);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease;
}

.mcf-copy-btn:hover {
	color: var(--mcf-link-hover-color);
}

.mcf-copy-icon,
.mcf-check-icon {
	width: 18px;
	height: 18px;
}

.mcf-check-icon {
	display: none;
	color: #2e9e4f;
}

.mcf-copy-btn.mcf-copied .mcf-copy-icon {
	display: none;
}

.mcf-copy-btn.mcf-copied .mcf-check-icon {
	display: inline-flex;
}