/**
 * Public Styles for My Contact Forms
 */

/* Form Wrapper */
.mcf-form-wrapper {
	max-width: 600px;
	margin: 30px 0;
	padding: 0;
}

/* Form Styles */
.mcf-form {
	background: #ffffff;
	padding: 30px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Form Group */
.mcf-form-group {
	margin-bottom: 20px;
}

.mcf-form-group:last-of-type {
	margin-bottom: 25px;
}

/* Form Label */
.mcf-form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

/* Required Indicator */
.mcf-required {
	color: #dc3545;
	font-weight: bold;
	margin-left: 4px;
}

/* Form Input and Textarea */
.mcf-form-input,
.mcf-form-textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	background: #ffffff;
	box-sizing: border-box;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.mcf-form-input:focus,
.mcf-form-textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.mcf-form-input:invalid {
	border-color: #dc3545;
}

.mcf-form-textarea {
	resize: vertical;
	min-height: 120px;
}

/* Submit Button */
.mcf-form-submit {
	display: inline-block !important;
	padding: 12px 30px !important;
	background: #0e9436 !important;
	color: white !important;
	border: none !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: background 0.3s, transform 0.2s !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

.mcf-form-submit:hover:not(:disabled) {
	background: #44f05b6e;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 170, 91, 0.3);
}

.mcf-form-submit:active:not(:disabled) {
	transform: translateY(0);
}

.mcf-form-submit:disabled {
	background: #cccccc;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Form Messages */
.mcf-form-message {
	margin-top: 15px;
	padding: 15px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mcf-message-success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.mcf-message-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
	.mcf-form {
		padding: 20px;
	}

	.mcf-form-input,
	.mcf-form-textarea {
		padding: 10px;
		font-size: 16px; /* Prevents zoom on iOS */
	}

	.mcf-form-submit {
		width: 100%;
		padding: 14px 20px;
	}
}

@media (max-width: 480px) {
	.mcf-form {
		padding: 15px;
		border-radius: 4px;
	}

	.mcf-form-label {
		font-size: 13px;
	}

	.mcf-form-input,
	.mcf-form-textarea {
		font-size: 16px;
		padding: 10px;
	}

	.mcf-form-submit {
		font-size: 13px;
		padding: 10px 15px;
	}
}

/* Print Styles */
@media print {
	.mcf-form-wrapper {
		display: none;
	}
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	.mcf-form {
		background: #2a2a2a;
		border-color: #444;
	}

	.mcf-form-label {
		color: #e0e0e0;
	}

	.mcf-form-input,
	.mcf-form-textarea {
		background: #1e1e1e;
		border-color: #444;
		color: #e0e0e0;
	}

	.mcf-form-input:focus,
	.mcf-form-textarea:focus {
		border-color: #0073aa;
		box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
	}

	.mcf-message-success {
		background: #1d3f1f;
		border-color: #2d5a2d;
		color: #9ddb5f;
	}

	.mcf-message-error {
		background: #3f1d1d;
		border-color: #5a2d2d;
		color: #ff9999;
	}
}

/* ============================================
   NEWSLETTER FORM - MODERN DESIGN
   ============================================ */

.mcf-modern-newsletter {
	max-width: 500px !important;
	margin: 0 auto !important;
}

.mcf-newsletter-card {
	background: #ffffff !important;
	border-radius: 16px !important;
	padding: 40px !important;
	box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
}

.mcf-newsletter-header {
	text-align: center !important;
	margin-bottom: 30px !important;
}

.mcf-newsletter-icon {
	width: 48px !important;
	height: 48px !important;
	color: #4f46e5 !important;
	margin-bottom: 16px !important;
}

.mcf-newsletter-title {
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #1f2937 !important;
	margin: 0 0 8px 0 !important;
}

.mcf-newsletter-subtitle {
	font-size: 14px !important;
	color: #6b7280 !important;
	margin: 0 !important;
}

.mcf-newsletter-grid {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 16px !important;
	margin-bottom: 20px !important;
}

.mcf-newsletter-form .mcf-form-label {
	display: block !important;
	margin-bottom: 6px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #374151 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

.mcf-newsletter-form .mcf-form-input {
	width: 100% !important;
	padding: 12px 16px !important;
	font-size: 15px !important;
	border: 2px solid #e5e7eb !important;
	border-radius: 10px !important;
	background: #f9fafb !important;
	box-sizing: border-box !important;
	transition: all 0.2s ease !important;
}

.mcf-newsletter-form .mcf-form-input:hover {
	border-color: #d1d5db !important;
}

.mcf-newsletter-form .mcf-form-group {
	margin-bottom: 0 !important;
}

.mcf-newsletter-form .mcf-form-input:focus {
	outline: none !important;
	border-color: #4f46e5 !important;
	background: #ffffff !important;
}

.mcf-newsletter-submit {
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	padding: 14px 24px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	background: #4f46e5 !important;
	border: none !important;
	border-radius: 10px !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
}

.mcf-newsletter-submit:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5) !important;
}

.mcf-newsletter-submit:active {
	transform: translateY(0) !important;
}

.mcf-newsletter-submit:disabled {
	opacity: 0.7 !important;
	cursor: not-allowed !important;
	transform: none !important;
}

.mcf-newsletter-message {
	margin-top: 16px !important;
	padding: 12px 16px !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-align: center !important;
}

.mcf-btn-icon {
	width: 20px !important;
	height: 20px !important;
	flex-shrink: 0 !important;
}

.mcf-newsletter-privacy {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	margin-top: 20px !important;
	font-size: 12px !important;
	color: #9ca3af !important;
	text-align: center !important;
}

.mcf-privacy-icon {
	width: 14px !important;
	height: 14px !important;
	flex-shrink: 0 !important;
}

/* ============================================
   NEWSLETTER FORM BUILDER STYLES
   ============================================ */

.mcf-newsletter-form-builder {
	width: 100% !important;
	max-width: 500px !important;
	margin: 0 auto !important;
	padding: 30px !important;
	background: #ffffff !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.mcf-newsletter-form-builder .mcf-form-description {
	font-size: 14px !important;
	color: #6b7280 !important;
	margin-bottom: 20px !important;
	line-height: 1.5 !important;
}

.mcf-newsletter-form-builder .mcf-form-group {
	margin-bottom: 20px !important;
}

.mcf-newsletter-form-builder label {
	display: block !important;
	margin-bottom: 8px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #374151 !important;
}

.mcf-newsletter-form-builder label .required {
	color: #dc3545 !important;
	margin-left: 4px !important;
}

.mcf-newsletter-form-builder input[type="text"],
.mcf-newsletter-form-builder input[type="email"],
.mcf-newsletter-form-builder input[type="tel"],
.mcf-newsletter-form-builder input[type="url"],
.mcf-newsletter-form-builder textarea {
	width: 100% !important;
	padding: 12px 16px !important;
	font-size: 15px !important;
	font-family: inherit !important;
	border: 2px solid #e5e7eb !important;
	border-radius: 8px !important;
	background: #f9fafb !important;
	box-sizing: border-box !important;
	transition: all 0.2s ease !important;
}

.mcf-newsletter-form-builder input[type="text"]:hover,
.mcf-newsletter-form-builder input[type="email"]:hover,
.mcf-newsletter-form-builder input[type="tel"]:hover,
.mcf-newsletter-form-builder input[type="url"]:hover,
.mcf-newsletter-form-builder textarea:hover {
	border-color: #d1d5db !important;
}

.mcf-newsletter-form-builder input[type="text"]:focus,
.mcf-newsletter-form-builder input[type="email"]:focus,
.mcf-newsletter-form-builder input[type="tel"]:focus,
.mcf-newsletter-form-builder input[type="url"]:focus,
.mcf-newsletter-form-builder textarea:focus {
	outline: none !important;
	border-color: #4f46e5 !important;
	background: #ffffff !important;
}

.mcf-newsletter-form-builder textarea {
	resize: vertical !important;
	min-height: 100px !important;
}

.mcf-newsletter-form-builder .mcf-submit-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	padding: 14px 24px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	background: #0e9436 !important;
	border: none !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 4px 14px rgba(70, 229, 142, 0.4) !important;
}

.mcf-newsletter-form-builder .mcf-submit-btn:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5) !important;
	background: #4338ca !important;
}

.mcf-newsletter-form-builder .mcf-submit-btn:active {
	transform: translateY(0) !important;
}

.mcf-newsletter-form-builder .mcf-submit-btn:disabled {
	opacity: 0.7 !important;
	cursor: not-allowed !important;
	transform: none !important;
}

.mcf-newsletter-form-builder .mcf-form-message {
	margin-top: 16px !important;
	padding: 12px 16px !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-align: center !important;
}

@media (max-width: 480px) {
	.mcf-newsletter-grid {
		grid-template-columns: 1fr !important;
	}
	.mcf-newsletter-card {
		padding: 24px !important;
	}
}
