/*
 * RomaniaHUB – „Înscriere eveniment” și „Parteneriate și sponsorizări” (includes/rh-pagini.php).
 * Pornesc de la componentele paginii Contact (rh-contact.css).
 */

/* Cardurile urcă peste marginea hero-ului, ca pe Contact */
.rh-pg .rh-fs-hero--short.rh-pg-hero {
	padding: 30px 0 84px;
}

.rh-pg .rh-pg-main {
	position: relative;
	z-index: 2;
	margin-top: -52px;
}

/* ---------- Textul din coloana mare (Parteneriate) ---------- */

.rh-pg-article {
	padding: 32px;
}

.rh-pg-article h3 {
	margin: 32px 0 10px;
	color: var(--rh-ink);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.3px;
}

.rh-pg-article p {
	margin: 0 0 14px;
	color: var(--rh-muted);
	font-size: 16px;
	line-height: 1.65;
}

.rh-pg-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-pg-tags li {
	padding: 6px 14px;
	border-radius: 999px;
	background: #efe8ff;
	color: var(--rh-accent-ink);
	font-size: 13px;
	font-weight: 800;
}

/* Lista cu bife */
.rh-pg-check {
	display: grid;
	gap: 10px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.rh-pg-check li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--rh-ink);
	font-size: 15px;
	line-height: 1.55;
}

.rh-ct-side .rh-pg-check li {
	font-size: 14px;
}

.rh-pg-check__mark {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 50%;
	background: #e3f7ea;
	color: #138a43;
}

.rh-pg-check b {
	font-weight: 800;
}

.rh-ct-side .rh-pg-check {
	margin: 0;
}

/* Pașii numerotați */
.rh-pg-steps {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.rh-pg-steps li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.rh-pg-steps__n {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--rh-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
}

.rh-pg-steps li > span:last-child {
	display: flex;
	flex-direction: column;
	padding-top: 1px;
}

.rh-pg-steps b {
	color: var(--rh-ink);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
}

.rh-pg-steps small {
	color: var(--rh-muted);
	font-size: 13px;
	line-height: 1.45;
}

/* Nota „De știut” */
.rh-pg-note {
	margin: 24px 0 0;
	padding: 16px 18px;
	border: 1px solid #f1e3b5;
	border-radius: 12px;
	background: #fffaeb;
	color: #5c4a12;
	font-size: 14px;
	line-height: 1.6;
}

.rh-pg-note b {
	font-weight: 800;
}

/* Butoane */
.rh-pg-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.rh-pg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 22px;
	border: 1px solid var(--rh-accent);
	border-radius: 12px;
	background: var(--rh-accent);
	color: #fff !important;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none !important;
	transition: background .15s ease, border-color .15s ease;
}

.rh-pg-btn:hover {
	border-color: var(--rh-accent-ink);
	background: var(--rh-accent-ink);
}

.rh-pg-btn--ghost {
	border-color: #dcd9e6;
	background: #fff;
	color: var(--rh-ink) !important;
}

.rh-pg-btn--ghost:hover {
	border-color: #c9b8ff;
	background: #f5f0ff;
}

/* Caseta de contact din dreapta */
.rh-pg-contact h2 {
	margin-bottom: 14px !important;
}

.rh-pg-contact__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 0;
	color: var(--rh-ink) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
}

.rh-pg-contact__row:hover {
	color: var(--rh-accent-ink) !important;
}

/* ---------- Formularul de înscriere (câmpuri în plus față de Contact) ---------- */

/* Fontul site-ului peste tot în formular (Elementor punea alt font pe etichete și buton) */
.rh-pg .rh-ct-form-slot .elementor-form,
.rh-pg .rh-ct-form-slot .elementor-form *:not(i):not(svg):not([class*="eicon"]):not([class*="fa-"]) {
	font-family: inherit !important;
}

/* Titlurile din formular („Informații organizare”, „Prețuri abonamente acces”) */
.rh-pg .rh-ct-form-slot .elementor-field-type-html {
	margin: 12px 0 14px !important;
	padding-top: 20px !important;
	border-top: 1px solid #ebe8f3;
}

