/**
 * Felugró ablak (tagvállalat, űrlapok).
 *
 * @package duna_group_web
 */

.company-popup {
	position: fixed;
	inset: 0;
	z-index: 1700;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.company-popup[hidden] {
	display: none !important;
}

.company-popup__image[hidden] {
	display: none !important;
}

.company-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 14, 25, 0.68);
	backdrop-filter: blur(6px);
}

.company-popup__dialog {
	position: relative;
	width: min(760px, 100%);
	max-height: min(88vh, 860px);
	overflow: auto;
	background: #fff;
	border-radius: 5px;
}

.company-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 5px;
	background: rgba(20, 33, 52, 0.75);
	z-index: 2;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	font-size: 0;
	transition: background 0.3s ease, color 0.3s ease;
}

.company-popup__close::before,
.company-popup__close::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 16px;
	height: 2px;
	margin: -1px 0 0 -8px;
	background: currentColor;
	border-radius: 1px;
}

.company-popup__close::before {
	transform: rotate(45deg);
}

.company-popup__close::after {
	transform: rotate(-45deg);
}

.company-popup__close:hover,
.company-popup__close:focus-visible {
	background: var(--dg-steel-blue);
	color: var(--dg-yellow);
}

.company-popup__image {
	aspect-ratio: 16 / 7;
    background: #e8edf3;
    overflow: hidden;
    display: block;
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.company-popup__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.company-popup__content {
	padding: 30px;
}

.company-popup__title {
	font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--blue-dark);
}

.company-popup__text {
	color: #425466;
	white-space: pre-line;
}

body.company-popup-open {
	overflow: hidden;
}

.company-popup__text h1,
.company-popup__text h2, 
.company-popup__text h3,
.company-popup__text h4,
.company-popup__text h5,
.company-popup__text h6 {
	font-size: 1.1rem;
	margin-top: 25px;
	margin-bottom: -5px;
}

.company-popup__text p {
	font-size: 1rem;
}

.company-popup__text ul,
.company-popup__text ol {
	list-style-type: disc;
	padding-left: 15px;
	margin-top: 10px;
}

.company-popup__text ul li,
.company-popup__text ol li {
	font-size: 1rem;
	margin-top: 10px;
}

.company-popup__text *:first-child {
	margin-top: 0;
}

.company-popup__text * {
	margin-top: 20px;
}
