/**
 * Styling for the new RAQ pages (page-raq-new.php).
 *
 * Cleaned up from the original get-a-quote-multipage.css:
 *  - removed hardcoded .page-id-XXXXX overrides (that file's rendering
 *    decisions were tied to specific production page IDs; this template
 *    doesn't make page-ID-based decisions at all, so there's nothing to
 *    override that way)
 *  - removed a dead selector referencing an old Contact Form 7 ID
 *    (#wpcf7-f6845-o1), not applicable to the current Gravity Forms setup
 *  - consolidated .quote-item.js-gaq-product, which was defined three times
 *    with contradicting values in the original file — kept the last-declared
 *    (winning) values as the single source of truth
 *  - swapped form-ID-specific button selectors (#gform_submit_button_2,
 *    #gform_previous_button_2) for Gravity Forms' generic classes, so this
 *    isn't tied to any one form's ID
 *  - dropped thank-you/opt-out/choose-step styling — out of scope for the
 *    two form pages this template covers right now
 */

/* Same-page AJAX flow section toggle (see raq-ajax-flow.js) */
#raq-ajax-flow .raq-ajax-section {
	display: none;
}
#raq-ajax-flow .raq-ajax-section.is-active {
	display: block;
}

/* Thank-you ("done") section — brought back in from the original CSS, which
 * we'd deliberately left out while thank-you content was still out of scope. */
.thankyouheader {
	color: #37c71f;
	font-weight: 700;
	font-size: 40px;
	margin-bottom: 20px;
}
#thankyouname {
	color: inherit;
}
.t-center,
.ta-center,
.ta-c {
	text-align: center;
}
.p-text {
	max-width: 680px;
	margin: 0 auto 40px auto;
}
.d-flex {
	display: flex;
	gap: 10px;
}
.lg-btn-container.d-flex {
	justify-content: center;
}
.opt-out-wrapper {
	text-align: center;
	margin-top: 40px;
}
.no-thanks-link {
	font-style: italic;
	cursor: pointer;
}

/* Page title */
h1.wp-block-heading {
	font-size: 50px;
	text-align: center;
	margin-top: 25px;
	margin-bottom: 20px;
	color: #fff;
	font-weight: 700;
}

/* Masthead spacing (accounts for the fixed site header's height) */
.masthead {
	margin-top: 215px;
}
.admin-bar .masthead {
	margin-top: 260px;
}
@media (min-width: 467px) {
	.masthead { margin-top: 172px; }
	.admin-bar .masthead { margin-top: 218px; }
}
@media (min-width: 532px) {
	.masthead { margin-top: 146px; }
	.admin-bar .masthead { margin-top: 180px; }
}
@media (min-width: 1200px) {
	.masthead { margin-top: 150px; }
	.admin-bar .masthead { margin-top: 180px; }
}
@media (min-width: 1600px) {
	.masthead { margin-top: 160px; }
	.admin-bar .masthead { margin-top: 190px; }
}

/* Background elements */
#bg-img {
	background: url("https://playworld.com/wp-content/uploads/2025/04/image-2-scaled.png")
		no-repeat center center;
	background-size: cover;
	filter: blur(5px);
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: -2;
}
#orange-bar-bg {
	height: 140px;
	width: 100%;
	background-color: #ff6600;
	position: relative;
	margin-top: -40px;
	z-index: -1;
}

/* RAQ container */
.raq-container {
	border-radius: 10px;
	background: #fff;
	margin: 0 auto;
	max-width: 1200px;
	min-height: 250px;
	padding: 40px;
	overflow: hidden;
	transition: all 0.2s ease;
}
.raq-container--form {
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}
/*
 * Gravity Forms/Bootstrap render a .container (Bootstrap's own gutter system,
 * via var(--bs-gutter-x, ...)) somewhere inside the form itself — zeroing
 * padding on .raq-container--form alone doesn't override an explicitly-padded
 * child.
 */
.raq-container--form .container {
	padding-left: 0;
	padding-right: 0;
}
@media screen and (max-width: 1023px) {
	.raq-container {
		padding: 20px;
		margin: 0 30px;
	}
}
@media screen and (max-width: 767px) {
	.raq-container {
		height: auto !important;
		padding-top: 40px;
		padding-bottom: 40px;
	}
}
@media (min-width: 1600px) {
	.raq-container { padding: 40px; }
}

