/* ============================================================
   Michael's Take Contact Form
   Matches comment form styles — compact size, 15px type
   Font: Lora, Georgia, serif | 15px | line-height 1.55 | letter-spacing 0.2px
   ============================================================ */

.ms-cf-wrapper {
	max-width: 560px;
	margin: 0 auto;
	padding: 12px 0 28px;
	font-family: Lora, Georgia, serif;
	font-size: 15px;
	line-height: 1.55;
	letter-spacing: 0.2px;
	color: #000000;
	box-sizing: border-box;
}

.ms-cf-wrapper *,
.ms-cf-wrapper *::before,
.ms-cf-wrapper *::after {
	box-sizing: border-box;
}

.ms-cf-card {
	background: #ffffff;
	border: 1px solid #e9e8ff;
	border-radius: 10px;
	padding: 24px 26px;
	box-shadow: 0 3px 18px rgba(37, 37, 46, 0.07);
}

.ms-cf-title {
	margin: 0 0 6px;
	font-family: Lora, Georgia, serif;
	font-size: 1.35rem;
	font-weight: 700;
	color: #29294b;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.ms-cf-subtitle {
	margin: 0 0 18px;
	font-family: Lora, Georgia, serif;
	font-size: 15px;
	color: #5a5a6e;
	line-height: 1.55;
	letter-spacing: 0.2px;
}

/* Messages */
.ms-cf-messages {
	margin-bottom: 16px;
	padding: 11px 14px;
	border-radius: 8px;
	font-family: Lora, Georgia, serif;
	font-size: 15px;
	line-height: 1.55;
	letter-spacing: 0.2px;
}

.ms-cf-messages.success {
	background: #e8f8f0;
	border: 1px solid #13b16f;
	color: #0d7a4c;
}

.ms-cf-messages.error {
	background: #fef2f2;
	border: 1px solid #ef4444;
	color: #b91c1c;
}

/* Form layout — full width, compact spacing */
.ms-cf-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ms-cf-row {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ms-cf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.ms-cf-field label {
	font-family: Lora, Georgia, serif;
	font-size: 15px;
	font-weight: 600;
	color: #000000;
	letter-spacing: 0.2px;
	line-height: 1.55;
}

.ms-cf-field label .required {
	color: #13b16f;
	font-weight: 700;
}

/* Keep 15px type — slightly tighter padding */
.ms-cf-field input[type="text"],
.ms-cf-field input[type="email"],
.ms-cf-field textarea {
	width: 100%;
	padding: 10px 12px;
	font-family: Lora, Georgia, serif !important;
	font-size: 15px !important;
	line-height: 1.55 !important;
	letter-spacing: 0.2px !important;
	color: #000000 !important;
	background: #ffffff;
	border: 1px solid #d0d0d8;
	border-radius: 7px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ms-cf-field input::placeholder,
.ms-cf-field textarea::placeholder {
	color: #9a9ab0;
	opacity: 1;
	font-family: Lora, Georgia, serif;
	font-size: 15px;
	letter-spacing: 0.2px;
}

.ms-cf-field input:hover,
.ms-cf-field textarea:hover {
	border-color: #b0b0bc;
}

.ms-cf-field input:focus,
.ms-cf-field textarea:focus {
	border-color: #13b16f;
	box-shadow: 0 0 0 3px rgba(19, 177, 111, 0.15);
}

.ms-cf-field textarea {
	resize: vertical;
	min-height: 110px;
	line-height: 1.55 !important;
	font-size: 15px !important;
}

/* reCAPTCHA */
.ms-cf-recaptcha {
	margin-top: 2px;
}

.ms-cf-recaptcha .g-recaptcha {
	transform-origin: left top;
}

/* Submit button — GREEN, full width, compact */
.ms-cf-actions {
	margin-top: 4px;
}

.ms-cf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 12px 24px;
	font-family: Lora, Georgia, serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.2px;
	color: #ffffff;
	background: #13b16f;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 3px 12px rgba(19, 177, 111, 0.3);
}

.ms-cf-submit:hover:not(:disabled) {
	background: #0f9a5e;
	box-shadow: 0 5px 14px rgba(19, 177, 111, 0.38);
	transform: translateY(-1px);
}

.ms-cf-submit:active:not(:disabled) {
	transform: translateY(0);
	background: #0d8652;
}

.ms-cf-submit:disabled {
	opacity: 0.75;
	cursor: not-allowed;
}

/* Spinner */
.ms-cf-spinner {
	width: 16px;
	height: 16px;
	border: 2.5px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: ms-cf-spin 0.7s linear infinite;
}

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

/* Responsive */
@media (max-width: 640px) {
	.ms-cf-wrapper {
		max-width: 100%;
	}

	.ms-cf-card {
		padding: 20px 18px;
	}

	.ms-cf-title {
		font-size: 1.25rem;
	}

	.ms-cf-recaptcha .g-recaptcha {
		transform: scale(0.9);
	}
}
