/**
 * Mahayog Diksha Request Form — frontend styles
 * Copyright (c) 2026 BYNECT TECHNOLOGIES — https://bynect.com
 */

.mdf-form-wrap {
	max-width: 640px;
	margin: 0 auto;
	padding: 24px 16px;
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.mdf-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mdf-field {
	margin-bottom: 28px;
}

.mdf-row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 28px;
}

.mdf-field-half {
	flex: 1 1 calc(50% - 12px);
	min-width: 200px;
	margin-bottom: 0;
}

.mdf-row .mdf-field-half {
	margin-bottom: 0;
}

.mdf-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #f15a24;
	line-height: 1.3;
}

.mdf-input {
	width: 100%;
	box-sizing: border-box;
	border: none;
	border-bottom: 1px solid #cccccc;
	background: transparent;
	padding: 10px 0;
	font-size: 15px;
	color: #333;
	outline: none;
	transition: border-color 0.2s ease;
}

.mdf-input::placeholder {
	color: #aaaaaa;
}

.mdf-input:focus {
	border-bottom-color: #f15a24;
}

.mdf-input-date {
	cursor: pointer;
	color: #333;
}

.mdf-input-date::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.7;
}

.mdf-input-date::-webkit-calendar-picker-indicator:hover {
	opacity: 1;
}

.mdf-textarea {
	resize: vertical;
	min-height: 120px;
	border: 1px solid #cccccc;
	border-radius: 0;
	padding: 12px;
}

.mdf-textarea:focus {
	border-color: #f15a24;
}

.mdf-message {
	margin-bottom: 16px;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
}

.mdf-message.mdf-success {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.mdf-message.mdf-error {
	background: #ffebee;
	color: #c62828;
	border: 1px solid #ef9a9a;
}

.mdf-submit {
	width: 100%;
	margin-top: 8px;
	padding: 16px 24px;
	background: #f15a24;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.mdf-submit:hover:not(:disabled) {
	background: #d94e1f;
}

.mdf-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.mdf-credit {
	margin-top: 24px;
	text-align: center;
	font-size: 11px;
	color: #999;
}

.mdf-credit a {
	color: #999;
	text-decoration: none;
}

.mdf-credit a:hover {
	color: #f15a24;
	text-decoration: underline;
}

@media (max-width: 520px) {
	.mdf-row {
		flex-direction: column;
		gap: 0;
		margin-bottom: 0;
	}

	.mdf-field-half {
		flex: 1 1 100%;
		margin-bottom: 28px;
	}
}
