/* WingManWp BBMM — A-la-Carte request forms (DM Reply / Video Call / Custom Video)
   Front-end styling to make the shortcode forms readable & user friendly. */

.wmwp-alacarte-form {
	max-width: 560px;
	margin: 0 auto 24px;
	padding: 32px;
	background: #ffffff;
	border: 1px solid #eceef1;
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
	box-sizing: border-box;
}

.wmwp-alacarte-form * {
	box-sizing: border-box;
}

/* Header: icon badge + title + subtitle */
.wmwp-alacarte-header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f1f2f4;
}

.wmwp-alacarte-header__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	font-size: 22px;
	background: linear-gradient(135deg, #eef2ff, #e0e7ff);
	border-radius: 12px;
}

.wmwp-alacarte-form h3 {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
}

.wmwp-alacarte-subtitle {
	margin: 0;
	font-size: 13.5px;
	color: #6b7280;
	line-height: 1.5;
}

.wmwp-alacarte-form > p {
	margin: 0 0 16px;
	color: #4b5563;
}

.wmwp-alacarte-price {
	font-size: 16px;
	font-weight: 600;
}

.wmwp-alacarte-label {
	display: block;
	margin: 0 0 20px;
	font-weight: 600;
	font-size: 13.5px;
	color: #374151;
}

/* Duration + price side-by-side on wider screens */
.wmwp-alacarte-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.wmwp-alacarte-row .wmwp-alacarte-label {
	margin-bottom: 0;
}

.wmwp-alacarte-input,
.wmwp-alacarte-select,
.wmwp-alacarte-textarea {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 12px 14px;
	font-size: 14.5px;
	font-weight: 400;
	color: #111827;
	background: #f9fafb;
	border: 1px solid #e0e3e8;
	border-radius: 8px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wmwp-alacarte-input::placeholder,
.wmwp-alacarte-textarea::placeholder {
	color: #a1a8b3;
}

.wmwp-alacarte-textarea {
	resize: vertical;
	min-height: 110px;
	line-height: 1.5;
}

.wmwp-alacarte-input:focus,
.wmwp-alacarte-select:focus,
.wmwp-alacarte-textarea:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
	background: #ffffff;
}

/* Invalid state, toggled by JS on submit */
.wmwp-alacarte-input.wmwp-alacarte-invalid,
.wmwp-alacarte-select.wmwp-alacarte-invalid,
.wmwp-alacarte-textarea.wmwp-alacarte-invalid {
	border-color: #dc2626;
	background: #fef2f2;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.wmwp-alacarte-field-error {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	font-weight: 500;
	color: #dc2626;
}

.wmwp-alacarte-char-count {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 400;
	color: #9ca3af;
	text-align: right;
}

.wmwp-alacarte-price-display {
	margin: 0 0 16px;
	font-size: 14px;
	color: #1f2937;
}

.wmwp-alacarte-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 4px;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	background: linear-gradient(135deg, #4f46e5, #4338ca);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.wmwp-alacarte-submit:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.32);
}

.wmwp-alacarte-submit__icon {
	font-size: 13px;
}

.wmwp-alacarte-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.wmwp-alacarte-form .description {
	margin: 12px 0 0;
	font-size: 12.5px;
	color: #6b7280;
	line-height: 1.5;
}

.wmwp-alacarte-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 16px 0 0;
	padding: 12px 14px;
	font-size: 12.5px;
	color: #3730a3;
	background: #eef2ff;
	border-radius: 8px;
	line-height: 1.5;
}

.wmwp-alacarte-response {
	margin-top: 14px;
}

.wmwp-alacarte-response p {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13.5px;
}

.wmwp-alacarte-response p[style*="008800"],
.wmwp-alacarte-response .wmwp-alacarte-success {
	background: #ecfdf3 !important;
	color: #027a48 !important;
}

.wmwp-alacarte-response p[style*="cc0000"],
.wmwp-alacarte-response .wmwp-alacarte-error {
	background: #fef3f2 !important;
	color: #b42318 !important;
}

/* Video Call: duration tiles + time-of-day / day pills */
.wmwp-vc-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
	padding: 6px;
	border-radius: 12px;
	transition: box-shadow 0.15s ease;
}

.wmwp-vc-options.wmwp-alacarte-invalid {
	box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.35);
}

.wmwp-vc-option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 88px;
	padding: 12px 16px;
	font-weight: 600;
	background: #f9fafb;
	border: 1.5px solid #e0e3e8;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.wmwp-vc-option input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.wmwp-vc-option__title {
	font-size: 14.5px;
	color: #111827;
}

.wmwp-vc-option__price {
	font-size: 12.5px;
	font-weight: 500;
	color: #6b7280;
}

.wmwp-vc-option:has(input:checked),
.wmwp-vc-option.wmwp-vc-checked {
	border-color: #4f46e5;
	background: #eef2ff;
}

.wmwp-vc-option:has(input:checked) .wmwp-vc-option__price,
.wmwp-vc-option.wmwp-vc-checked .wmwp-vc-option__price {
	color: #4338ca;
}

.wmwp-vc-options--pills {
	gap: 8px;
}

.wmwp-vc-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 9px 16px;
	font-size: 13.5px;
	font-weight: 500;
	color: #374151;
	background: #f9fafb;
	border: 1.5px solid #e0e3e8;
	border-radius: 999px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wmwp-vc-pill input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.wmwp-vc-pill:has(input:checked),
.wmwp-vc-pill.wmwp-vc-checked {
	border-color: #4f46e5;
	background: #4f46e5;
	color: #ffffff;
}

.wmwp-vc-card-element {
	margin-top: 8px;
	padding: 13px 14px;
	background: #f9fafb;
	border: 1px solid #e0e3e8;
	border-radius: 8px;
}

.wmwp-vc-card-element.StripeElement--focus {
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
	background: #ffffff;
}

.wmwp-vc-card-element.StripeElement--invalid {
	border-color: #dc2626;
}

@media ( max-width: 480px ) {
	.wmwp-alacarte-form {
		padding: 20px;
	}

	.wmwp-alacarte-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}
