/**
 * Simply Croatia newsletter component.
 * Reusable on the homepage and elsewhere without tying the design to one
 * MailerLite form implementation.
 */

.sc-newsletter-section {
	background:
		radial-gradient(circle at 12% 16%, rgba(205, 151, 96, 0.18), transparent 28rem),
		radial-gradient(circle at 88% 82%, rgba(88, 126, 127, 0.22), transparent 26rem),
		linear-gradient(145deg, #173e43 0%, #214f54 48%, #16383d 100%);
	color: #fffaf1;
	overflow: hidden;
	padding: clamp(6rem, 10vw, 10rem) 0;
	position: relative;
}

.sc-newsletter-section::before {
	border: 1px solid rgba(255, 250, 241, 0.13);
	border-radius: 999px;
	content: "";
	height: clamp(18rem, 34vw, 34rem);
	position: absolute;
	right: clamp(-11rem, -8vw, -4rem);
	top: clamp(-12rem, -10vw, -5rem);
	width: clamp(18rem, 34vw, 34rem);
}

.sc-newsletter-section .sc-newsletter {
	align-items: center;
	display: grid;
	gap: clamp(3rem, 7vw, 7rem);
	grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
	max-width: 1220px !important;
	position: relative;
	width: min(calc(100% - 2rem), 1220px) !important;
	z-index: 1;
}

.sc-newsletter__copy {
	margin: 0 !important;
	max-width: 45rem;
}

.sc-newsletter__label {
	color: rgba(255, 250, 241, 0.76) !important;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.17em;
	margin: 0 0 1.25rem !important;
	text-transform: uppercase;
}

.sc-newsletter__headline {
	color: #fffaf1 !important;
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(3rem, 5.4vw, 5.7rem) !important;
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 0.98;
	margin: 0 !important;
	max-width: 11ch;
}

.sc-newsletter__intro {
	color: rgba(255, 250, 241, 0.84) !important;
	font-size: clamp(1.05rem, 1.45vw, 1.22rem);
	line-height: 1.65;
	margin: clamp(1.6rem, 3vw, 2.4rem) 0 0 !important;
	max-width: 35rem;
}

.sc-newsletter__paper {
	background:
		linear-gradient(rgba(116, 92, 65, 0.035) 1px, transparent 1px),
		#fff9ef;
	background-size: 100% 2.15rem;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 5px;
	box-shadow: 0 32px 70px rgba(7, 28, 30, 0.28);
	color: #273c3a;
	margin: 0 !important;
	min-height: 310px;
	padding: clamp(2rem, 4vw, 3.25rem);
	position: relative;
	transform: rotate(0.55deg);
}

.sc-newsletter__paper::before {
	border: 1px solid rgba(39, 60, 58, 0.22);
	border-radius: 50%;
	content: "";
	height: 72px;
	position: absolute;
	right: 2rem;
	top: 1.55rem;
	width: 72px;
}

.sc-newsletter__paper::after {
	background: rgba(169, 101, 79, 0.55);
	content: "";
	height: 1px;
	position: absolute;
	right: 1.45rem;
	top: 4.2rem;
	transform: rotate(-8deg);
	width: 7.5rem;
}

.sc-newsletter__paper-title {
	color: #273c3a !important;
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 3vw, 2.8rem);
	line-height: 1;
	margin: 0 0 2rem !important;
	max-width: 8ch;
}

.sc-newsletter__form-slot {
	margin: 0 !important;
	min-height: 118px;
	position: relative;
}

.sc-newsletter__form-placeholder {
	display: none;
}

.editor-styles-wrapper .sc-newsletter__form-placeholder {
	background: rgba(39, 60, 58, 0.07);
	border: 1px dashed rgba(39, 60, 58, 0.34);
	border-radius: 8px;
	color: #52625f !important;
	display: block;
	font-size: 0.9rem;
	line-height: 1.45;
	margin: 0 !important;
	padding: 1rem;
}

/* Common MailerLite form elements inherit the postcard styling once inserted. */
.sc-newsletter__form-slot input[type="email"],
.sc-newsletter__form-slot input[type="text"] {
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(39, 60, 58, 0.24);
	border-radius: 999px;
	color: #273c3a;
	min-height: 52px;
	padding: 0.8rem 1.1rem;
	width: 100%;
}

.sc-newsletter__form-slot button,
.sc-newsletter__form-slot input[type="submit"] {
	background: #214f54;
	border: 0;
	border-radius: 999px;
	color: #fffaf1;
	cursor: pointer;
	font-weight: 700;
	min-height: 50px;
	padding: 0.8rem 1.35rem;
}

.sc-newsletter__form-slot button:hover,
.sc-newsletter__form-slot button:focus-visible,
.sc-newsletter__form-slot input[type="submit"]:hover,
.sc-newsletter__form-slot input[type="submit"]:focus-visible {
	background: #173e43;
}

@media (max-width: 900px) {
	.sc-newsletter-section .sc-newsletter {
		grid-template-columns: 1fr;
	}

	.sc-newsletter__headline {
		max-width: 12ch;
	}

	.sc-newsletter__paper {
		max-width: 620px;
		transform: none;
		width: 100%;
	}
}

@media (max-width: 600px) {
	.sc-newsletter-section {
		padding: clamp(4.5rem, 18vw, 6.5rem) 0;
	}

	.sc-newsletter-section .sc-newsletter {
		width: min(calc(100% - 1.5rem), 1220px) !important;
	}

	.sc-newsletter__headline {
		font-size: clamp(2.75rem, 13vw, 4rem) !important;
	}

	.sc-newsletter__paper {
		min-height: 280px;
		padding: 1.5rem;
	}

	.sc-newsletter__paper::before {
		height: 58px;
		right: 1.25rem;
		top: 1.2rem;
		width: 58px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sc-newsletter__paper {
		transform: none;
	}
}
