/* Request Price List — front-end styles.
   Neutral, theme-friendly. Uses CSS variables so a client/theme can override. */

.rpl-section {
	/* Colors follow Elementor's global color scheme when available,
	   with sensible fallbacks for non-Elementor themes.
	   Hover is a darkened PRIMARY (not the grey "secondary"). */
	--rpl-accent: var(--e-global-color-primary, #165351);
	--rpl-radius: 14px;
	--rpl-heading: var(--e-global-color-primary, #1f2937);
	--rpl-text: var(--e-global-color-text, #1f2937);
	--rpl-muted: var(--e-global-color-text, #4b5563);
	box-sizing: border-box;
	margin: 2.5rem auto;
	padding: 2.5rem 1.5rem;
	max-width: 1080px;
	/* Light tint of the brand primary; falls back to neutral if color-mix
	   is unsupported (older Safari). */
	background: #f6f8f8;
	background: color-mix(in srgb, var(--e-global-color-primary, #165351) 5%, #fff);
	border: 1px solid #e5e7eb;
	border: 1px solid color-mix(in srgb, var(--e-global-color-primary, #165351) 18%, transparent);
	border-radius: var(--rpl-radius);
	text-align: center;
	position: relative; /* own stacking context so the button stays clickable */
	z-index: 1;
}

/* Footer-injected section: hidden until JS relocates it under the target. */
.rpl-auto-blog:not(.is-placed) {
	display: none;
}

.rpl-section *,
.rpl-modal * {
	box-sizing: border-box;
}

.rpl-section__inner {
	max-width: 640px;
	margin: 0 auto;
}

.rpl-section__heading {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.2;
	color: var(--rpl-heading, #1f2937);
}

.rpl-section__body {
	margin: 0 auto 1.75rem;
	color: var(--rpl-muted);
	font-size: 1.05rem;
	line-height: 1.6;
}

.rpl-section__body p:last-child {
	margin-bottom: 0;
}

/* Buttons */
.rpl-btn {
	display: inline-block;
	padding: 0.85rem 1.6rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	/* Solid brand-primary button with white text (falls back to #165351). */
	color: #fff;
	background: var(--e-global-color-primary, #165351);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.rpl-btn:hover,
.rpl-btn:focus {
	color: #fff;
	background: color-mix(in srgb, var(--e-global-color-primary, #165351) 85%, #000);
}

.rpl-btn:active {
	background: color-mix(in srgb, var(--e-global-color-primary, #165351) 85%, #000);
	transform: translateY(1px);
}

/* Don't paint a focus ring for plain mouse clicks — only keyboard focus. */
.rpl-btn:focus:not(:focus-visible) {
	outline: none;
	background: var(--e-global-color-primary, #165351);
}

.rpl-btn:focus-visible {
	outline: 3px solid var(--e-global-color-primary, #165351);
	outline-offset: 2px;
}

/* Hard override: some themes style <button>/.button with an outline look and
   higher specificity. Force our fills with !important. */

/* Section CTA: solid brand fill + white text. */
.rpl-section .rpl-btn,
.rpl-section button.rpl-btn {
	background-color: var(--e-global-color-primary, #165351) !important;
	background-image: none !important;
	color: #fff !important;
	border: none !important;
	text-decoration: none !important;
}

.rpl-section .rpl-btn:hover,
.rpl-section .rpl-btn:focus,
.rpl-section .rpl-btn:active {
	background-color: #124240 !important; /* darkened #165351 */
	color: #fff !important;
}

/* Popup submit: white fill + brand text, to read on the teal gradient. */
.rpl-modal .rpl-btn,
.rpl-modal button.rpl-btn {
	background-color: #fff !important;
	background-image: none !important;
	color: var(--e-global-color-primary, #165351) !important;
	border: none !important;
	text-decoration: none !important;
}

.rpl-modal .rpl-btn:hover,
.rpl-modal .rpl-btn:focus,
.rpl-modal .rpl-btn:active {
	background-color: rgba(255, 255, 255, 0.88) !important;
	color: var(--e-global-color-primary, #165351) !important;
}

/* Modal */
.rpl-modal[hidden] {
	display: none;
}

.rpl-modal {
	/* Repeat the scheme here — the modal is printed outside .rpl-section. */
	--rpl-accent: var(--e-global-color-primary, #165351);
	--rpl-text: var(--e-global-color-text, #1f2937);
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.rpl-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.rpl-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 2rem 1.75rem 1.75rem;
	background: #165351; /* fallback */
	background-image: linear-gradient(55deg, var(--e-global-color-primary, #165351) 15%, #3A9B98 100%);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: rpl-pop 0.18s ease;
	color: #fff;
}

@keyframes rpl-pop {
	from { transform: translateY(12px) scale(0.98); opacity: 0; }
	to   { transform: translateY(0) scale(1); opacity: 1; }
}

.rpl-modal__close,
.rpl-modal__close:hover,
.rpl-modal__close:focus,
.rpl-modal__close:focus-visible,
.rpl-modal__close:active {
	position: absolute;
	top: 0.5rem;
	right: 0.65rem;
	width: 2rem;
	height: 2rem;
	font-size: 1.6rem;
	line-height: 1;
	color: #fff !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	cursor: pointer;
}

.rpl-modal__close:hover,
.rpl-modal__close:focus {
	color: rgba(255, 255, 255, 0.75) !important;
}

.rpl-modal__title {
	margin: 0 0 1.25rem;
	font-size: 1.35rem;
	color: #fff;
}

/* Form */
.rpl-field {
	margin-bottom: 1rem;
	text-align: left;
}

.rpl-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
}

.rpl-req {
	color: #fff;
}

.rpl-field input,
.rpl-field select {
	width: 100%;
	padding: 0.65rem 0.75rem;
	font-size: 1rem;
	color: #111827;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 10px;
}

.rpl-field input:focus,
.rpl-field select:focus {
	outline: none;
	border-color: var(--rpl-accent, #1a56db);
	box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.18); /* fallback */
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rpl-accent, #1a56db) 25%, transparent);
}

.rpl-form__footer {
	margin-top: 1.25rem;
}

.rpl-form__footer .rpl-btn {
	width: 100%;
}

.rpl-message {
	margin: 1rem 0 0;
	padding: 0.75rem 0.9rem;
	border-radius: 10px;
	font-size: 0.95rem;
}

.rpl-message.is-error {
	color: #991b1b;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.rpl-message.is-success {
	color: #065f46;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

/* Honeypot */
.rpl-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

body.rpl-modal-open {
	overflow: hidden;
}
