/* Rimi Surge Site Tools – styling for the Rimi Surge Elementor pages.
   Colours: primary green #669d34 · secondary amber #feb43f · accent pink #ee719e.
   Text on all three is near-black (white on the green is too faint to read comfortably). */

:root {
	--rm-primary: #669d34;
	--rm-secondary: #feb43f;
	--rm-accent: #ee719e;
	--rm-bg: #0d0d0d;
	--rm-card: #161616;
	--rm-field: #1f1f1f;
	--rm-line: #2c2c2c;
	--rm-text: #f2f2f2;
	--rm-muted: #b9b9b9;
	--rm-on: #0d0d0d;
	--rm-radius: 14px;
}

/* ------------------------------------------------------------------
   Classes the Elementor pages use (Advanced > CSS Classes)
   ------------------------------------------------------------------ */

/* Small coloured line above a heading */
.rm-eyebrow .elementor-heading-title {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(102, 157, 52, 0.16);
	border: 1px solid rgba(102, 157, 52, 0.55);
	color: var(--rm-primary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Dark card; lifts and turns green on hover */
.rm-card {
	background: var(--rm-card);
	border: 1px solid var(--rm-line);
	border-radius: var(--rm-radius);
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.rm-card:hover {
	transform: translateY(-4px);
	border-color: var(--rm-primary);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

/* Soft shadow for a Cararder box that floats over the hero (put on the Shortcode widget). Touches no Cararder styling. */
.rm-float { border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }

/* Rounded corners on image holders (placeholders and real photos alike) */
.rm-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--rm-radius);
}

/* A thin accent line under page-banner headings */
.rm-banner .elementor-heading-title::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin-top: 14px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--rm-primary), var(--rm-secondary), var(--rm-accent));
}

/* Brand-coloured links inside text widgets */
.rm-prose a { color: var(--rm-secondary); text-decoration: underline; text-underline-offset: 3px; }
.rm-prose a:hover { color: var(--rm-accent); }
.rm-prose p { margin: 0 0 1em; }
.rm-prose ul { margin: 0 0 1em 1.1em; padding: 0; }

/* Small print under forms / finance wording */
.rm-small { font-size: 13px; line-height: 1.6; color: var(--rm-muted); }

/* Contact detail rows (icon + text) */
.rm-contact-row { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 16px; color: var(--rm-text); }
.rm-contact-row i { width: 22px; margin-top: 4px; text-align: center; color: var(--rm-primary); }
.rm-contact-row strong { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--rm-muted); }
.rm-contact-row a { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15em; }
.rm-contact-row a:hover { color: var(--rm-secondary); }

/* ------------------------------------------------------------------
   Forms and the search box
   ------------------------------------------------------------------ */

.rst-form { color: var(--rm-text); font-family: inherit; }
.rst-form * { box-sizing: border-box; }

.rst-grid { display: flex; flex-wrap: wrap; gap: 18px 20px; margin-bottom: 22px; }
.rst-field { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.rst-field--half { flex: 1 1 calc(50% - 10px); }

.rst-field label { font-size: 14px; font-weight: 700; color: var(--rm-text); }
.rst-req { color: var(--rm-accent); }
.rst-help { color: var(--rm-muted); font-size: 12.5px; line-height: 1.5; }

.rst-form input[type="text"], .rst-form input[type="email"], .rst-form input[type="tel"],
.rst-form select, .rst-form textarea {
	width: 100%;
	padding: 13px 14px;
	font: inherit;
	font-size: 16px; /* 16px stops iPhones zooming in on focus */
	color: var(--rm-text);
	background: var(--rm-field);
	border: 1px solid var(--rm-line);
	border-radius: 10px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}
.rst-form select {
	background-image: linear-gradient(45deg, transparent 50%, var(--rm-primary) 50%), linear-gradient(135deg, var(--rm-primary) 50%, transparent 50%);
	background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 38px;
}
.rst-form textarea { resize: vertical; min-height: 130px; }
.rst-form input:focus, .rst-form select:focus, .rst-form textarea:focus {
	border-color: var(--rm-primary);
	box-shadow: 0 0 0 3px rgba(102, 157, 52, 0.35);
}
.rst-form option { background: #1f1f1f; color: #fff; }

.rst-form [aria-invalid="true"] { border-color: var(--rm-accent); }

/* Tick-box row */
.rst-field--check { flex: 1 1 100%; }
.rst-check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; line-height: 1.5; color: var(--rm-muted) !important; cursor: pointer; }
.rst-check input { flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--rm-primary); }
.rst-check a { color: var(--rm-secondary); }

/* Robot trap: off-screen, never display:none (some robots skip hidden fields) */
.rst-hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.rst-button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 14px 30px;
	font: inherit; font-size: 16px; font-weight: 800; letter-spacing: .02em;
	color: var(--rm-on); background: var(--rm-primary);
	border: 0; border-radius: 10px; cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.rst-button:hover, .rst-button:focus-visible { background: var(--rm-secondary); transform: translateY(-1px); }
.rst-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rst-button[disabled] { opacity: .65; cursor: progress; transform: none; }

/* Result message */
.rst-msg { margin-top: 18px; }
.rst-msg:empty { display: none; }
.rst-msg p { margin: 0; padding: 14px 16px; border-radius: 10px; font-weight: 700; line-height: 1.5; }
.rst-msg .rst-ok { background: rgba(102, 157, 52, 0.18); border: 1px solid var(--rm-primary); color: #d9efc3; }
.rst-msg .rst-bad { background: rgba(238, 113, 158, 0.14); border: 1px solid var(--rm-accent); color: #ffd1e1; }

@media (max-width: 680px) {
	.rst-field--half { flex-basis: 100%; }
	.rst-form .rst-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.rm-card, .rst-button, .rst-form input, .rst-form select, .rst-form textarea { transition: none; }
	.rm-card:hover, .rst-button:hover { transform: none; }
}
