/* Red Rock Haven Referral Form — v1.1.5 */

.rrh-form-wrap {
	--rrh-primary: #9b2d4a;
	--rrh-primary-dark: #6e1f35;
	--rrh-primary-light: #c45672;
	--rrh-accent: #d4af6a;
	--rrh-accent-soft: #f5ecd8;
	--rrh-bg: #faf8f5;
	--rrh-bg-section: #ffffff;
	--rrh-card: #ffffff;
	--rrh-border: #e8e0d6;
	--rrh-border-focus: #9b2d4a;
	--rrh-text: #1f1b18;
	--rrh-muted: #6d6760;
	--rrh-success: #2e7d4f;
	--rrh-radius: 16px;
	--rrh-radius-sm: 10px;
	--rrh-shadow: 0 4px 24px rgba(31, 27, 24, 0.06);
	--rrh-shadow-lg: 0 12px 48px rgba(110, 31, 53, 0.12);
	width: 100%;
	max-width: 960px;
	margin: 2.5rem auto;
	padding: 0 1.25rem 4rem;
	padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
	padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
	font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
	color: var(--rrh-text);
	line-height: 1.6;
	box-sizing: border-box;
	position: relative;
	overflow-x: hidden;
}

.rrh-form-wrap::before {
	content: "";
	position: absolute;
	top: -80px;
	left: 50%;
	transform: translateX(-50%);
	width: min(100%, 1100px);
	height: 280px;
	background: radial-gradient(ellipse at 50% 0%, rgba(155, 45, 74, 0.08) 0%, transparent 70%);
	pointer-events: none;
	z-index: -1;
}

.rrh-form-wrap *,
.rrh-form-wrap *::before,
.rrh-form-wrap *::after {
	box-sizing: border-box;
}

/* Theme conflict reset */
.rrh-form-wrap label.rrh-label {
	display: block !important;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.45 !important;
}

.rrh-form-wrap input:not([type="checkbox"]):not([type="radio"]),
.rrh-form-wrap textarea,
.rrh-form-wrap button {
	font-family: inherit;
	line-height: inherit;
}

.rrh-form-wrap input[type="text"],
.rrh-form-wrap input[type="email"],
.rrh-form-wrap input[type="tel"],
.rrh-form-wrap input[type="file"],
.rrh-form-wrap textarea {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

/* File upload section */
.rrh-section--upload {
	border: 2px dashed var(--rrh-primary-light);
	background: linear-gradient(180deg, #fdf9f7 0%, var(--rrh-bg-section) 100%);
}

.rrh-section--upload .rrh-section-title {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.rrh-section--upload .rrh-section-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--rrh-primary);
	color: #fff;
	font-size: 0;
	flex-shrink: 0;
}

.rrh-section-intro {
	margin: -0.5rem 0 1.25rem;
	color: var(--rrh-muted);
	font-size: 0.95rem;
}

.rrh-field--file {
	margin: 0;
}

.rrh-file-upload {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 2rem 1rem;
	background: #fff;
	border: 2px dashed var(--rrh-border);
	border-radius: var(--rrh-radius);
	cursor: pointer;
	text-align: center;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.rrh-file-upload:hover,
.rrh-file-upload:focus-within,
.rrh-file-upload.is-dragover {
	border-color: var(--rrh-primary);
	background: #fffaf8;
	box-shadow: 0 0 0 4px rgba(155, 45, 74, 0.1);
}

.rrh-file-upload__icon {
	color: var(--rrh-primary);
	line-height: 0;
}

.rrh-file-upload__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--rrh-primary-dark);
}

.rrh-file-upload__hint {
	font-size: 0.95rem;
	color: var(--rrh-text);
}

.rrh-file-upload__types {
	font-size: 0.85rem;
	color: var(--rrh-muted);
}

.rrh-file-upload__name {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.4rem 0.85rem;
	background: var(--rrh-accent-soft);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--rrh-primary-dark);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rrh-file-upload__name.is-selected {
	background: rgba(46, 125, 79, 0.12);
	color: var(--rrh-success);
}

.rrh-file-upload__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rrh-form-wrap button.rrh-btn {
	width: auto;
	min-height: auto;
	text-transform: none;
	letter-spacing: normal;
}