.rh-pg .rh-ct-form-slot .elementor-field-type-html,
.rh-pg .rh-ct-form-slot .elementor-field-type-html * {
	color: var(--rh-ink) !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	letter-spacing: -.2px;
	text-align: left !important;
}

.rh-pg .rh-ct-form-slot .elementor-field-type-html :is(h1, h2, h3, h4, h5, h6, p) {
	margin: 0 !important;
}

.rh-pg .rh-ct-form-slot .elementor-field-label {
	margin-bottom: 6px;
	color: var(--rh-ink) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}

/* Încărcarea fișierelor */
.rh-pg .rh-ct-form-slot .elementor-field-type-upload input[type="file"] {
	width: 100%;
	min-height: 0 !important;
	padding: 12px !important;
	border: 1px dashed #c9c4da !important;
	border-radius: 12px !important;
	background: #faf9fd !important;
	color: var(--rh-muted) !important;
	font-size: 14px !important;
	cursor: pointer;
}

.rh-pg .rh-ct-form-slot .elementor-field-type-upload input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 8px 14px;
	border: 0;
	border-radius: 10px;
	background: #efe8ff;
	color: var(--rh-accent-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.rh-pg .rh-ct-form-slot .elementor-field-type-upload input[type="file"]:hover {
	border-color: #a98bff !important;
}

/* Datele */
.rh-pg .rh-ct-form-slot .elementor-field-type-date input {
	font-family: inherit;
}

/* ---------- Tabletă ---------- */

@media (max-width: 1100px) {
	.rh-pg .rh-ct-side {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Telefon ---------- */

@media (max-width: 767px) {
	.rh-pg .rh-fs-hero--short.rh-pg-hero {
		padding: 20px 0 68px;
	}

	.rh-pg .rh-pg-main {
		margin-top: -44px;
	}

	.rh-pg .rh-ct-side {
		display: flex;
	}

	.rh-pg-article {
		padding: 22px 16px;
	}

	.rh-pg-article p {
		font-size: 15px;
	}

	.rh-pg-actions .rh-pg-btn {
		justify-content: center;
		width: 100%;
	}
}

/* =========================================================================
 * Paginile legale ([romaniahub_legal])
 * ====================================================================== */

.rh-lg-main {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	align-items: start;
	gap: 24px;
	margin-top: -52px;
}

.rh-lg-side {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-height: calc(100vh - 120px);
}

/* Cuprinsul */
.rh-lg-toc {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 20px 12px 12px 20px;
}

.rh-lg-toc summary {
	padding-right: 8px;
	color: var(--rh-ink);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .6px;
	text-transform: uppercase;
	list-style: none;
	cursor: default;
}

.rh-lg-toc summary::-webkit-details-marker {
	display: none;
}

.rh-lg-toc__list {
	margin: 12px 0 0;
	padding: 0 8px 0 0;
	overflow-y: auto;
	list-style: none;
	max-height: calc(100vh - 330px);
}

.rh-lg-toc__list li {
	margin: 0;
}

.rh-lg-toc__list a {
	display: block;
	padding: 7px 10px;
	border-left: 2px solid #ebe8f3;
	color: var(--rh-muted) !important;
	font-size: 13.5px;
	line-height: 1.4;
	text-decoration: none !important;
	transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.rh-lg-toc__list a:hover {
	color: var(--rh-ink) !important;
	background: #faf9fd;
}

.rh-lg-toc__list a.is-active {
	border-left-color: var(--rh-accent);
	color: var(--rh-accent-ink) !important;
	font-weight: 700;
}

/* Celelalte documente */
.rh-lg-docs {
	padding: 20px;
}

.rh-lg-docs__title {
	margin: 0 0 10px;
	color: var(--rh-ink);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .6px;
	text-transform: uppercase;
}

.rh-lg-docs ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-lg-docs a {
	display: block;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--rh-ink) !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}

.rh-lg-docs a:hover {
	background: #faf9fd;
}

.rh-lg-docs a[aria-current="page"] {
	background: #efe8ff;
	color: var(--rh-accent-ink) !important;
}

/* Textul */
.rh-lg-content {
	padding: 40px 48px;
}

.rh-lg-slot .elementor-widget {
	margin: 0 !important;
}

.rh-lg-slot,
.rh-lg-slot .elementor-widget-container {
	max-width: 820px;
	color: #3c3950;
	font-size: 16px;
	line-height: 1.75;
}

.rh-lg-slot * {
	font-family: inherit;
}

.rh-lg-slot p,
.rh-lg-slot li {
	color: #3c3950 !important;
	font-size: 16px !important;
	line-height: 1.75 !important;
	text-align: left !important;
}

.rh-lg-slot p {
	margin: 0 0 16px !important;
}

.rh-lg-slot :is(h1, h2, h3, h4) {
	color: var(--rh-ink) !important;
	font-weight: 800 !important;
	letter-spacing: -.3px;
	text-align: left !important;
	text-transform: none !important;
}

.rh-lg-slot h2 {
	margin: 40px 0 14px !important;
	font-size: 24px !important;
	line-height: 1.3 !important;
}

.rh-lg-slot h3 {
	margin: 32px 0 12px !important;
	font-size: 20px !important;
	line-height: 1.35 !important;
}

.rh-lg-slot h4 {
	margin: 22px 0 8px !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
}

.rh-lg-slot > .elementor-widget :is(h1, h2, h3, h4):first-child,
.rh-lg-slot .elementor-widget-container > :is(h1, h2, h3, h4):first-child {
	margin-top: 0 !important;
}

.rh-lg-slot .rh-lg-dup {
	display: none !important;
}

.rh-lg-slot .rh-lg-dup + * {
	margin-top: 0 !important;
}

/* Paragrafele scrise îngroșat care țin loc de titlu (marcate din cuprins) */
.rh-lg-slot p.rh-lg-anchor {
	margin-top: 28px !important;
	color: var(--rh-ink) !important;
	font-size: 18px !important;
	line-height: 1.4 !important;
}

.rh-lg-anchor {
	scroll-margin-top: 110px;
}

.rh-lg-slot ul,
.rh-lg-slot ol {
	margin: 0 0 16px !important;
	padding-left: 22px !important;
}

.rh-lg-slot li {
	margin: 0 0 6px !important;
}

.rh-lg-slot a {
	color: var(--rh-accent-ink) !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	word-break: break-word;
}

.rh-lg-slot strong,
.rh-lg-slot b {
	color: var(--rh-ink);
	font-weight: 800;
}

/* Tabelele din politica de cookies */
.rh-lg-slot table {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 0 20px;
	overflow-x: auto;
	border: 1px solid #ebe8f3;
	border-radius: 12px;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14px;
}

.rh-lg-slot th,
.rh-lg-slot td {
	padding: 10px 12px !important;
	border: 0 !important;
	border-bottom: 1px solid #ebe8f3 !important;
	color: #3c3950;
	font-size: 14px !important;
	line-height: 1.5;
	text-align: left;
	vertical-align: top;
}

.rh-lg-slot th {
	background: #faf9fd;
	color: var(--rh-ink);
	font-weight: 800;
}

.rh-lg-slot tr:last-child td {
	border-bottom: 0 !important;
}

/* Lista de cookie-uri din politica de cookies (generată de Complianz) */
.rh-lg-slot .cmplz-document details {
	margin: 0 0 10px !important;
	border: 1px solid #ebe8f3 !important;
	border-radius: 12px !important;
	background: #fff !important;
	overflow: hidden;
}

.rh-lg-slot .cmplz-document details[open] {
	background: #faf9fd !important;
}

.rh-lg-slot .cmplz-document details summary {
	padding: 14px 16px !important;
	background: transparent !important;
}

.rh-lg-slot .cmplz-document details summary h3 {
	margin: 0 !important;
	font-size: 16px !important;
}

.rh-lg-slot .cmplz-document details summary p {
	margin: 0 !important;
	color: var(--rh-muted) !important;
	font-size: 13px !important;
}

.rh-lg-slot .cmplz-document details > div {
	padding: 4px 16px 14px !important;
}

.rh-lg-slot .cmplz-document .cookies-per-purpose {
	grid-template-columns: minmax(0, 110px) minmax(0, 1fr) !important;
	max-width: 100%;
}

.rh-lg-slot .cmplz-document .cookies-per-purpose > div {
	min-width: 0;
	overflow-wrap: anywhere;
}

.rh-lg-slot .cmplz-document .cookies-per-purpose .purpose {
	grid-column: 1 / -1;
}

/* ---------- Tabletă și telefon: cuprinsul deasupra textului, închis ---------- */

@media (max-width: 1100px) {
	.rh-lg-main {
		grid-template-columns: minmax(0, 1fr);
	}

	.rh-lg-side {
		position: static;
		max-height: none;
	}

	.rh-lg-toc {
		padding: 16px 20px;
	}

	.rh-lg-toc summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		cursor: pointer;
	}

	.rh-lg-toc summary::after {
		content: "";
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg) translateY(-2px);
		transition: transform .15s ease;
	}

	.rh-lg-toc[open] summary::after {
		transform: rotate(-135deg) translateY(-2px);
	}

	.rh-lg-toc__list {
		max-height: none;
	}

	.rh-lg-docs {
		display: none;
	}

	.rh-lg-content {
		padding: 32px;
	}
}

@media (max-width: 767px) {
	.rh-lg-main {
		gap: 16px;
		margin-top: -44px;
	}

	.rh-lg-content {
		padding: 24px 16px;
	}

	.rh-lg-slot p,
	.rh-lg-slot li {
		font-size: 15px !important;
	}

	.rh-lg-slot h2 {
		font-size: 21px !important;
	}

	.rh-lg-slot h3 {
		font-size: 18px !important;
	}
}

/* =========================================================================
 * Pagina 404 (404.php)
 * ====================================================================== */

.rh-404 .rh-404-hero {
	padding: 30px 0 76px;
}

.rh-404 .rh-404-form {
	max-width: 860px;
}

.rh-404 .rh-404-where {
	flex: 0 1 200px;
	cursor: pointer;
}

.rh-firme-sus .rh-404-where select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 18px;
	cursor: pointer;
}

