/* =========================================================
   X-PERI-MENTAL CONTACT PAGE
   File: /site/css/general.css
   Purpose:
   - clean contact form layout
   - fix label/input alignment
   - remove double-card / box-over-box look
   ========================================================= */

:root {
	--xpm-black: #080808;
	--xpm-charcoal: #14100d;
	--xpm-cream: #f3e4cb;
	--xpm-cream-light: #fff1d8;
	--xpm-cream-deep: #e7c995;
	--xpm-red: #c51610;
	--xpm-red-bright: #f12b18;
	--xpm-orange: #ff7a18;
	--xpm-text: #111111;
	--xpm-muted: #6f604f;
	--xpm-border: rgba(20, 16, 13, 0.18);
}

/* ---------------------------------------------------------
   PAGE-SPECIFIC WRAPPER
   --------------------------------------------------------- */

body#page_17 #table_content {
	padding: 0 !important;
}

body#page_17 .matchHeight_27,
body#page_17 .matchHeight_31 {
	width: min(1120px, calc(100% - 48px)) !important;
	margin: 0 auto !important;
	padding: 0 !important;
}

/* Hide empty generated PDF module */
body#page_17 #__15 {
	display: none !important;
}

/* ---------------------------------------------------------
   MAIN FORM CARD
   --------------------------------------------------------- */

body#page_17 form.propertyDisplayModule_2_4 {
	position: relative;
	width: 100%;
	margin: 40px auto 0 auto !important;
	padding: 0 48px 30px !important;

	background:
		linear-gradient(135deg, rgba(255, 241, 216, 0.96), rgba(231, 201, 149, 0.86)),
		radial-gradient(circle at top right, rgba(241, 43, 24, 0.10), transparent 35%);

	border: 1px solid rgba(20, 16, 13, 0.14);
	border-radius: 18px 18px 0 0;
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
	overflow: hidden;
}

/* Header strip */
body#page_17 form.propertyDisplayModule_2_4:before {
	content: "CONTACT THE LAB";
	display: block;

	margin: 0 -48px 28px -48px;
	padding: 24px 48px 22px;

	background: linear-gradient(90deg, #080808 0%, #17100c 62%, #3d0f08 100%);
	border-bottom: 4px solid var(--xpm-red);

	color: #fff1d8;
	font-family: Impact, "Arial Black", "Helvetica Neue", Arial, sans-serif;
	font-size: 34px;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Small intro text under heading */
body#page_17 form.propertyDisplayModule_2_4 .form-group:first-of-type:before {
	content: "Questions, tasting ideas, party experiments or sauce feedback? Send us a message.";
	display: block;
	margin: 0 0 24px 0;
	color: var(--xpm-muted);
	font-size: 16px;
	line-height: 1.5;
	font-family: Arial, Helvetica, sans-serif;
}

/* ---------------------------------------------------------
   FORM LAYOUT
   Use simple stacked layout: label above input
   This is more reliable with ERP-generated Bootstrap markup.
   --------------------------------------------------------- */

body#page_17 form.propertyDisplayModule_2_4 .form-group {
	display: block !important;
	margin: 0 0 22px 0 !important;
}

/* Reset Bootstrap column behavior inside this form */
body#page_17 form.propertyDisplayModule_2_4 .form-group > .control-label,
body#page_17 form.propertyDisplayModule_2_4 .form-group > .entityPropertyValueEdit,
body#page_17 form.propertyDisplayModule_2_4 .form-group > [class*="col-"] {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Labels */
body#page_17 form.propertyDisplayModule_2_4 label.control-label {
	display: block !important;
	margin: 0 0 8px 0 !important;
	padding: 0 !important;

	color: var(--xpm-text);
	font-family: Impact, "Arial Black", "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.055em;
	text-align: left !important;
	text-transform: uppercase;
}

/* Hide technical ERP info */
body#page_17 form.propertyDisplayModule_2_4 .property-info {
	display: none !important;
}

/* Value wrapper */
body#page_17 form.propertyDisplayModule_2_4 .entityPropertyValueEdit {
	margin: 0 !important;
	padding: 0 !important;
}

