/* ==========================================================================
   AE Program Readiness Module — SafetyCall
   Scoped to .sci-ae-module so nothing leaks into the rest of the theme.
   Pairs with handoff/ae-readiness-module.php and a WPForms embed.
   ========================================================================== */

.sci-ae-module {
	--sci-navy: #001f38;
	--sci-red: #dc2329;
	--sci-red-hover: #b31d22;
	--sci-white: #ffffff;
	--sci-gray-light: #e4e4e4;
	--sci-form-bg: #f4f4f2;
	--sci-border: #d5dbe1;
	--sci-muted: #5b6b7a;
	--sci-pad: clamp(28px, 3.6vw, 44px);

	box-sizing: border-box;
	max-width: 1100px;
	margin: 0 auto;
	padding: 56px 24px 72px;
	font-family: "Montserrat", sans-serif;
	color: var(--sci-navy);
	-webkit-font-smoothing: antialiased;
}

.sci-ae-module *,
.sci-ae-module *::before,
.sci-ae-module *::after {
	box-sizing: border-box;
}

/* Two columns, collapsing with no media query. */
.sci-ae-module__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 31, 56, 0.1);
}

/* --------------------------------------------------------------- copy side */

.sci-ae-module__copy {
	background: var(--sci-navy);
	padding: var(--sci-pad);
	padding-bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 26px;
	overflow: hidden;
}

.sci-ae-module__copy-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: auto; /* centers the copy in the space above the paper */
}

.sci-ae-module__heading {
	margin: 0;
	font-size: 34px;
	line-height: 1.14;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--sci-white);
	text-wrap: pretty;
}

.sci-ae-module__intro {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	text-wrap: pretty;
}

.sci-ae-module__get {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
}

.sci-ae-module__rule {
	display: block;
	width: 44px;
	height: 3px;
	background: var(--sci-red);
}

.sci-ae-module__get-label {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--sci-white);
}

.sci-ae-module__get-body {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.78);
	text-wrap: pretty;
}

/* Page-one preview: a sheet of paper lifting off the navy and bleeding off
   the bottom edge. Square corners, contact shadow plus cast shadow. */
.sci-ae-module__paper {
	margin: 0;
	margin-top: auto;
	padding-top: 14px;
}

.sci-ae-module__paper img {
	display: block;
	width: 76%;
	min-width: 230px;
	height: 250px;
	object-fit: cover;
	object-position: top center;
	background: var(--sci-white);
	border-radius: 0;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.4),
		0 28px 54px rgba(0, 0, 0, 0.5);
	transform: rotate(-1.4deg);
	transform-origin: bottom left;
	margin-bottom: -26px;
}

/* --------------------------------------------------------------- form side */

.sci-ae-module__form {
	background: var(--sci-form-bg);
	padding: var(--sci-pad);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.sci-ae-module__form-head {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.sci-ae-module__form-eyebrow {
	margin: 0;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--sci-red);
}

.sci-ae-module__form-note {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--sci-muted);
}

.sci-ae-module__form-missing {
	margin: 0;
	padding: 14px 16px;
	background: #fff;
	border: 1px dashed var(--sci-red);
	font-size: 14px;
	color: var(--sci-red);
}

/* ==========================================================================
   WPForms overrides — scoped to this module only.
   WPForms renders:
     form#wpforms-form-{FORM_ID}
       div.wpforms-field-container
         div#wpforms-{FORM_ID}-field_{FIELD_ID}-container.wpforms-field
           label.wpforms-field-label[for="wpforms-{FORM_ID}-field_{FIELD_ID}"]
           input|select#wpforms-{FORM_ID}-field_{FIELD_ID}
           label.wpforms-field-sublabel
           em.wpforms-error
       div.wpforms-submit-container
         button.wpforms-submit
   Target by class, not by numeric ID, so the styling survives a form rebuild.
   ========================================================================== */

.sci-ae-module .wpforms-container,
.sci-ae-module .wpforms-container-full {
	margin: 0;
	padding: 0;
	max-width: none;
}

.sci-ae-module .wpforms-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.sci-ae-module .wpforms-field-container {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sci-ae-module div.wpforms-container-full .wpforms-form .wpforms-field {
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Labels */
.sci-ae-module div.wpforms-container-full .wpforms-form .wpforms-field-label {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sci-navy);
}

.sci-ae-module div.wpforms-container-full .wpforms-form .wpforms-required-label {
	color: var(--sci-red);
	font-weight: 600;
}

.sci-ae-module div.wpforms-container-full .wpforms-form .wpforms-field-sublabel {
	margin: 2px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--sci-muted);
}