.rrh-form-wrap fieldset {
	border: none;
	padding: 0;
	margin: 0 0 1.25rem;
	min-width: 0;
}

.rrh-form-wrap fieldset:last-child {
	margin-bottom: 0.35rem;
}

.rrh-form-wrap legend {
	display: block;
	width: 100%;
	float: none;
	padding: 0;
	margin: 0 0 0.9rem;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--rrh-text);
	letter-spacing: 0.01em;
}

/* Header */
.rrh-form-header {
	position: relative;
	background: linear-gradient(135deg, var(--rrh-primary) 0%, var(--rrh-primary-dark) 55%, #4a1528 100%);
	color: #fff;
	border-radius: var(--rrh-radius);
	padding: 2rem 1.75rem;
	margin-bottom: 1.75rem;
	box-shadow: var(--rrh-shadow-lg);
	overflow: hidden;
}

.rrh-form-header::after {
	content: "";
	position: absolute;
	top: -30%;
	right: -5%;
	width: min(240px, 55vw);
	height: min(240px, 55vw);
	max-width: 100%;
	background: radial-gradient(circle, rgba(212, 175, 106, 0.25) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.rrh-form-brand {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
	position: relative;
	z-index: 1;
}

.rrh-form-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: auto;
	max-width: 140px;
	padding: 0.35rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.95);
	border: 2px solid var(--rrh-accent);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.rrh-form-logo-img {
	display: block;
	width: auto;
	height: auto;
	max-width: 120px;
	max-height: 72px;
	object-fit: contain;
}

.rrh-form-title {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.rrh-form-subtitle {
	margin: 0.35rem 0 0;
	opacity: 0.92;
	font-size: 1.05rem;
	font-weight: 400;
}

.rrh-form-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.25rem;
	font-size: 0.9rem;
	position: relative;
	z-index: 1;
}

.rrh-form-meta li {
	background: rgba(255, 255, 255, 0.1);
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	backdrop-filter: blur(4px);
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.rrh-form-meta a {
	color: var(--rrh-accent);
	text-decoration: none;
	font-weight: 500;
}

.rrh-form-meta a:hover {
	text-decoration: underline;
	color: #fff;
}

/* Alerts */
.rrh-alert {
	padding: 1rem 1.25rem 1rem 3rem;
	border-radius: var(--rrh-radius-sm);
	margin-bottom: 1.5rem;
	font-weight: 500;
	position: relative;
	animation: rrh-fade-in 0.4s ease;
}

@keyframes rrh-fade-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

.rrh-alert::before {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.25rem;
}

.rrh-alert--success {
	background: linear-gradient(135deg, #e8f5ec 0%, #d4edda 100%);
	border: 1px solid #a8d5b5;
	color: var(--rrh-success);
}

.rrh-alert--success::before {
	content: "✓";
}

.rrh-alert--error {
	background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
	border: 1px solid #f5b4b4;
	color: #b71c1c;
}

.rrh-alert--error::before {
	content: "!";
}

/* Form card */
.rrh-form {
	display: block;
	width: 100%;
	max-width: 100%;
	background: var(--rrh-card);
	border: 1px solid var(--rrh-border);
	border-radius: var(--rrh-radius);
	box-shadow: var(--rrh-shadow);
	overflow: hidden;
	overflow-x: hidden;
}

/* Sections */
.rrh-section {
	padding: 1.75rem 1.75rem 1.25rem;
	border-bottom: 1px solid var(--rrh-border);
	background: var(--rrh-bg-section);
	transition: background 0.2s;
	min-width: 0;
	max-width: 100%;
}

.rrh-section:nth-child(even) {
	background: var(--rrh-bg);
}

.rrh-section:last-of-type {
	border-bottom: none;
}

.rrh-subsection-title {
	margin: 1.35rem 0 0.75rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rrh-border);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--rrh-primary-dark);
}

.rrh-section-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	font-size: clamp(1rem, 3.5vw, 1.15rem);
	font-weight: 700;
	color: var(--rrh-primary-dark);
	line-height: 1.35;
	min-width: 0;
	max-width: 100%;
}

.rrh-section-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.5rem;
	background: linear-gradient(135deg, var(--rrh-primary), var(--rrh-primary-dark));
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	border-radius: 8px;
	flex-shrink: 0;
}