/* Inputs */
body#page_17 form.propertyDisplayModule_2_4 input.form-control,
body#page_17 form.propertyDisplayModule_2_4 textarea.form-control {
	width: 100% !important;
	display: block !important;

	background: rgba(255, 255, 255, 0.94) !important;
	border: 2px solid rgba(20, 16, 13, 0.16) !important;
	border-radius: 10px !important;

	color: var(--xpm-text) !important;
	font-size: 16px !important;
	line-height: 1.4 !important;

	box-shadow:
		inset 0 1px 2px rgba(0, 0, 0, 0.05),
		0 1px 0 rgba(255, 255, 255, 0.45) !important;

	transition:
		border-color 160ms ease,
		box-shadow 160ms ease,
		background-color 160ms ease;
}

body#page_17 form.propertyDisplayModule_2_4 input.form-control {
	height: 50px !important;
	padding: 10px 14px !important;
}

body#page_17 form.propertyDisplayModule_2_4 textarea.form-control {
	min-height: 160px !important;
	padding: 14px !important;
	resize: vertical;
}

/* Focus state */
body#page_17 form.propertyDisplayModule_2_4 input.form-control:focus,
body#page_17 form.propertyDisplayModule_2_4 textarea.form-control:focus {
	background: #ffffff !important;
	border-color: var(--xpm-orange) !important;
	box-shadow:
		0 0 0 4px rgba(255, 122, 24, 0.16),
		inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
	outline: none !important;
}

/* Placeholders */
body#page_17 form.propertyDisplayModule_2_4 input::placeholder,
body#page_17 form.propertyDisplayModule_2_4 textarea::placeholder {
	color: rgba(20, 16, 13, 0.48) !important;
}

/* Email double input spacing */
body#page_17 form.propertyDisplayModule_2_4 .entityPropertyValueEdit_emailaddress br {
	display: none !important;
}

body#page_17 form.propertyDisplayModule_2_4 .entityPropertyValueEdit_emailaddress input + input {
	margin-top: 12px !important;
}

/* ---------------------------------------------------------
   BUTTON MODULE
   Keep same width, but DO NOT style as a second card
   --------------------------------------------------------- */

body#page_17 #__13 {
	width: min(1120px, calc(100% - 48px)) !important;
	margin: 0 auto 56px auto !important;
	padding: 0 48px 34px !important;

	background:
		linear-gradient(135deg, rgba(255, 241, 216, 0.96), rgba(231, 201, 149, 0.86));
	border: 1px solid rgba(20, 16, 13, 0.14);
	border-top: 0 !important;
	border-radius: 0 0 18px 18px;
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
}

/* Button */
body#page_17 input.propDisplayFormButton {
	min-height: 56px;
	padding: 0 34px !important;

	background: var(--xpm-red) !important;
	border: 2px solid var(--xpm-red) !important;
	border-radius: 0 !important;

	color: #fff1d8 !important;
	font-family: Impact, "Arial Black", "Helvetica Neue", Arial, sans-serif;
	font-size: 18px !important;
	font-weight: 700;
	letter-spacing: 0.075em;
	text-transform: uppercase;

	box-shadow: 0 12px 28px rgba(197, 22, 16, 0.28);
	transition:
		transform 160ms ease,
		background-color 160ms ease,
		border-color 160ms ease,
		box-shadow 160ms ease;
}

body#page_17 input.propDisplayFormButton:hover {
	background: var(--xpm-red-bright) !important;
	border-color: var(--xpm-red-bright) !important;
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(197, 22, 16, 0.34);
}

/* ---------------------------------------------------------
   DESIGN MODE SAFETY
   --------------------------------------------------------- */

body#page_17 .editFlow,
body#page_17 .zoneHeader,
body#page_17 .insert-menu {
	position: relative;
	z-index: 5;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 820px) {
	body#page_17 .matchHeight_27,
	body#page_17 .matchHeight_31,
	body#page_17 #__13 {
		width: calc(100% - 28px) !important;
	}

	body#page_17 form.propertyDisplayModule_2_4 {
		padding: 0 24px 24px !important;
	}

	body#page_17 form.propertyDisplayModule_2_4:before {
		margin-left: -24px;
		margin-right: -24px;
		padding: 22px 24px 18px;
		font-size: 28px;
	}

	body#page_17 #__13 {
		padding: 0 24px 28px !important;
	}

	body#page_17 input.propDisplayFormButton {
		width: 100% !important;
	}
}