/*
 * RomaniaHUB – pagina Contact ([romaniahub_contact]).
 * Hero scund ca pe pagina Firme, 3 carduri de contact, formularul Elementor în card,
 * „Cu ce te putem ajuta?” în dreapta.
 */

.rh-ct {
	--rh-accent: #6c1cff;
	--rh-accent-ink: #5612d6;
	--rh-ink: #16141f;
	--rh-muted: #5b5870;
	--rh-line: #dcd9e6;
	--rh-dark: #120c26;
	padding-bottom: 56px;
	background: #f4f2f9;
	color: var(--rh-ink);
}

.rh-ct *,
.rh-ct *::before,
.rh-ct *::after {
	box-sizing: border-box;
}

/* Widgetul Elementor în care stă shortcode-ul: fără margini în jur */
.elementor-widget-wrap:has(> .elementor-widget .rh-ct),
.e-con:has(> .elementor-widget .rh-ct) {
	padding: 0 !important;
}

.elementor-widget:has(.rh-ct) {
	margin-bottom: 0 !important;
}

.elementor-section:has(.rh-ct) > .elementor-container,
.e-con:has(> .elementor-widget .rh-ct) {
	max-width: none !important;
}

.rh-ct-wrap {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 10px;
}

/* ---------- Hero ---------- */

.rh-ct .rh-fs-hero--short.rh-ct-hero {
	padding: 30px 0 92px;
}

.rh-ct-hero .rh-fs-wrap {
	max-width: 1440px;
	padding: 0 10px;
}

.rh-ct .rh-fs-hero .rh-fs-title {
	margin: 0;
	font-size: clamp(30px, 3vw, 44px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -1px;
	color: #fff;
}

.rh-ct .rh-fs-lead {
	max-width: 640px;
}

/* ---------- Cele 3 carduri de contact (stau peste marginea hero-ului) ---------- */

.rh-ct-cards {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: -60px;
}

.rh-ct-card {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding: 24px;
	border: 1px solid #ebe8f3;
	border-radius: 20px;
	background: #fff;
	color: var(--rh-ink) !important;
	text-decoration: none !important;
	box-shadow: 0 14px 34px rgba(18, 12, 38, .1);
	transition: transform .2s ease, box-shadow .2s ease;
}

a.rh-ct-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 40px rgba(18, 12, 38, .16);
}

.rh-ct-card__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: linear-gradient(140deg, #6c1cff, #3b6cff);
	color: #fff;
}

.rh-ct-card__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.rh-ct-card__label {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--rh-muted);
}

.rh-ct-card__value {
	overflow: hidden;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rh-ct-card__go {
	font-size: 14px;
	font-weight: 700;
	color: var(--rh-accent-ink);
}

/* ---------- Formularul + coloana din dreapta ---------- */

.rh-ct-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	align-items: start;
	gap: 24px;
	margin-top: 24px;
}

.rh-ct-box {
	padding: 24px;
	border: 1px solid #ebe8f3;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(18, 12, 38, .05);
}

.rh-ct .rh-ct-box h2 {
	margin: 0 0 8px;
	font-size: clamp(26px, 2.4vw, 36px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.8px;
	color: var(--rh-ink);
}

.rh-ct-box__intro {
	max-width: 640px;
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--rh-muted);
}

.rh-ct-form-slot:not(.has-form) {
	padding: 22px;
	border: 1px dashed var(--rh-line);
	border-radius: 12px;
	font-size: 14px;
	color: var(--rh-muted);
}

/* Formularul Elementor, așezat în card */
.rh-ct-form-slot .elementor-widget-form {
	margin: 0 !important;
}

.rh-ct-form-slot .elementor-form-fields-wrapper {
	margin-left: -8px !important;
	margin-right: -8px !important;
	margin-bottom: -16px !important;
}

.rh-ct-form-slot .elementor-field-group {
	margin-bottom: 16px !important;
	padding-left: 8px !important;
	padding-right: 8px !important;
}

.rh-ct-form-slot .elementor-field-group input.elementor-field:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.rh-ct-form-slot .elementor-field-group textarea.elementor-field,
.rh-ct-form-slot .elementor-field-group select {
	min-height: 50px;
	padding: 12px 16px !important;
	border: 1px solid var(--rh-line) !important;
	border-radius: 12px !important;
	background: #faf9fd !important;
	color: var(--rh-ink) !important;
	font-family: inherit;
	font-size: 15px !important;
	box-shadow: none !important;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

/* reCAPTCHA v3 nu are nimic de afișat în formular (iconița apare separat, în colț) */
.rh-ct-form-slot .elementor-field-type-recaptcha_v3,
.rh-ct-form-slot .elementor-field-type-recaptcha {
	margin-bottom: 0 !important;
}

.rh-ct-form-slot .elementor-field-type-recaptcha_v3 .elementor-field {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
}

.rh-ct-form-slot .elementor-field-group textarea.elementor-field {
	min-height: 150px;
	resize: vertical;
}

.rh-ct-form-slot .elementor-field::placeholder {
	color: #8c88a0 !important;
	opacity: 1;
}

.rh-ct-form-slot .elementor-field:focus,
.rh-ct-form-slot .elementor-select-wrapper select:focus {
	border-color: var(--rh-accent) !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px rgba(108, 28, 255, .14) !important;
	outline: none;
}

.rh-ct-form-slot .elementor-select-wrapper::before {
	color: var(--rh-muted) !important;
}

/* Bifele GDPR / Marketing */
.rh-ct-form-slot .elementor-field-type-checkbox .elementor-field-subgroup,
.rh-ct-form-slot .elementor-field-type-acceptance .elementor-field-subgroup {
	display: block;
}

.rh-ct-form-slot .elementor-field-type-checkbox .elementor-field-option,
.rh-ct-form-slot .elementor-field-type-acceptance .elementor-field-option {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	width: 100% !important;
	margin: 0 !important;
}

.rh-ct-form-slot .elementor-field-option input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0 !important;
	accent-color: var(--rh-accent);
	cursor: pointer;
}

