/* ==========================================================================
   Forms (Fluent Forms, theme-inherited), form card, contact grid + panel.
   Fluent Forms markup is scoped through .frm-fluent-form (form element).
   ========================================================================== */

.rm-form-section > * { max-width: 880px; }
.rm-form-card {
	background: #fff;
	border-radius: var(--rm-r-hero);
	padding: clamp(1.75rem, 4vw, 3.5rem);
	box-shadow: 0 0 0 1px var(--rm-line), 0 40px 80px -60px rgb(18 18 18 / .35);
	display: grid;
	gap: 1.75rem;
}
.rm-form-card > * { margin: 0 !important; }

/* Contact page: form + details side by side */
.rm-form-section:has(.rm-contact-grid) > * { max-width: var(--rm-wide); }
.rm-contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.rm-contact-grid > * { margin: 0 !important; }
.rm-contact-panel { background: var(--rm-graphite); color: rgb(255 255 255 / .76); border-radius: var(--rm-r-hero); padding: clamp(1.75rem, 3.5vw, 3rem); display: grid; gap: 1rem; }
.rm-contact-panel > * { margin: 0 !important; }
.rm-contact-panel h4 { color: #fff; font-size: 1.6rem; }
.rm-contact-panel h4 + p { color: #fff; }
.rm-contact-panel h4:not(:first-child) { margin-top: 1rem !important; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: 1.25rem; }
.rm-contact-panel a { color: #fff; text-decoration-color: var(--rm-orange); }
.rm-contact-panel a:hover { color: var(--rm-orange); }
.rm-week { margin: 0; }
.rm-week table { width: 100%; border-collapse: collapse; font-size: .9375rem; table-layout: auto; border: 0; }
.rm-week td { padding: 9px 0; border: 0; border-bottom: 1px solid rgb(255 255 255 / .1); white-space: nowrap; }
.rm-week td:first-child { color: rgb(255 255 255 / .55); width: 30%; }
.rm-week td:last-child { color: #fff; text-align: right; }
@media (max-width: 900px) { .rm-contact-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Fluent Forms reset (per form: Styling = Inherit Theme Style, button No style)
   ------------------------------------------------------------------------- */
.frm-fluent-form { --rm-field-bg: var(--rm-paper); margin: 0; }
.frm-fluent-form fieldset { border: 0; padding: 0; margin: 0; }
.frm-fluent-form .ff-t-container { gap: 16px; }
.frm-fluent-form .ff-el-group { margin-bottom: 18px; }
.frm-fluent-form .ff-el-input--label { margin-bottom: 8px; }
.frm-fluent-form .ff-el-input--label label { font-size: .875rem; font-weight: 600; color: var(--rm-ink); letter-spacing: .01em; }
.frm-fluent-form .ff-el-is-required.asterisk-right label::after { content: " *"; color: var(--rm-orange-text); }
.frm-fluent-form .wpr-hide-label .ff-el-input--label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.frm-fluent-form .ff-el-form-control {
	width: 100%;
	min-height: 54px;
	padding: 14px 18px;
	font: inherit;
	font-size: 1rem;
	color: var(--rm-ink);
	background: var(--rm-field-bg);
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--input);
	box-shadow: inset 0 0 0 1px var(--rm-line);
	transition: box-shadow .2s, background-color .2s;
	appearance: none;
}
.frm-fluent-form textarea.ff-el-form-control { min-height: 150px; resize: vertical; }
.frm-fluent-form .ff-el-form-control::placeholder { color: var(--rm-muted); opacity: 1; }
.frm-fluent-form .ff-el-form-control:hover { box-shadow: inset 0 0 0 1px #cfcac1; }
.frm-fluent-form .ff-el-form-control:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--rm-orange-deep); }
.frm-fluent-form .ff-el-is-error .ff-el-form-control { box-shadow: inset 0 0 0 2px #c4332b; background: #fff7f6; }
.frm-fluent-form .error.text-danger { display: block; margin-top: 6px; color: #b3261e; font-size: .8125rem; font-weight: 500; }
.frm-fluent-form .ff_submit_btn_wrapper { margin-top: 8px; }
.frm-fluent-form .ff-btn-submit {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 54px;
	padding: 6px 6px 6px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--rm-orange);
	color: var(--rm-ink);
	font: 600 1rem/1 var(--rm-body);
	cursor: pointer;
	transition: background-color .25s var(--rm-ease);
	position: relative;
}
.frm-fluent-form .ff-btn-submit::after { content: ""; width: 42px; height: 42px; border-radius: 50%; background: var(--rm-ink) var(--rm-arrow) center / 0 no-repeat; }
.frm-fluent-form .ff-btn-submit::before { content: ""; position: absolute; right: 19px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--rm-orange); -webkit-mask: var(--rm-arrow) center / contain no-repeat; mask: var(--rm-arrow) center / contain no-repeat; z-index: 1; }
.frm-fluent-form .ff-btn-submit:hover { background: var(--rm-orange-deep); }
.frm-fluent-form .ff-btn-submit:disabled { opacity: .6; cursor: wait; }
.ff-message-success {
	padding: 1.5rem 1.75rem;
	border-radius: 16px;
	background: #f1f8f2;
	box-shadow: inset 0 0 0 1px #cfe7d4;
	color: #1d4d2a;
	font-weight: 500;
}
.ff-errors-in-stack { margin-top: 1rem; color: #b3261e; }
@media (min-width: 640px) {
	/* Name / Email / Phone side by side where the form has them in sequence */
	.rm-form-card .frm-fluent-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
	.rm-form-card .frm-fluent-form fieldset > * { grid-column: 1 / -1; }
	.rm-form-card .frm-fluent-form fieldset > .ff-el-group:has(input[type="text"]),
	.rm-form-card .frm-fluent-form fieldset > .ff-el-group:has(input[type="email"]),
	.rm-form-card .frm-fluent-form fieldset > .ff-el-group:has(input[type="tel"]) { grid-column: auto; }
}
