/* Blanco Popup — frontend styles */

.dgp-popup-wrapper { position: relative; }

.dgp-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(10, 20, 15, 0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}

.dgp-overlay.dgp-active {
	opacity: 1;
	visibility: visible;
}

.dgp-modal {
	position: relative;
	display: grid;
	grid-template-columns: var(--dgp-left-width, 42%) 1fr;
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"img right"
		"info right";
	width: 1000px;
	max-width: 100%;
	max-height: 92vh;
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	transform: translateY(24px) scale(0.98);
	opacity: 0;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.dgp-overlay.dgp-active .dgp-modal {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.dgp-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f2f2f2;
	color: #333;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	transition: background 0.2s ease;
}

.dgp-close:hover { background: #e2e2e2; }

.dgp-left-image {
	grid-area: img;
	position: relative;
	aspect-ratio: 4 / 3;
	background-color: #1c3329;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	padding: 28px;
	box-sizing: border-box;
}

.dgp-left-image-img {
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	z-index: 0;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
}

.dgp-left-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
	pointer-events: none;
	z-index: 1;
}

.dgp-ribbon {
	position: relative;
	z-index: 2;
	display: inline-block;
	padding: 10px 22px;
	border: 1px solid #e8c877;
	color: #e8c877;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.dgp-left-info {
	grid-area: info;
	background-color: #152720;
	padding: 24px 28px;
	box-sizing: border-box;
	overflow-y: auto;
	display: flex;
	align-items: center;
}

.dgp-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.dgp-contact-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.dgp-contact-list li:last-child { margin-bottom: 0; }

.dgp-contact-icon {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	min-width: 30px;
	border-radius: 50%;
	background: #e8c877;
	color: #1c3329;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.dgp-contact-icon i,
.dgp-contact-icon svg {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.dgp-contact-text {
	font-size: 14px;
	color: #f2f2f2;
	line-height: 1.4;
	word-break: break-word;
}

.dgp-contact-text a {
	color: inherit;
	text-decoration: none;
}

.dgp-contact-text a:hover { text-decoration: underline; }

.dgp-right {
	grid-area: right;
	position: relative;
	padding: 56px 64px 48px;
	background: #fff;
	overflow-y: auto;
	max-height: 92vh;
	box-sizing: border-box;
}

.dgp-eyebrow {
	display: block;
	color: #b8872e;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.dgp-heading {
	margin: 0 0 16px;
	font-size: 34px;
	line-height: 1.2;
	font-weight: 800;
	color: #1a1a1a;
}

.dgp-description {
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.6;
	color: #6b7280;
}

.dgp-checklist {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}

.dgp-checklist li {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.dgp-checklist li:last-child { margin-bottom: 0; }

.dgp-check-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e5f4ea;
	color: #2f8f5b;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dgp-check-text {
	font-size: 16px;
	color: #1f2937;
}

.dgp-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dgp-field-group { margin-bottom: 20px; }

.dgp-field-label {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
}

.dgp-input {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 18px;
	font-size: 15px;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	background: #fff;
	color: #1a1a1a;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dgp-input:focus {
	border-color: #c99b3f;
	box-shadow: 0 0 0 3px rgba(201, 155, 63, 0.15);
}

.dgp-input.dgp-input-error { border-color: #d13c3c; }

.dgp-form-msg {
	font-size: 14px;
	margin: -8px 0 16px;
	min-height: 0;
}

.dgp-form-msg.dgp-msg-error { color: #d13c3c; }
.dgp-form-msg.dgp-msg-success { color: #2f8f5b; }
.dgp-form-msg:empty { margin: 0; }

.dgp-submit {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: none;
	cursor: pointer;
	padding: 16px 20px;
	border-radius: 10px;
	background: #c99b3f;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.1s ease;
	box-sizing: border-box;
}

.dgp-submit:hover { background: #b5872f; color: #fff; }
.dgp-submit:active { transform: translateY(1px); }
.dgp-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.dgp-arrow { font-size: 18px; line-height: 1; }

.dgp-privacy {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 16px 0 0;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.5;
}

.dgp-lock { flex-shrink: 0; }

.dgp-privacy-link {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.dgp-success-state {
	text-align: center;
	padding: 40px 10px;
}

.dgp-success-icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	border-radius: 50%;
	background: #e5f4ea;
	color: #2f8f5b;
	font-size: 26px;
	margin: 0 auto 20px;
}

.dgp-success-message {
	font-size: 18px;
	color: #1a1a1a;
	margin-bottom: 24px;
	line-height: 1.5;
}

.dgp-download-link {
	max-width: 260px;
	margin: 0 auto;
}

/* ---------------- Tablet (large, side-by-side kept) ---------------- */
@media (max-width: 1024px) {
	.dgp-modal { width: 92%; }
	.dgp-right { padding: 44px 36px 36px; }
	.dgp-heading { font-size: 28px; }
	.dgp-contact-text { font-size: 13px; }
}

/* ---------------- Tablet (portrait / narrow — stack: image, content, contact list) ---------------- */
@media (max-width: 900px) {
	.dgp-modal {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		grid-template-areas:
			"img"
			"right"
			"info";
		width: 90%;
		max-width: 520px;
		max-height: 90vh;
		overflow-y: auto;
	}

	.dgp-left-image {
		aspect-ratio: 16 / 10;
	}

	.dgp-right {
		padding: 40px 36px 36px;
		max-height: none;
		overflow-y: visible;
	}

	.dgp-left-info {
		max-height: none;
		overflow-y: visible;
	}

	.dgp-heading { font-size: 27px; }
}

/* ---------------- Mobile (bottom-sheet, same stacked order) ---------------- */
@media (max-width: 640px) {
	.dgp-overlay { padding: 0; align-items: flex-end; }

	.dgp-modal {
		width: 100%;
		max-width: 100%;
		max-height: 92vh;
		border-radius: 20px 20px 0 0;
	}

	.dgp-left-image {
		aspect-ratio: 4 / 3;
		padding: 20px;
	}

	.dgp-left-info { padding: 18px 20px; }

	.dgp-contact-list li { margin-bottom: 8px; }

	.dgp-contact-icon {
		width: 24px;
		height: 24px;
		min-width: 24px;
	}

	.dgp-contact-icon i,
	.dgp-contact-icon svg { font-size: 11px; width: 11px; height: 11px; }

	.dgp-contact-text { font-size: 12.5px; }

	.dgp-right { padding: 26px 20px 26px; }

	.dgp-heading { font-size: 22px; }
	.dgp-description { font-size: 14px; margin-bottom: 18px; }
	.dgp-check-text { font-size: 14px; }
	.dgp-check-icon { width: 24px; height: 24px; min-width: 24px; }
	.dgp-checklist li { margin-bottom: 12px; }
	.dgp-close { top: 12px; right: 12px; width: 32px; height: 32px; }
	.dgp-field-group { margin-bottom: 16px; }
	.dgp-input { padding: 12px 14px; }
	.dgp-submit { padding: 14px 18px; font-size: 15px; }
}

/* ---------------- Small phones ---------------- */
@media (max-width: 400px) {
	.dgp-left-image { aspect-ratio: 4 / 3.4; padding: 16px; }
	.dgp-ribbon { padding: 8px 16px; font-size: 11px; }
	.dgp-left-info { padding: 14px 16px; }
	.dgp-heading { font-size: 20px; }
	.dgp-right { padding: 22px 16px 22px; }
}