.rh-ct-form-slot .elementor-field-option label {
	font-size: 13px !important;
	line-height: 1.55 !important;
	color: var(--rh-muted) !important;
	cursor: pointer;
}

.rh-ct-form-slot .elementor-field-option label a {
	color: var(--rh-accent-ink) !important;
	font-weight: 700;
}

/* Butonul „Trimite mesaj” */
.rh-ct-form-slot .elementor-field-type-submit {
	margin-top: 4px;
}

.rh-ct-form-slot .elementor-button[type="submit"] {
	width: 100%;
	min-height: 54px;
	padding: 14px 24px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(90deg, #6c1cff, #4b2dff) !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 15px !important;
	font-weight: 800 !important;
	box-shadow: 0 10px 24px rgba(108, 28, 255, .28);
	transition: transform .15s ease, box-shadow .15s ease;
}

.rh-ct-form-slot .elementor-button[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(108, 28, 255, .36);
}

.rh-ct-form-slot .elementor-message {
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
}

.rh-ct-form-slot .elementor-message-success {
	background: #e9f9ef;
	color: #146c35;
}

.rh-ct-form-slot .elementor-message-danger {
	background: #fdecec;
	color: #a11d1d;
}

/* Cardul cu rețelele sociale */
.rh-ct-card--social .rh-ct-social {
	margin-top: 4px;
	gap: 8px;
}

.rh-ct-card--social .rh-ct-social a {
	padding: 6px 11px;
	border-radius: 9px;
	font-size: 13px;
}

/* ---------- Dreapta: subiectele, adaugă firma ---------- */

.rh-ct-side {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.rh-ct-side .rh-ct-box {
	padding: 24px;
}

.rh-ct .rh-ct-side h2 {
	font-size: 20px;
	letter-spacing: -.3px;
}

.rh-ct-side .rh-ct-box__intro {
	margin-bottom: 16px;
	font-size: 14px;
}

.rh-ct-topics {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-ct-topic {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #ebe8f3;
	border-radius: 12px;
	background: #fff;
	color: var(--rh-ink);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.rh-ct-topic:hover,
.rh-ct-topic.is-active {
	border-color: #c9b8ff;
	background: #f5f0ff;
}

.rh-ct-topic__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #efe8ff;
	color: var(--rh-accent-ink);
}

.rh-ct-topic.is-active .rh-ct-topic__icon {
	background: var(--rh-accent);
	color: #fff;
}

.rh-ct-topic__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.rh-ct-topic__text b {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
}

.rh-ct-topic__text small {
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--rh-muted);
}

.rh-ct-topic__arrow {
	flex: 0 0 auto;
	color: #a49fbb;
	font-size: 16px;
	font-weight: 700;
}

/* Caseta închisă „Ai o firmă?” */
.rh-ct-add {
	position: relative;
	overflow: hidden;
	padding: 24px;
	border-radius: 20px;
	background:
		radial-gradient(circle at 90% 0%, rgba(169, 139, 255, .45) 0, rgba(169, 139, 255, 0) 50%),
		linear-gradient(160deg, #3d0aa3 0%, #1d0f4a 100%);
	color: #fff;
}

.rh-ct .rh-ct-add h2 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
}

.rh-ct-add p {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	color: #ddd5f7;
}

.rh-ct-add a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 12px;
	background: #fff;
	color: var(--rh-accent-ink) !important;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none !important;
}

/* Rețele sociale */
.rh-ct-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rh-ct-social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid #ebe8f3;
	border-radius: 12px;
	background: #faf9fd;
	color: var(--rh-ink) !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: border-color .15s ease, background .15s ease;
}

.rh-ct-social a:hover {
	border-color: #c9b8ff;
	background: #f5f0ff;
}

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

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

	.rh-ct-topics {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

@media (max-width: 767px) {
	.rh-ct {
		padding-bottom: 40px;
	}

	.rh-ct .rh-fs-hero--short.rh-ct-hero {
		padding: 20px 0 72px;
	}

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

	.rh-ct-cards {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-top: -48px;
	}

	.rh-ct-card {
		padding: 14px 16px;
	}

	.rh-ct-card__icon {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}

	.rh-ct-card__value {
		font-size: 16px;
	}

	.rh-ct-main {
		margin-top: 20px;
		gap: 16px;
	}

	.rh-ct-box {
		padding: 22px 16px;
		border-radius: 20px;
	}

	.rh-ct .rh-ct-box h2 {
		font-size: 24px;
	}

	.rh-ct-form-slot .elementor-field-group.elementor-col-50 {
		width: 100% !important;
	}

	.rh-ct-side,
	.rh-ct-topics {
		display: flex;
		flex-direction: column;
	}
}