/* Inputs and selects */
.sci-ae-module div.wpforms-container-full .wpforms-form input[type="text"],
.sci-ae-module div.wpforms-container-full .wpforms-form input[type="email"],
.sci-ae-module div.wpforms-container-full .wpforms-form input[type="tel"],
.sci-ae-module div.wpforms-container-full .wpforms-form select,
.sci-ae-module div.wpforms-container-full .wpforms-form textarea {
	width: 100%;
	max-width: none;
	height: 48px;
	padding: 0 14px;
	background: var(--sci-white);
	border: 1px solid var(--sci-border);
	border-radius: 10px;
	font-family: "Montserrat", sans-serif;
	font-size: 15px;
	font-weight: 400;
	color: var(--sci-navy);
	box-shadow: none;
	transition: border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sci-ae-module div.wpforms-container-full .wpforms-form textarea {
	height: auto;
	min-height: 110px;
	padding: 12px 14px;
	line-height: 1.55;
}

.sci-ae-module div.wpforms-container-full .wpforms-form select {
	appearance: auto;
}

.sci-ae-module div.wpforms-container-full .wpforms-form input::placeholder,
.sci-ae-module div.wpforms-container-full .wpforms-form textarea::placeholder {
	color: #9aa7b3;
	opacity: 1;
}

.sci-ae-module div.wpforms-container-full .wpforms-form input:focus,
.sci-ae-module div.wpforms-container-full .wpforms-form select:focus,
.sci-ae-module div.wpforms-container-full .wpforms-form textarea:focus {
	outline: none;
	border-color: var(--sci-red);
	box-shadow: 0 0 0 3px rgba(220, 35, 41, 0.3);
}

/* Errors */
.sci-ae-module div.wpforms-container-full .wpforms-form input.wpforms-error,
.sci-ae-module div.wpforms-container-full .wpforms-form select.wpforms-error,
.sci-ae-module div.wpforms-container-full .wpforms-form textarea.wpforms-error {
	border-color: var(--sci-red);
}

.sci-ae-module div.wpforms-container-full .wpforms-form label.wpforms-error,
.sci-ae-module div.wpforms-container-full .wpforms-form em.wpforms-error {
	margin: 2px 0 0;
	font-size: 12px;
	font-weight: 600;
	font-style: normal;
	color: var(--sci-red);
}

/* Submit */
.sci-ae-module div.wpforms-container-full .wpforms-form .wpforms-submit-container {
	padding: 0;
	margin-top: 20px;
}

.sci-ae-module div.wpforms-container-full .wpforms-form button[type="submit"] {
	width: 100%;
	height: 52px;
	padding: 0 30px;
	border: none;
	border-radius: 999px;
	background: var(--sci-red);
	color: var(--sci-white);
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	cursor: pointer;
	transition: background 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sci-ae-module div.wpforms-container-full .wpforms-form button[type="submit"]:hover,
.sci-ae-module div.wpforms-container-full .wpforms-form button[type="submit"]:focus {
	background: var(--sci-red-hover);
	color: var(--sci-white);
}

.sci-ae-module div.wpforms-container-full .wpforms-form button[type="submit"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(220, 35, 41, 0.3);
}

.sci-ae-module div.wpforms-container-full .wpforms-form button[type="submit"]:active {
	transform: translateY(1px);
}

/* GDPR / consent checkbox and any legal fine print */
.sci-ae-module div.wpforms-container-full .wpforms-form .wpforms-field-gdpr-checkbox .wpforms-field-label,
.sci-ae-module div.wpforms-container-full .wpforms-form .wpforms-field-checkbox label {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--sci-muted);
}

/* Inline confirmation ("Check your inbox"), shown in place of the form when
   AJAX submit is enabled. */
.sci-ae-module .wpforms-confirmation-container-full,
.sci-ae-module div[submit-success] > .wpforms-confirmation-container-full {
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	font-family: "Montserrat", sans-serif;
	color: var(--sci-muted);
}

.sci-ae-module .sci-ae-success {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sci-ae-module .sci-ae-success__mark {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: var(--sci-red);
	display: flex;
	align-items: center;
	justify-content: center;
}

.sci-ae-module .sci-ae-success__mark svg {
	width: 22px;
	height: 22px;
	stroke: var(--sci-white);
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sci-ae-module .sci-ae-success__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--sci-navy);
}

.sci-ae-module .sci-ae-success p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--sci-muted);
	text-wrap: pretty;
}

.sci-ae-module .sci-ae-success a {
	color: var(--sci-red);
	font-weight: 600;
}

.sci-ae-module .sci-ae-success a:hover {
	color: var(--sci-red-hover);
}

/* Small screens: the grid already collapses via auto-fit. Only the paper and
   outer padding need adjusting. */
@media (max-width: 600px) {
	.sci-ae-module {
		padding: 40px 16px 56px;
	}

	.sci-ae-module__heading {
		font-size: 28px;
	}

	.sci-ae-module__paper img {
		width: 88%;
	}
}

@media (max-width: 320px) {
.sci-ae-module__inner {
	display: grid;
	grid-template-columns: auto;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 31, 56, 0.1);
}

.sci-ae-module {
		padding: 40px 16px 24px;
	}

}
