/**
 * Public Form Styles
 * MVB Luxury CRM — Front-end form styling with glassmorphism.
 */

/* === Form Container === */
.mvb-form-container {
	max-width: 100%;
}

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

/* === Form Row (side-by-side fields) === */
.mvb-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

@media (max-width: 600px) {
	.mvb-form__row {
		grid-template-columns: 1fr;
	}
}

/* === Form Group === */
.mvb-form__group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* === Labels === */
.mvb-form__label {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8A8A8A;
}

.mvb-form__label .required {
	color: #C6A75E;
	margin-left: 2px;
}

/* === Inputs (inherit glass-input from glassmorphism.css) === */
.mvb-form input[type="text"],
.mvb-form input[type="email"],
.mvb-form input[type="tel"],
.mvb-form input[type="number"],
.mvb-form input[type="date"],
.mvb-form select,
.mvb-form textarea {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0;
	color: #F5F5F0;
	padding: 0.875rem 1.25rem;
	font-family: 'Inter', -apple-system, sans-serif;
	font-size: 0.9375rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
	width: 100%;
	box-sizing: border-box;
}

.mvb-form input::placeholder,
.mvb-form textarea::placeholder {
	color: rgba(138, 138, 138, 0.7);
}

.mvb-form input:focus,
.mvb-form select:focus,
.mvb-form textarea:focus {
	border-color: rgba(198, 167, 94, 0.5);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 0 0 1px rgba(198, 167, 94, 0.2);
}

.mvb-form textarea {
	min-height: 120px;
	resize: vertical;
}

.mvb-form select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23C6A75E' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.25rem center;
	padding-right: 3rem;
}

/* === File Upload === */
.mvb-form input[type="file"] {
	background: rgba(255, 255, 255, 0.02);
	border: 1px dashed rgba(255, 255, 255, 0.1);
	padding: 1.5rem;
	color: #8A8A8A;
	font-size: 0.8125rem;
	cursor: pointer;
}

.mvb-form input[type="file"]:hover {
	border-color: rgba(198, 167, 94, 0.3);
}

/* === GDPR Checkbox === */
.mvb-form__gdpr {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.mvb-form__gdpr input[type="checkbox"] {
	appearance: none;
	width: 18px;
	height: 18px;
	min-width: 18px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.04);
	border-radius: 0;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 2px;
}

.mvb-form__gdpr input[type="checkbox"]:checked {
	background: #C6A75E;
	border-color: #C6A75E;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' fill='none'%3E%3Cpath d='M1 5.5L4 8.5L11 1.5' stroke='%230A0A0A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

.mvb-form__gdpr label {
	color: #8A8A8A;
	font-size: 0.75rem;
	line-height: 1.5;
}

.mvb-form__gdpr a {
	color: #C6A75E;
}

/* === Submit Button === */
.mvb-form__submit {
	background: #C6A75E;
	color: #0A0A0A;
	border: none;
	padding: 1.125rem 2.5rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	width: 100%;
}

.mvb-form__submit:hover {
	background: #D4B96E;
}

.mvb-form__submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.mvb-form__submit--loading {
	position: relative;
	color: transparent;
}

.mvb-form__submit--loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(10, 10, 10, 0.3);
	border-top-color: #0A0A0A;
	border-radius: 50%;
	animation: mvb-spin 0.6s linear infinite;
}

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

/* === Validation Errors === */
.mvb-form__error {
	color: #E57373;
	font-size: 0.75rem;
	margin-top: 0.25rem;
}

.mvb-form input.has-error,
.mvb-form select.has-error,
.mvb-form textarea.has-error {
	border-color: rgba(229, 115, 115, 0.5);
}

/* === Success/Error Messages === */
.mvb-form__message {
	padding: 1.25rem 1.5rem;
	font-size: 0.875rem;
	line-height: 1.6;
	text-align: center;
}

.mvb-form__message--success {
	background: rgba(198, 167, 94, 0.1);
	border: 1px solid rgba(198, 167, 94, 0.25);
	color: #C6A75E;
}

.mvb-form__message--error {
	background: rgba(229, 115, 115, 0.1);
	border: 1px solid rgba(229, 115, 115, 0.25);
	color: #E57373;
}

/* === Funnel Form (generated by funnel generator + funnel-inquiry-form pattern) === */

.mvb-funnel-form {
	width: 100%;
	box-sizing: border-box;
}

/* Ensure glass-input is full-width inside funnel forms */
.mvb-funnel-form .glass-input,
.mvb-funnel-form input[type="text"],
.mvb-funnel-form input[type="email"],
.mvb-funnel-form input[type="tel"],
.mvb-funnel-form input[type="number"],
.mvb-funnel-form select,
.mvb-funnel-form textarea {
	width: 100%;
	box-sizing: border-box;
}

/* Submit button hover state (inline styles cover default; this covers :hover and :disabled) */
.mvb-funnel-submit:hover {
	background: #d4b870 !important;
}

.mvb-funnel-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed !important;
}

/* Responsive: stack two-column grids on mobile */
@media (max-width: 600px) {
	.mvb-funnel-form [style*="grid-template-columns:1fr 1fr"] {
		display: flex !important;
		flex-direction: column;
	}
}

/* === Honeypot (keep hidden from view) === */
.mvb-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}