.rh-404-body {
	position: relative;
	z-index: 2;
}

.rh-404-links {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: -40px;
	padding: 16px;
	border: 1px solid #ebe8f3;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(18, 12, 38, .08);
}

.rh-404-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid #ebe8f3;
	border-radius: 12px;
	background: #faf9fd;
	color: var(--rh-ink) !important;
	text-decoration: none !important;
	transition: border-color .15s ease, background .15s ease;
}

.rh-404-link:hover {
	border-color: #d9c9ff;
	background: #f5f0ff;
}

.rh-404-link__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	color: #fff;
}

.rh-404-link__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.rh-404-link__text b {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
}

.rh-404-link__text small {
	color: var(--rh-muted, #5b5870);
	font-size: 13px;
	line-height: 1.45;
}

.rh-404-link__go {
	flex: 0 0 auto;
	color: var(--rh-accent-ink);
}

.rh-404-posts {
	margin-top: 72px;
	padding-bottom: 0;
}

@media (max-width: 1100px) {
	.rh-404-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.rh-404 .rh-404-hero {
		padding: 20px 0 64px;
	}

	.rh-404 .rh-fs-title {
		font-size: 30px;
	}

	.rh-404 .rh-404-form {
		flex-wrap: wrap;
	}

	.rh-404 .rh-404-form .rh-fs-field--q {
		flex: 1 1 100%;
	}

	.rh-404 .rh-404-where {
		flex: 1 1 0;
	}

	.rh-404-links {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		margin-top: -36px;
		padding: 10px;
	}

	.rh-404-posts {
		margin-top: 48px;
	}
}
