/**
 * Daeng WhatsApp Booking Form styles.
 * Scoped under .dwabf-form so it won't leak into the Elementor popup chrome.
 * Matches the reference: grey labels, light input borders, red CTA button.
 */

.dwabf-form {
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	font-family: inherit;
}

.dwabf-form *,
.dwabf-form *::before,
.dwabf-form *::after {
	box-sizing: border-box;
}

/* Honeypot — visually hidden but present in DOM for bots. */
.dwabf-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.dwabf-field {
	margin-bottom: 18px;
	flex: 1 1 0;
	min-width: 0;
}

.dwabf-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
	line-height: 1.2;
}

.dwabf-field input {
	display: block;
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	color: #111827;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.dwabf-field input::placeholder {
	color: #9ca3af;
}

.dwabf-field input:hover {
	border-color: #9ca3af;
}

.dwabf-field input:focus {
	outline: none;
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.dwabf-field input[readonly] {
	background: #f9fafb;
	color: #374151;
	cursor: default;
}

.dwabf-field input[readonly]:hover {
	border-color: #d1d5db;
}

/* Email + Phone side by side, stacks on mobile. */
.dwabf-row {
	display: flex;
	gap: 16px;
}

@media (max-width: 480px) {
	.dwabf-row {
		flex-direction: column;
		gap: 0;
	}
}

.dwabf-message {
	display: none;
	margin-bottom: 14px;
	padding: 10px 14px;
	font-size: 14px;
	border-radius: 6px;
	line-height: 1.4;
}

.dwabf-message.dwabf-error {
	display: block;
	color: #991b1b;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.dwabf-submit {
	display: block;
	width: 100%;
	padding: 15px 20px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: #e11d1d;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	line-height: 1.3;
	transition: background 0.15s ease, transform 0.05s ease;
	-webkit-appearance: none;
	appearance: none;
}

.dwabf-submit:hover {
	background: #c81616;
}

.dwabf-submit:focus-visible {
	outline: 2px solid #7f1d1d;
	outline-offset: 2px;
}

.dwabf-submit:active {
	transform: translateY(1px);
}

.dwabf-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Loading state: swap label text. */
.dwabf-btn-loading {
	display: none;
}

.dwabf-form.dwabf-loading .dwabf-btn-label {
	display: none;
}

.dwabf-form.dwabf-loading .dwabf-btn-loading {
	display: inline;
}