/* Form chrome (progress bar / step header) */
.form-header-wrapper {
	margin-bottom: 20px;
	padding-left: 0;
	padding-right: 0;
}
.form-header-wrapper .form-step-text,
.form-header-wrapper .form-header {
	text-align: center;
}
.form-header-wrapper .form-header {
	font-weight: 900;
	font-size: 24px;
}
.gb-progress-wrapper,
.gb-progress-wrapper2 {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	margin-bottom: 20px;
}
.gb-progress-wrapper .gb-progress__head {
	display: block;
	font-size: 16px;
	margin-bottom: 5px;
}
.gb-progress .gb-progress__cont {
	border-radius: 3px;
	background: #e0e0e0;
}
.gb-progress .gb-progress__inner {
	height: 6px;
	width: 50%;
	border-radius: 3px;
	background: #1ea6f3;
}
.ta-center {
	text-align: center;
}
.privacy-policy,
.recaptcha-disclaimer {
	text-align: center;
	padding-top: 5px;
	font-size: 14px;
}

/* Gravity Forms field/button styling */
.ginput_counter {
	display: none;
}
.gform_required_legend {
	display: none;
}
.gform_wrapper.gravity-theme .gfield_required {
	font-size: 18px;
}
.gform-footer.top_label {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}
.gform_button,
.gform_previous_button {
	background: #212121;
	border: 2px solid #212121;
	border-radius: 7px;
	height: 60px;
	max-height: 60px;
	color: #fff;
	transform: skewX(-15deg);
	padding: 0 40px;
	margin-top: 0;
	margin-bottom: 0;
	vertical-align: top;
	transition:
		background 0.3s ease-in-out,
		border 0.3s ease-in-out,
		color 0.3s ease-in-out,
		transform 0.3s ease-in-out;
}
.gform_button:hover,
.gform_previous_button:hover {
	color: #212121;
	background: #fff;
	border-color: #212121;
}
.raq-container .gform_button a {
	color: white;
	text-decoration: none;
}
.raq-container .gform_button:hover a {
	color: black;
}
input[type="checkbox"] + label {
	font-weight: 400;
	margin-left: 5px;
}

/* Choices.js dropdown overflow fix */
.choices__list--dropdown {
	overflow: hidden !important;
}
.choices__list--dropdown .choices__list {
	overflow-y: auto !important;
}

/* Cart sidebar — items grid */
.quote-items-wrap {
	position: relative;
	background: white;
	padding-left: 30px;
}
.quote-items-wrap .quote-items-inner > h2 {
	font-size: 24px;
}
.quote-items {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}
.quote-item.js-gaq-product {
	background: transparent;
	padding: 0;
}
.quote-item.js-gaq-product + .quote-item.js-gaq-product {
	margin: 0;
}
.quote-item > .row {
	background: #f7f7f7;
	border-radius: 10px;
	margin: 0 !important;
	padding: 15px 0;
}
.quote-item__details {
	color: var(--text-color);
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 17px;
	font-weight: 400;
}
.quote-item__details .quote-item__remove {
	margin-top: 15px;
	text-decoration: none;
}
.quote-item__quantity.js-product-quantity {
	margin-top: 15px;
}
.quote-item__quantity .quantity {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 180px;
	width: 100%;
	margin: 0 auto;
}
.quote-item__quantity .quantity .screen-reader-text {
	position: static;
	clip-path: unset;
	height: auto;
	width: auto;
	margin-right: 6px;
}
.quote-item__quantity .quantity .input-text {
	max-width: 85px;
	width: 100%;
	margin-left: auto;
}
.quote-item__quantity .quote-item__quantity__update {
	visibility: hidden;
	height: 0;
}
.quote-item__detail-heading {
	color: var(--color-gray);
	font-size: 20px;
	font-weight: 700;
}
.quote-item__name,
.quote-item__name a {
	color: var(--color-primary);
	font-size: 24px;
	font-weight: 400;
	text-decoration: none;
}
.quote-item__price-container {
	margin-top: 10px;
}
.quote-item__price {
	color: var(--color-gray);
	font-size: 24px;
	font-weight: 700;
}
.quote-item__price--none {
	font-weight: bold;
}
.quote-item__remove {
	color: var(--color-primary);
	font-size: 15px;
	font-weight: 900;
}
.js-gaq-product-remove {
	position: absolute;
	top: 0;
	right: 15px;
	background: white;
	border-radius: 10px;
	width: 40px;
	height: 40px;
	line-height: 40px;
	font-size: 12px;
	text-align: center;
}
.raq-container .js-gaq-product-remove {
	width: 30px;
	height: 30px;
	line-height: 30px;
	left: 0;
	top: -15px;
	right: auto;
	border-radius: 0;
	border-bottom-right-radius: 10px;
}
.plus-minus__wrapper {
	position: absolute;
	top: 0;
	right: 0;
	border-left: 1px solid #f0f0f0f0;
	min-width: 30px;
	text-align: center;
}
.fx-quantity-input__wrapper {
	position: relative;
}
.fx-quantity-input__wrapper .qty {
	height: 56px;
}
.fx-quantity-input__wrapper input::-webkit-outer-spin-button,
.fx-quantity-input__wrapper input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.fx-quantity-input__wrapper input[type="number"] {
	-moz-appearance: textfield;
}
.js-increment-value,
.js-decrement-value {
	font-size: 18px;
	cursor: pointer;
}