/* Grid */
.rrh-grid {
	display: grid;
	gap: 1.35rem 1.25rem;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rrh-grid > .rrh-field {
	margin-bottom: 0;
	min-width: 0;
	max-width: 100%;
}

@media (min-width: 600px) {
	.rrh-grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rrh-grid--dates {
		align-items: start;
	}
}

/* Fields */
.rrh-field {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.6rem;
	margin: 0 0 1.15rem;
	padding: 0;
	min-width: 0;
	max-width: 100%;
}

.rrh-field:last-child {
	margin-bottom: 0.35rem;
}

.rrh-fieldset .rrh-field {
	margin-bottom: 0;
}

.rrh-label {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	margin: 0;
	padding: 0;
	color: var(--rrh-text);
	letter-spacing: 0.01em;
	line-height: 1.45;
}

.rrh-field .rrh-input-wrap {
	margin: 0;
}

.rrh-label--group {
	margin-bottom: 0.65rem;
	font-size: 0.9rem;
}

.rrh-required {
	color: var(--rrh-primary);
	font-weight: 700;
}

.rrh-input,
.rrh-textarea {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--rrh-border);
	border-radius: var(--rrh-radius-sm);
	font-size: 1rem;
	background: #fff;
	color: var(--rrh-text);
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.rrh-input:hover,
.rrh-textarea:hover {
	border-color: #d4ccc2;
}

.rrh-input:focus,
.rrh-textarea:focus {
	outline: none;
	border-color: var(--rrh-border-focus);
	box-shadow: 0 0 0 4px rgba(155, 45, 74, 0.12);
	background: #fff;
}

.rrh-input::placeholder,
.rrh-textarea::placeholder {
	color: var(--rrh-muted);
	opacity: 0.85;
	font-size: 0.9375rem;
}

.rrh-input:focus::placeholder,
.rrh-textarea:focus::placeholder {
	opacity: 0.55;
}

.rrh-textarea {
	resize: vertical;
	min-height: 110px;
}

.rrh-input-wrap {
	display: flex;
	align-items: stretch;
}

.rrh-input-wrap--prefix .rrh-input {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	flex: 1;
}

.rrh-input-prefix {
	display: flex;
	align-items: center;
	padding: 0 1rem;
	background: var(--rrh-accent-soft);
	border: 1.5px solid var(--rrh-border);
	border-right: none;
	border-radius: var(--rrh-radius-sm) 0 0 var(--rrh-radius-sm);
	font-weight: 700;
	color: var(--rrh-primary-dark);
}

/* Spacing after choice groups (checkbox/radio blocks) */
.rrh-options + .rrh-grid,
.rrh-options + .rrh-field,
.rrh-options + .rrh-fieldset,
.rrh-options + .rrh-subsection-title,
.rrh-fieldset + .rrh-field,
.rrh-fieldset + .rrh-grid,
.rrh-subsection-title + .rrh-options {
	margin-top: 0.35rem;
}

.rrh-options + .rrh-field {
	margin-top: 0.5rem;
}

/* Date fields */
.rrh-date-group {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-bottom: 1.1rem;
}

.rrh-date-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 0.75rem;
	align-items: end;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rrh-date-cell {
	min-width: 0;
	max-width: 100%;
}

.rrh-date-label {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rrh-muted);
	margin-bottom: 0.35rem;
}

.rrh-input--date {
	text-align: center;
	font-variant-numeric: tabular-nums;
	padding: 0.7rem 0.5rem;
}

/* Legacy date parts inside old grids */
.rrh-grid--3:has(.rrh-date-cell),
.rrh-grid--3:has(.rrh-field--date-part) {
	display: grid;
	grid-template-columns: 1fr 1fr 1.4fr;
	gap: 0.75rem;
}

.rrh-field--date-part {
	margin-bottom: 0;
}

/* Checkbox / Radio */
.rrh-options {
	display: grid;
	gap: 0.65rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-bottom: 0.35rem;
}

