/* ==========================================================================
   Forms - newsletter, search, comments, and plugin form shells
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: var(--fda-palette9);
	font-family: var(--fda-font-body);
	font-size: 14px;
	line-height: 1.6;
	color: var(--fda-palette5);
	outline: none;
	transition: border-color var(--fda-speed);
}

input:focus,
select:focus,
textarea:focus {
	border-color: #1a2e44;
}

textarea {
	min-height: 140px;
	resize: vertical;
}

label {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--fda-palette3);
}

/* --------------------------------------------------------------------------
   Newsletter (matches the Mailchimp form the old footer used)
   -------------------------------------------------------------------------- */

.newsletter-form,
.mc4wp-newsletter-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	max-width: 480px;
}

.newsletter-form input[type="email"],
.mc4wp-newsletter-wrap input[type="email"] {
	flex: 1;
	min-width: 200px;
	padding: 12px 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.newsletter-form button,
.mc4wp-newsletter-wrap input[type="submit"] {
	padding: 12px 24px;
	background-color: #1a2e44;
	color: var(--fda-palette9);
	border: none;
	border-radius: 4px;
	font-family: var(--fda-font-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 24px;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--fda-speed);
}

.newsletter-form button:hover,
.mc4wp-newsletter-wrap input[type="submit"]:hover {
	background-color: #2c4a6e;
}

.mc4wp-alert {
	color: var(--fda-palette9) !important;
	font-size: 13px !important;
}

.mc4wp-alert.mc4wp-success {
	color: #00d084 !important;
}

.mc4wp-alert.mc4wp-error {
	color: #ff6b6b !important;
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.fda-search {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	max-width: 520px;
}

.fda-search input[type="search"] {
	flex: 1 1 240px;
}

/* --------------------------------------------------------------------------
   Login / account forms (theme fallback and plugin output)
   -------------------------------------------------------------------------- */

.fda-modal .login-username,
.fda-modal .login-password {
	margin-bottom: 16px;
}

.fda-modal .login-remember {
	margin-bottom: 16px;
	font-size: 14px;
}

.fda-modal .login-remember input {
	width: auto;
	margin-right: 6px;
}

.fda-modal .login-submit input[type="submit"],
.account-page input[type="submit"] {
	width: 100%;
	padding: 13px 24px;
	border: 0;
	border-radius: 4px;
	background: var(--fda-palette2);
	color: var(--fda-palette9);
	font-family: var(--fda-font-body);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--fda-speed);
}

.fda-modal .login-submit input[type="submit"]:hover,
.account-page input[type="submit"]:hover {
	background: var(--fda-brick);
}

/* Ultimate Member / WooCommerce shells keep their own styles; just give them
   room inside the theme's containers. */
.account-page,
.woocommerce-page .page-prose {
	max-width: 100%;
}

.account-page__inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 64px 24px 96px;
}

.account-page__title {
	margin: 0 0 28px;
	font-family: var(--fda-font-heading);
	font-size: 36px;
	font-weight: 700;
	color: var(--fda-palette3);
}

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */

.comments-area {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid rgba(18, 35, 43, 0.12);
}

.comments-title,
.comment-reply-title {
	margin: 0 0 24px;
	font-family: var(--fda-font-heading);
	font-size: 24px;
	font-weight: 700;
	color: var(--fda-palette3);
}

.comment-list {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
}

.comment-list ol.children {
	list-style: none;
	margin: 0 0 0 32px;
	padding: 0;
}

.comment-body {
	padding: 20px 0;
	border-bottom: 1px solid rgba(18, 35, 43, 0.08);
}

.comment-author {
	font-weight: 700;
	color: var(--fda-palette3);
}

.comment-metadata {
	font-size: 13px;
	color: var(--fda-palette6);
}

.comment-form p {
	margin-bottom: 16px;
}

.comment-form input[type="submit"] {
	width: auto;
	padding: 13px 28px;
	border: 0;
	border-radius: 4px;
	background: var(--fda-palette2);
	color: var(--fda-palette9);
	font-weight: 700;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Body state helpers
   -------------------------------------------------------------------------- */

body.modal-is-open,
body.nav-is-open {
	overflow: hidden;
}
