/* modules/centered-cta/style.css */

/* Base Styles */
.smi-centered-cta {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.smi-centered-cta__container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

.smi-centered-cta__content {
	text-align: center;
	margin: 0 auto;
}

/* Eyebrow */
.smi-centered-cta__eyebrow {
	font-family: "Montserrat", sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 1rem;
}

/* Headline */
.smi-centered-cta__headline {
	font-family: "EB Garamond", serif;
	font-size: 2.5rem;
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 1.5rem;
}

/* Body Content */
.smi-centered-cta__body {
	font-family: "Montserrat", sans-serif;
	font-size: 1.125rem;
	line-height: 1.6;
	margin: 0 0 2rem;
}

/* Form Styles within body */
.smi-centered-cta__body form {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	flex-wrap: wrap;
	margin: 2rem 0;
}

/* Newsletter Form Specific Styles */
.smi-centered-cta__newsletter-form {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	margin: 2rem 0;
}

.smi-centered-cta__email-input {
	font-family: "Montserrat", sans-serif;
	font-size: 1rem;
	padding: 0.75rem 1.5rem;
	border: none;
	background: white;
	min-width: 300px;
	height: 48px;
}

.smi-centered-cta__submit-btn {
	font-family: "Montserrat", sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.75rem 2rem;
	border: none;
	cursor: pointer;
	height: 48px;
	transition: all 0.3s ease;
	background: #c61a28;
	color: white;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.smi-centered-cta__submit-btn:hover {
	background: #97002e;
	color: white !important;
}

.smi-centered-cta__submit-btn i {
	color: white !important;
}

.smi-centered-cta__body input[type="email"],
.smi-centered-cta__body input[type="text"] {
	font-family: "Montserrat", sans-serif;
	font-size: 1rem;
	padding: 0.75rem 1.5rem;
	border: none;
	background: white;
	min-width: 300px;
	height: 48px;
}

.smi-centered-cta__body input[type="submit"],
.smi-centered-cta__body button[type="submit"] {
	font-family: "Montserrat", sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.75rem 2rem;
	border: none;
	cursor: pointer;
	height: 48px;
	transition: all 0.3s ease;
}

/* Button Container */
.smi-centered-cta__buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}

/* Outline Button Styles */
.btn-cta-blue-outline,
.btn-cta-red-outline {
	font-family: "Montserrat", sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.75rem 2rem;
	border: 2px solid;
	background: transparent;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s ease;
}

.btn-cta-blue-outline {
	border-color: #4e76a6;
	color: #4e76a6;
}

.btn-cta-blue-outline:hover {
	background: #4e76a6;
	color: white !important;
}

.btn-cta-red-outline {
	border-color: #c61a28;
	color: #c61a28;
}

.btn-cta-red-outline:hover {
	background: #c61a28;
	color: white !important;
}

/* Background Variations */
.smi-centered-cta--bg-none {
	background: #f9fafb;
}

.smi-centered-cta--bg-light {
	background: #f9fafb;
}

/* Special styling for white/no background - MAXIMUM SPECIFICITY */
section.smi-centered-cta.smi-centered-cta--bg-none p.smi-centered-cta__eyebrow,
.smi-centered-cta--bg-none p.smi-centered-cta__eyebrow,
.smi-centered-cta--bg-none .smi-centered-cta__eyebrow {
	font-family: "EB Garamond", serif !important;
	font-size: 2.5rem !important; /* Much bigger */
	font-weight: 400 !important;
	color: #1e4877 !important; /* Dark blue brand color */
	text-transform: none !important; /* Standard case */
	letter-spacing: normal !important; /* No extra letter spacing */
	line-height: 1.4 !important;
}

section.smi-centered-cta.smi-centered-cta--bg-none
	h2.smi-centered-cta__headline,
.smi-centered-cta--bg-none h2.smi-centered-cta__headline,
.smi-centered-cta--bg-none .smi-centered-cta__headline {
	font-family: "Montserrat", sans-serif !important;
	font-size: 1.125rem !important; /* Smaller */
	font-weight: 400 !important; /* Font-normal */
	color: #000000 !important; /* Black */
	line-height: 1.6 !important;
	margin-bottom: 2rem !important;
}

section.smi-centered-cta.smi-centered-cta--bg-none .smi-centered-cta__body,
.smi-centered-cta--bg-none .smi-centered-cta__body {
	font-family: "Montserrat", sans-serif !important;
	font-weight: 400 !important;
	font-size: 1rem !important;
	color: #000000 !important;
	line-height: 1.6 !important;
}

/* Fix blue button hover state for white background */
.smi-centered-cta--bg-none .btn-cta-blue:hover {
	background: linear-gradient(
		180deg,
		#3d5e85 28%,
		#173a5f 100%
	) !important; /* 10% darker */
	color: white !important;
}

.smi-centered-cta--bg-none .btn-cta-blue:hover i {
	color: white !important;
}

.smi-centered-cta--bg-blue {
	background: linear-gradient(180deg, #4e76a6 28%, #1e4877 100%);
}

.smi-centered-cta--bg-red {
	background: linear-gradient(180deg, #c61a28 0%, #97002e 100%);
}

.smi-centered-cta--bg-custom {
	background: var(--cta-custom-bg, #f5f5f5);
}

/* Text Color Schemes */
.smi-centered-cta--text-dark .smi-centered-cta__eyebrow {
	color: #374151;
}

.smi-centered-cta--text-dark .smi-centered-cta__headline {
	color: #1e4877;
}

.smi-centered-cta--text-dark .smi-centered-cta__body {
	color: #374151;
}

.smi-centered-cta--text-light .smi-centered-cta__eyebrow {
	color: rgba(255, 255, 255, 0.9);
}

.smi-centered-cta--text-light .smi-centered-cta__headline {
	color: white;
}

.smi-centered-cta--text-light .smi-centered-cta__body {
	color: rgba(255, 255, 255, 0.95);
}

/* Eyebrow Color Overrides */
.smi-centered-cta--eyebrow-brand-blue .smi-centered-cta__eyebrow {
	color: #1e4877 !important;
}

.smi-centered-cta--eyebrow-brand-red .smi-centered-cta__eyebrow {
	color: #c61a28 !important;
}

.smi-centered-cta--eyebrow-black .smi-centered-cta__eyebrow {
	color: #000000 !important;
}

.smi-centered-cta--eyebrow-white .smi-centered-cta__eyebrow {
	color: #ffffff !important;
}

/* Form styling for light backgrounds */
.smi-centered-cta--bg-blue .smi-centered-cta__body input[type="submit"],
.smi-centered-cta--bg-blue .smi-centered-cta__body button[type="submit"],
.smi-centered-cta--bg-red .smi-centered-cta__body input[type="submit"],
.smi-centered-cta--bg-red .smi-centered-cta__body button[type="submit"] {
	background: #c61a28;
	color: white;
}

.smi-centered-cta--bg-blue .smi-centered-cta__body input[type="submit"]:hover,
.smi-centered-cta--bg-blue .smi-centered-cta__body button[type="submit"]:hover,
.smi-centered-cta--bg-red .smi-centered-cta__body input[type="submit"]:hover,
.smi-centered-cta--bg-red .smi-centered-cta__body button[type="submit"]:hover {
	background: #97002e;
}

/* Width Variations */
.smi-centered-cta--width-narrow .smi-centered-cta__content {
	max-width: 600px;
}

.smi-centered-cta--width-medium .smi-centered-cta__content {
	max-width: 800px;
}

.smi-centered-cta--width-wide .smi-centered-cta__content {
	max-width: 1000px;
}

.smi-centered-cta--width-full .smi-centered-cta__content {
	max-width: 100%;
}

/* Padding Variations */
.smi-centered-cta--padding-small {
	padding: 2rem 0;
}

.smi-centered-cta--padding-medium {
	padding: 4rem 0;
}

.smi-centered-cta--padding-large {
	padding: 6rem 0;
}

/* Full Width Alignment - Force it! */
.smi-centered-cta.alignfull,
.alignfull.smi-centered-cta {
	width: 100vw !important;
	max-width: none !important;
	position: relative !important;
	left: 50% !important;
	right: 50% !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
	.smi-centered-cta__headline {
		font-size: 2rem;
	}

	.smi-centered-cta__body {
		font-size: 1rem;
	}

	.smi-centered-cta__body form {
		flex-direction: column;
		align-items: stretch;
	}

	.smi-centered-cta__newsletter-form {
		flex-direction: column;
		align-items: stretch;
	}

	.smi-centered-cta__body input[type="email"],
	.smi-centered-cta__body input[type="text"],
	.smi-centered-cta__email-input {
		min-width: 100%;
		width: 100%;
	}

	.smi-centered-cta__body input[type="submit"],
	.smi-centered-cta__body button[type="submit"],
	.smi-centered-cta__submit-btn {
		width: 100%;
	}

	.smi-centered-cta__buttons {
		flex-direction: column;
		width: 100%;
	}

	.smi-centered-cta__button {
		width: 100%;
		justify-content: center;
	}

	/* Adjust padding on mobile */
	.smi-centered-cta--padding-large {
		padding: 4rem 0;
	}

	.smi-centered-cta--padding-medium {
		padding: 3rem 0;
	}
}

/* Editor Styles */
.editor-styles-wrapper .smi-centered-cta {
	margin: 0;
}