.rrh-options--radio,
.rrh-options--checkbox {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
	.rrh-options--radio {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
	}

	.rrh-options--checkbox {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.rrh-check {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.8rem 0.95rem;
	border: 1.5px solid var(--rrh-border);
	border-radius: var(--rrh-radius-sm);
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
	font-size: 0.9375rem;
	line-height: 1.4;
	position: relative;
	min-height: 3rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.rrh-check--radio {
	align-items: center;
	justify-content: flex-start;
	min-height: 3.1rem;
	padding: 0.75rem 1rem;
}

.rrh-check:hover {
	border-color: var(--rrh-primary-light);
	background: #fffdfb;
}

.rrh-check:has(input:checked) {
	border-color: var(--rrh-primary);
	background: linear-gradient(135deg, #fff 0%, var(--rrh-accent-soft) 100%);
	box-shadow: 0 2px 12px rgba(155, 45, 74, 0.1);
}

.rrh-check:has(input:focus-visible) {
	outline: 2px solid var(--rrh-primary);
	outline-offset: 2px;
}

.rrh-check input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
}

.rrh-check-mark {
	flex-shrink: 0;
	width: 1.2rem;
	height: 1.2rem;
	margin-top: 0.12rem;
	border: 2px solid var(--rrh-border);
	border-radius: 4px;
	background: #fff;
	transition: all 0.2s;
	position: relative;
}

.rrh-check--radio .rrh-check-mark {
	border-radius: 50%;
	margin-top: 0;
}

.rrh-check:has(input:checked) .rrh-check-mark {
	background: var(--rrh-primary);
	border-color: var(--rrh-primary);
}

.rrh-check--box:has(input:checked) .rrh-check-mark::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.rrh-check--radio:has(input:checked) .rrh-check-mark::after {
	content: "";
	position: absolute;
	inset: 4px;
	background: #fff;
	border-radius: 50%;
}

.rrh-check-text {
	flex: 1;
	min-width: 0;
	line-height: 1.4;
	word-break: break-word;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.rrh-check--radio .rrh-check-text {
	line-height: 1.35;
}

.rrh-check--box .rrh-check-text {
	padding-top: 0.05rem;
}

.rrh-check--ack {
	margin-top: 1.25rem;
	padding: 1.1rem 1.25rem;
	border: 2px solid var(--rrh-accent);
	background: linear-gradient(135deg, #fff 0%, var(--rrh-accent-soft) 100%);
}

.rrh-field-hint {
	font-size: 0.875rem;
	color: var(--rrh-muted);
	margin: 0 0 0.75rem;
	line-height: 1.45;
	font-style: italic;
}

.rrh-coordination-fields {
	margin-top: 0.75rem;
	padding: 1.25rem;
	background: var(--rrh-bg);
	border-radius: var(--rrh-radius-sm);
	border: 2px dashed var(--rrh-border);
	animation: rrh-fade-in 0.35s ease;
}

.rrh-coordination-fields[hidden] {
	display: none !important;
}

/* Acknowledgement */
.rrh-acknowledgement {
	background: linear-gradient(180deg, var(--rrh-accent-soft) 0%, #fff 40%) !important;
}

.rrh-acknowledgement .rrh-ack-box {
	background: #fff;
	border: 1px solid var(--rrh-border);
	border-left: 4px solid var(--rrh-accent);
	padding: 1.25rem 1.5rem;
	border-radius: 0 var(--rrh-radius-sm) var(--rrh-radius-sm) 0;
	margin-bottom: 0.25rem;
	font-size: 0.95rem;
	color: var(--rrh-muted);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rrh-acknowledgement .rrh-ack-box p {
	margin: 0 0 0.65rem;
	line-height: 1.65;
}

.rrh-acknowledgement .rrh-ack-box p:last-child {
	margin-bottom: 0;
}

/* Submit area */
.rrh-form-actions {
	padding: 2rem 1.75rem;
	padding-left: max(1.15rem, env(safe-area-inset-left, 0px));
	padding-right: max(1.15rem, env(safe-area-inset-right, 0px));
	background: linear-gradient(180deg, var(--rrh-bg) 0%, #f0ebe4 100%);
	text-align: center;
	border-top: 1px solid var(--rrh-border);
	max-width: 100%;
	min-width: 0;
}

.rrh-form-actions-note {
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
	color: var(--rrh-muted);
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.5;
}

.rrh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 1rem 2.75rem;
	font-size: 1.05rem;
	font-weight: 700;
	border: none;
	border-radius: var(--rrh-radius-sm);
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.25s, background 0.2s;
	text-decoration: none;
}

.rrh-btn--primary {
	background: linear-gradient(135deg, var(--rrh-primary) 0%, var(--rrh-primary-dark) 100%);
	color: #fff !important;
	box-shadow: 0 6px 24px rgba(155, 45, 74, 0.35);
}

@media (hover: hover) {
	.rrh-btn--primary:hover {
		transform: translateY(-2px);
		box-shadow: 0 10px 32px rgba(155, 45, 74, 0.45);
		color: #fff !important;
	}

	.rrh-btn--primary:hover .rrh-btn-icon {
		transform: translateX(4px);
	}
}

.rrh-btn--primary:active {
	transform: translateY(0);
}

.rrh-btn-icon {
	transition: transform 0.2s;
}

/* Footer below form */
.rrh-form-footer {
	margin-top: 2rem;
	padding: 1.5rem 1.25rem;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	text-align: center;
	background: var(--rrh-card);
	border: 1px solid var(--rrh-border);
	border-radius: var(--rrh-radius);
	box-shadow: var(--rrh-shadow);
}

.rrh-form-footer p {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	color: var(--rrh-muted);
	line-height: 1.5;
}

.rrh-form-footer p:last-child {
	margin-bottom: 0;
}

.rrh-form-footer a {
	color: var(--rrh-primary);
	font-weight: 600;
	text-decoration: none;
}

.rrh-form-footer a:hover {
	text-decoration: underline;
	color: var(--rrh-primary-dark);
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px) !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	width: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	word-wrap: normal !important;
}

/* Tablet & phone — single column choices, no horizontal scroll */
@media (max-width: 767px) {
	.rrh-form-wrap {
		margin-top: 1rem;
		margin-bottom: 2rem;
		padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
		padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
		padding-bottom: 2.5rem;
	}

	.rrh-form-header {
		padding: 1.35rem 1rem;
		border-radius: 12px;
	}

	.rrh-form-brand {
		flex-direction: column;
		text-align: center;
		gap: 0.85rem;
	}

	.rrh-form-logo {
		max-width: 160px;
		margin: 0 auto;
	}

	.rrh-form-logo-img {
		max-width: 140px;
		max-height: 64px;
	}

	.rrh-form-meta {
		justify-content: center;
	}

	.rrh-form-meta li {
		font-size: 0.85rem;
	}

	.rrh-section {
		padding: 1.25rem 1rem 1rem;
	}

	.rrh-form-actions {
		padding: 1.5rem 1rem;
	}

	.rrh-date-row,
	.rrh-grid--3:has(.rrh-date-cell) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
		gap: 0.45rem;
	}

	.rrh-date-label {
		font-size: 0.62rem;
	}

	.rrh-input--date {
		padding: 0.65rem 0.35rem;
		font-size: 0.95rem;
	}

	.rrh-options--checkbox,
	.rrh-options--radio {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.rrh-check--radio {
		min-height: 2.85rem;
	}

	.rrh-grid,
	.rrh-grid--2 {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.rrh-btn {
		width: 100%;
		max-width: 100%;
		padding: 1rem 1.25rem;
	}

	.rrh-file-upload {
		padding: 1.5rem 0.85rem;
	}

	.rrh-file-upload__name {
		white-space: normal;
		word-break: break-word;
		max-width: 100%;
	}

	.rrh-acknowledgement .rrh-ack-box {
		padding: 1rem;
	}

	.rrh-form-footer {
		padding: 1.25rem 1rem;
		font-size: 0.875rem;
	}
}

@media (max-width: 380px) {
	.rrh-form-wrap {
		padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
		padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
	}

	.rrh-section-title {
		font-size: 1rem;
	}

	.rrh-check {
		padding: 0.75rem 0.8rem;
		font-size: 0.9rem;
	}
}