/*
 * The rules above are base sizing for a wider display context. Inside the
 * narrow sidebar drawer, everything needs to be noticeably smaller — this is
 * the block I originally dropped, thinking it duplicated the base rules above
 * rather than intentionally overriding them.
 */
.quote-items-wrap .quote-items {
	gap: 15px;
}
.quote-items-wrap .quote-item .row > .col-lg-5 {
	padding-right: 0;
}
.quote-items-wrap .quote-item .quote-item__detail-heading {
	font-size: 14px;
}
.quote-items-wrap .quote-item .quote-item__name {
	padding-bottom: 6px;
}
.quote-items-wrap .quote-item .quote-item__name a {
	font-size: 18px;
}
.quote-items-wrap .quote-item .quote-item__product-no {
	font-size: 14px;
}
.quote-items-wrap .quote-item .quote-item__price-container {
	margin-top: 6px;
}
.quote-items-wrap .quote-item .quote-item__price {
	font-size: 18px;
}
.quote-items-wrap .quote-item .quote-item__quantity .quantity .input-text {
	height: 30px;
	padding: 3px 7px;
}
.quote-items-wrap .quote-item .quote-item__quantity .plus-minus__wrapper {
	display: flex;
	flex-direction: row-reverse;
	width: 50px;
	border-bottom: 0;
}
.quote-items-wrap .quote-item .quote-item__quantity .plus-minus__wrapper > div {
	width: 25px;
}
.quote-items-wrap .quote-item .quote-item__quantity .plus-minus__wrapper > div:first-child {
	border-left: 1px solid rgba(0, 0, 0, 0.1);
}

/* Cart sidebar — off-canvas drawer mechanics (desktop) */
.sidebar-open .js-gaq-cart.has-items .raq-container {
	padding-right: 40px;
}
.js-gaq-cart.has-items .raq-container {
	display: flex;
	position: relative;
	padding-right: 450px;
}
.quote-items-wrap {
	width: 380px;
	position: absolute;
	right: 15px;
	top: 30px;
	bottom: 30px;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0;
	transition: all 0.2s ease;
}
.quote-items-inner {
	width: 380px;
	padding: 15px 30px;
}
.quote-items-closed .quote-items-wrap {
	width: 0;
}
.quote-items-button,
.quote-items-button-close {
	position: absolute;
	right: 380px;
	top: 0;
	bottom: 0;
	border-left: 2px solid #dddddd;
	z-index: 1;
	padding-top: 36px;
	display: flex;
	flex-direction: column;
	transition: all 0.2s ease;
	opacity: 1;
}
.quote-items-button .quote-items-button-icon,
.quote-items-button-close .quote-items-button-icon {
	background: #dddddd;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.quote-items-button-close {
	transform: scaleX(-1);
	right: 410px;
	opacity: 0;
	pointer-events: none;
}
.quote-items-closed .quote-items-button-close {
	opacity: 1;
	right: -2px;
	pointer-events: all;
}
.quote-items-closed .quote-items-button {
	opacity: 0;
	right: -2px;
	pointer-events: none;
}
.quote-items-label {
	display: none;
}
.quote-items-button .arrow-left {
	display: none;
}
.quote-items-button-close .arrow-right {
	display: none;
}
.mobile-cart-sidebar {
	display: none;
}

