/* ==========================================================================
   Enquiry Widget — Front-end Styles
   ========================================================================== */

/* ---------- Widget wrapper ---------- */
.abx-enq-widget {
	font-family: inherit;
	max-width: 560px;
}

/* ---------- Card ---------- */
.abx-enq-card {
	position: relative;
	background: #ffffff;
	border: 1px solid #ece7df;
	border-radius: 18px;
	padding: 24px 28px 24px;
	box-shadow: 0 4px 24px rgba( 0, 0, 0, 0.08 );
	min-height: 440px;
	display: flex;
	flex-direction: column;
}

/* ---------- Top bar & Close button ---------- */
.abx-enq-top-bar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	width: 100%;
	min-height: 36px;
	margin-bottom: 20px;
}

.abx-enq-top-bar:empty {
	display: none;
	margin-bottom: 0;
	min-height: 0;
}

.abx-enq-close-btn {
	position: static !important;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f4efe6;
	color: #111111;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	margin-left: auto;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.abx-enq-close-btn,
.abx-enq-close-btn:focus,
.abx-enq-close-btn:active,
.abx-enq-close-btn:focus-visible {
	outline: none !important;
	border: none !important;
	box-shadow: none !important;
}

.abx-enq-close-btn:hover {
	background: #eae3d7;
	color: #000000;
	transform: scale(1.04);
}

.abx-enq-close-btn:active {
	transform: scale(0.96);
}

.abx-enq-close-svg {
	width: 15px;
	height: 15px;
	stroke: currentColor;
	stroke-width: 2.3;
	display: block;
}

.abx-enq-close-custom-img {
	width: 15px;
	height: 15px;
	object-fit: contain;
	display: block;
}

/* ---------- Progress bar ---------- */
.abx-enq-progress {
	display: flex;
	gap: 6px;
	margin-top: 0 !important;
	margin-bottom: 24px !important;
	margin-right: 0 !important;
	width: 100% !important;
}

.abx-enq-progress-seg {
	flex: 1;
	height: 8px;
	border-radius: 999px;
	background: #f2ece4;
	transition: background-color 0.3s ease;
}

.abx-enq-progress-seg.abx-enq-progress-seg--active {
	background: #c25c2c;
}

/* ---------- Body (flex column so nav pins to bottom) ---------- */
.abx-enq-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.abx-enq-content {
	flex: 1;
}

/* ---------- Question heading ---------- */
.abx-enq-question {
	font-size: 22px;
	font-weight: 700;
	color: #1c1c1c;
	margin: 0 0 12px;
	line-height: 1.3;
}

.abx-enq-subheading {
	font-size: 15px;
	font-weight: 400;
	color: #1c1c1c;
	margin: 0 0 20px;
	line-height: 1.45;
}

/* ---------- Textarea input ---------- */
.abx-enq-textarea {
	width: 100%;
	min-height: 160px;
	padding: 14px 16px;
	border: 1px solid #d4c9b8;
	border-radius: 12px;
	font-size: 14px;
	font-family: inherit;
	color: #1c1c1c;
	background: #ffffff;
	box-sizing: border-box;
	resize: vertical;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	margin-bottom: 16px;
}

.abx-enq-textarea:focus {
	outline: none;
	border-color: #c25c2c;
	box-shadow: 0 0 0 3px rgba( 194, 92, 44, 0.12 );
}

.abx-enq-textarea::placeholder {
	color: #9a958c;
}

/* ---------- Option pills ---------- */
.abx-enq-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.abx-enq-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 999px;
	border: 1px solid #d4c9b8;
	background: #faf5ee;
	color: #1c1c1c;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.abx-enq-option:hover {
	background: #f0e6d4;
	border-color: #c25c2c;
	box-shadow: 0 0 0 3px rgba( 194, 92, 44, 0.12 );
}

.abx-enq-option--selected {
	background: #c25c2c;
	border-color: #c25c2c;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba( 194, 92, 44, 0.35 );
}

.abx-enq-option--selected:hover {
	background: #a94e24;
	border-color: #a94e24;
}

/* ---------- Date-range picker area ---------- */
.abx-enq-date-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #faf5ee;
	border: 1px solid #d4c9b8;
	border-radius: 12px;
	padding: 10px 14px;
	margin-bottom: 16px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Ensure [hidden] works even though display:flex is set above */
.abx-enq-date-wrap[hidden] {
	display: none !important;
}

