/* AMA Members Portal – front-end forms.
   Override the variables in your theme or Elementor custom CSS if needed. */
.ama-mp {
	--ama-mp-primary: #195c89;
	--ama-mp-primary-dark: #0b3f79;
	--ama-mp-text: #1d2733;
	--ama-mp-muted: #5b6573;
	--ama-mp-border: #d5dbe3;
	--ama-mp-surface: #ffffff;
	--ama-mp-soft: #f3f6f9;
	--ama-mp-radius: 8px;
	color: var(--ama-mp-text);
	font-size: 16px;
	line-height: 1.5;
}
.ama-mp *,
.ama-mp *::before,
.ama-mp *::after { box-sizing: border-box; }

.ama-mp-card {
	max-width: 640px;
	margin: 0 auto;
	padding: 32px;
	background: var(--ama-mp-surface);
	border: 1px solid var(--ama-mp-border);
	border-radius: var(--ama-mp-radius);
}
.ama-mp-title { margin: 0 0 20px; font-size: 26px; line-height: 1.25; color: var(--ama-mp-primary-dark); }
.ama-mp-subtitle { margin: 0 0 14px; font-size: 18px; line-height: 1.3; color: var(--ama-mp-primary); }
.ama-mp-intro, .ama-mp-note { margin: 0 0 16px; color: var(--ama-mp-muted); font-size: 15px; }
.ama-mp-note { margin-top: 12px; margin-bottom: 0; font-size: 14px; }

.ama-mp-form { margin: 0; }
.ama-mp-field { margin: 0 0 16px; }
.ama-mp-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.ama-mp-field input[type="text"],
.ama-mp-field input[type="email"],
.ama-mp-field input[type="tel"],
.ama-mp-field input[type="password"] {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	font-size: 16px; /* 16px stops iOS zooming into the field */
	color: var(--ama-mp-text);
	background: #fff;
	border: 1px solid var(--ama-mp-border);
	border-radius: 6px;
	box-shadow: none;
}
.ama-mp-field input:focus {
	outline: 2px solid var(--ama-mp-primary);
	outline-offset: 1px;
	border-color: var(--ama-mp-primary);
}
.ama-mp-field--inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}
.ama-mp-field--inline label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }

.ama-mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.ama-mp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.ama-mp-button,
.ama-mp .ama-mp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 24px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: var(--ama-mp-primary);
	border: 1px solid var(--ama-mp-primary);
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.ama-mp-button:hover,
.ama-mp-button:focus { color: #fff; background: var(--ama-mp-primary-dark); border-color: var(--ama-mp-primary-dark); }
.ama-mp-button--ghost,
.ama-mp .ama-mp-button--ghost { color: var(--ama-mp-primary); background: transparent; }
.ama-mp-button--ghost:hover { color: #fff; }

.ama-mp-link { color: var(--ama-mp-primary); font-size: 15px; }
.ama-mp-footer-link { margin: 20px 0 0; font-size: 15px; }

.ama-mp-alert {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 6px;
	border-left: 4px solid;
	font-size: 15px;
}
.ama-mp-alert--error { background: #fdf0f0; border-color: #c62828; color: #7a1c1c; }
.ama-mp-alert--success { background: #eef7f0; border-color: #2e7d32; color: #1b4d1f; }
.ama-mp-alert--info { background: #eef4fa; border-color: var(--ama-mp-primary); color: var(--ama-mp-primary-dark); }

.ama-mp-section { padding: 24px 0; border-top: 1px solid var(--ama-mp-border); }
.ama-mp-section:first-of-type { padding-top: 0; border-top: 0; }

.ama-mp-details {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 8px 16px;
	margin: 0;
	padding: 16px;
	background: var(--ama-mp-soft);
	border-radius: 6px;
}
.ama-mp-details dt { margin: 0; font-weight: 600; color: var(--ama-mp-muted); }
.ama-mp-details dd { margin: 0; }

.ama-mp-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.ama-mp-badge--active { background: #e3f2e5; color: #1b5e20; }
.ama-mp-badge--suspended { background: #fdecea; color: #8e1c1c; }
.ama-mp-badge--expired { background: #fff4e0; color: #7a4a00; }

@media (max-width: 767px) {
	.ama-mp-card { padding: 20px; }
	.ama-mp-title { font-size: 22px; }
	.ama-mp-grid { grid-template-columns: 1fr; }
	.ama-mp-details { grid-template-columns: 1fr; gap: 2px; }
	.ama-mp-details dd { margin-bottom: 10px; }
	.ama-mp-actions .ama-mp-button { width: 100%; }
}