@media screen and (max-width: 1200px) {
	.quote-items {
		grid-template-columns: 1fr;
	}
}
@media screen and (max-width: 890px) {
	.quote-items-wrap,
	.quote-items-inner {
		width: 300px;
	}
	.js-gaq-cart.has-items .raq-container {
		padding-right: 350px;
	}
	.quote-items-button,
	.quote-items-button-close {
		right: 300px;
	}
}

/* Cart sidebar — mobile: full-screen overlay drawer instead of a push-over sidebar */
@media screen and (max-width: 830px) {
	html {
		scrollbar-gutter: stable;
	}
	.mobile-cart-sidebar {
		display: block;
	}
	.sidebar-wrapper {
		display: flex;
	}
	.desktop-cart-sidebar {
		display: none;
	}
	.js-gaq-cart.has-items .raq-container {
		position: static;
		padding-right: 20px;
	}
	.js-gaq-cart.has-items {
		position: relative;
	}
	.quote-items-wrap {
		right: -300px;
		top: 40px;
		bottom: 90px;
		border-top-left-radius: 10px;
		border-bottom-left-radius: 10px;
		position: fixed;
		z-index: 9999999;
	}
	.modal-overlay {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		background: rgba(0, 0, 0, 0.9);
		z-index: 999999;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
	}
	body.sidebar-open .modal-overlay {
		opacity: 1;
		pointer-events: all;
	}
	.mobile-cart-sidebar .quote-items-button-close {
		position: fixed;
		z-index: 9999999;
	}
	.quote-items-button,
	.quote-items-button-close {
		top: 150px;
		bottom: 80px;
		right: 0;
		width: 30px;
		border: 0;
		border-top-left-radius: 10px;
		border-bottom-left-radius: 10px;
		align-items: flex-end;
		padding-top: 15px;
		position: sticky;
		z-index: 3;
	}
	.quote-items-button > svg,
	.quote-items-button-close > svg {
		transform-origin: center;
	}
	.quote-items-button .top-curve,
	.quote-items-button-close .top-curve {
		transform: rotate(-90deg);
	}
	.quote-items-button .bottom-curve,
	.quote-items-button-close .bottom-curve {
		transform: rotate(90deg);
	}
	.quote-items-button .quote-items-button-icon,
	.quote-items-button-close .quote-items-button-icon {
		width: 25px;
		height: 100px;
		text-transform: uppercase;
		font-weight: bold;
		font-size: 14px;
		color: rgba(0, 0, 0, 0.8);
		white-space: nowrap;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding-top: 10px;
		border-radius: 0;
		border-top-left-radius: 10px;
		border-bottom-left-radius: 10px;
	}
	.quote-items-inner {
		padding-top: 25px;
	}
	.quote-items-wrap .quote-items-inner > h2 {
		padding-bottom: 15px;
	}
	.quote-items-closed .quote-items-button-close {
		border-radius: 0;
	}
	.sidebar-open .js-gaq-cart.has-items .raq-container {
		padding-right: 20px;
	}
	.quote-items-label {
		display: block;
		transform: rotate(-90deg) scale(-1);
		transform-origin: center;
		white-space: nowrap;
		width: 100px;
		text-align: center;
		position: relative;
		top: -30px;
	}
	.quote-items-button .arrow-left {
		display: block;
	}
	.quote-items-button .arrow-right {
		display: none;
	}
	.quote-items-button-close .arrow-right {
		display: block;
	}
	.quote-items-button-close .arrow-left {
		display: none;
	}
	.quote-items-closed .quote-items-wrap {
		right: 0;
		width: 300px;
	}
	.quote-items-closed .quote-items-button,
	.quote-items-closed .quote-items-button-close {
		right: 300px;
	}
	.quote-items-button-close {
		transform: scaleX(1);
	}
	.js-gaq-cart.has-items .raq-container {
		margin-right: 0;
	}
	.quote-items-closed .js-gaq-cart.has-items .raq-container {
		padding-right: 20px;
	}
	body.sidebar-open {
		overflow: hidden;
		position: fixed;
		width: 100%;
	}
	body.sidebar-open .page-header {
		position: fixed !important;
	}
}