.abx-enq-date-wrap:focus-within {
	border-color: #c25c2c;
	box-shadow: 0 0 0 3px rgba( 194, 92, 44, 0.12 );
}

.abx-enq-date-icon {
	flex: 0 0 auto;
	font-size: 16px;
}

.abx-enq-date-input {
	flex: 1;
	width: 100%;
	border: none;
	outline: none;
	font-size: 14px;
	font-weight: 600;
	color: #1c1c1c;
	background: transparent;
	cursor: pointer;
	padding: 0;
	box-sizing: border-box;
}

.abx-enq-date-input::placeholder {
	color: #9a958c;
}

/* ---------- Validation error ---------- */
.abx-enq-error {
	color: #b3261e;
	font-size: 13px;
	margin: 4px 0 8px;
	min-height: 18px;
}

/* ---------- Navigation buttons ---------- */
.abx-enq-nav {
	display: flex;
	gap: 12px;
	align-items: center;
	padding-top: 20px;
	margin-top: auto;
	flex-wrap: wrap;
}

.abx-enq-btn-next,
.abx-enq-btn-submit {
	padding: 14px 28px;
	border-radius: 10px;
	border: none;
	background: #c25c2c;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.abx-enq-btn-next:hover,
.abx-enq-btn-submit:hover {
	background: #a94e24;
	box-shadow: 0 4px 12px rgba( 194, 92, 44, 0.3 );
}

.abx-enq-btn-next:disabled,
.abx-enq-btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.abx-enq-btn-back {
	padding: 13px 24px;
	border-radius: 10px;
	border: 1px solid #d4c9b8;
	background: #ffffff;
	color: #1c1c1c;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.abx-enq-btn-back:hover {
	background: #f5ede0;
	border-color: #c25c2c;
}

/* ---------- Details form ---------- */
.abx-enq-form {
	margin: 0;
}

.abx-enq-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

.abx-enq-form-row--single {
	grid-template-columns: 1fr;
}

.abx-enq-form-group {
	display: flex;
	flex-direction: column;
}

.abx-enq-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1c1c1c;
	margin-bottom: 6px;
}

.abx-enq-form-group input,
.abx-enq-form-group select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d4c9b8;
	border-radius: 8px;
	font-size: 14px;
	color: #1c1c1c;
	background: #ffffff;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.abx-enq-form-group input:focus,
.abx-enq-form-group select:focus {
	outline: none;
	border-color: #c25c2c;
	box-shadow: 0 0 0 3px rgba( 194, 92, 44, 0.12 );
}

.abx-enq-form-group input::placeholder {
	color: #9a958c;
}

/* Select arrow */
.abx-enq-select-wrap {
	position: relative;
}

.abx-enq-select-wrap::after {
	content: '';
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY( -50% );
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #9a958c;
	pointer-events: none;
}

.abx-enq-select-wrap select {
	padding-right: 32px;
}

/* Phone field */
.abx-enq-phone-wrap {
	display: flex;
	align-items: stretch;
	border: 1px solid #d4c9b8;
	border-radius: 8px;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	background: #ffffff;
}

.abx-enq-phone-wrap:focus-within {
	border-color: #c25c2c;
	box-shadow: 0 0 0 3px rgba( 194, 92, 44, 0.12 );
}

.abx-enq-phone-prefix {
	padding: 10px 12px;
	font-size: 14px;
	color: #9a958c;
	background: #f5f0ea;
	border-right: 1px solid #d4c9b8;
	white-space: nowrap;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.abx-enq-phone-input {
	flex: 1;
	padding: 10px 12px;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none;
	font-size: 14px;
	color: #1c1c1c;
	background: transparent;
}

/* ---------- Success state ---------- */
.abx-enq-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 32px 16px;
	flex: 1;
}

.abx-enq-success-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #c25c2c;
	color: #ffffff;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	box-shadow: 0 4px 16px rgba( 194, 92, 44, 0.35 );
}

.abx-enq-success-heading {
	font-size: 24px;
	font-weight: 700;
	color: #1c1c1c;
	margin: 0 0 12px;
}

.abx-enq-success-body {
	font-size: 15px;
	color: #5a5550;
	margin: 0;
	max-width: 380px;
	line-height: 1.65;
}

/* ---------- Responsive ---------- */
@media ( max-width: 480px ) {
	.abx-enq-form-row {
		grid-template-columns: 1fr;
	}

	.abx-enq-card {
		padding: 20px 16px 18px;
	}

	.abx-enq-question {
		font-size: 18px;
	}
}
