/* Newsletter Section - BEM Methodology with SFC Design System */

/* ==========================================================================
   Section Container
   ========================================================================== */

.newsletter {
	position: relative;
	padding: 120px var(--sfc-space-sm);
	background: var(--sfc-color-bg-white);
	overflow: visible;
}

@media (min-width: 1440px) {
	.newsletter {
		padding: 120px var(--sfc-container-padding-desktop);
	}
}

/* ==========================================================================
   Inner Container (Teal Box)
   ========================================================================== */

.newsletter__container {
	max-width: 1180px;
	margin: 0 auto;
	background-color: var(--sfc-color-primary);
	border-radius: var(--sfc-radius-lg);
	position: relative;
	z-index: 1;
	overflow: hidden;
}

.newsletter__inner {
	padding: 80px var(--sfc-space-sm);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 60px;
}

@media (min-width: 768px) {
	.newsletter__inner {
		padding: 80px 60px;
	}
}

@media (min-width: 1280px) {
	.newsletter__inner {
		padding: 80px 230px;
		gap: 60px;
	}
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.newsletter__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 100%;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.newsletter__title {
	font-family: var(--sfc-font-primary);
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -1px;
	color: var(--sfc-color-text-light);
	margin: 0;
	text-align: center;
}

@media (min-width: 768px) {
	.newsletter__title {
		font-size: 42px;
	}
}

@media (min-width: 1280px) {
	.newsletter__title {
		font-size: 52px;
	}
}

.newsletter__brush {
	display: block;
	width: 360px;
	max-width: 100%;
	height: 15px;
	margin: 0;
}

.newsletter__description {
	font-family: var(--sfc-font-primary);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--sfc-color-text-light);
	margin: 0;
	text-align: center;
	max-width: 700px;
}

@media (min-width: 768px) {
	.newsletter__description {
		font-size: 20px;
	}
}

@media (min-width: 1280px) {
	.newsletter__description {
		font-size: 22px;
	}
}

/* ==========================================================================
   Form Layout
   ========================================================================== */

.newsletter__form {
	width: 100%;
}

.newsletter__form-element {
	width: 100%;
}

.newsletter__form-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
	justify-content: center;
}

@media (min-width: 768px) {
	.newsletter__form-fields {
		flex-wrap: nowrap;
		align-items: center;
	}
}

/* ==========================================================================
   Form Inputs
   ========================================================================== */

.newsletter__input {
	flex: 1 1 200px;
	min-width: 200px;
	padding: 12px 20px;
	font-family: var(--sfc-font-primary);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--sfc-color-text-dark);
	background-color: var(--sfc-color-bg-white);
	border: 1px solid var(--sfc-color-primary);
	border-radius: 150px;
	outline: none;
	transition: box-shadow var(--sfc-transition-fast);
	height: 44px;
}

.newsletter__input:focus {
	box-shadow: 0 0 0 3px rgba(228, 118, 51, 0.3);
	border-color: var(--sfc-color-secondary);
}

.newsletter__input::placeholder {
	color: #a6a6a6;
	opacity: 1;
}

.newsletter__input--zip {
	flex: 1 1 180px;
	min-width: 180px;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

.newsletter__button {
	flex: 0 0 auto;
	padding: 14px 26px;
	height: 44px;
	font-family: var(--sfc-font-primary);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	color: var(--sfc-color-text-light);
	background-color: var(--sfc-color-secondary);
	border: none;
	border-radius: var(--sfc-radius-pill);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color var(--sfc-transition-base);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.newsletter__button:hover {
	background-color: var(--sfc-color-secondary-dark);
}

.newsletter__button:focus {
	outline: 2px solid var(--sfc-color-text-light);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.newsletter__button {
		width: 100%;
		flex: 1 1 100%;
	}
}

/* ==========================================================================
   Decorative Elements
   ========================================================================== */

.newsletter__decoration {
	position: absolute;
	z-index: 0;
	pointer-events: none;
	display: none;
}

@media (min-width: 1100px) {
	.newsletter__decoration {
		display: block;
	}
}

.newsletter__decoration--wavy-top {
	top: 30px;
	left: 180px;
	width: 200px;
	height: auto;
	transform: rotate(324deg);
}

.newsletter__decoration--dots-left {
	top: 50%;
	left: 30px;
	transform: translateY(-50%) rotate(162deg);
	width: 160px;
	height: auto;
}

.newsletter__decoration--wavy-bottom-left {
	bottom: 30px;
	left: 50px;
	width: 180px;
	height: auto;
	transform: rotate(32deg);
}

.newsletter__decoration--dots-right {
	top: 20px;
	right: 40px;
	width: 120px;
	height: auto;
	transform: scaleX(-1);
}

.newsletter__decoration--arrow {
	bottom: -30px;
	right: 150px;
	width: 180px;
	height: auto;
	transform: rotate(206deg);
}

/* ==========================================================================
   Notice
   ========================================================================== */

.newsletter__notice {
	font-family: var(--sfc-font-primary);
	font-size: 16px;
	color: var(--sfc-color-text-light);
	text-align: center;
	font-style: italic;
	opacity: 0.8;
}
