/* G-Maple Member Gate — front-end popup */
.gmmg-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	background: rgba(20, 20, 20, .82);
	overflow-y: auto;
	padding: 40px 16px;
	-webkit-overflow-scrolling: touch;
}
.gmmg-modal-overlay.is-open { display: flex; }
body.gmmg-modal-open { overflow: hidden; }

.gmmg-modal {
	position: relative;
	width: 100%;
	max-width: 560px;
	background: #fff;
	padding: 48px 56px 44px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	animation: gmmgIn .22s ease;
	box-sizing: border-box;
}
@keyframes gmmgIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.gmmg-close {
	position: absolute;
	top: 18px;
	right: 22px;
	border: 0;
	background: none;
	font-size: 30px;
	line-height: 1;
	color: #777;
	cursor: pointer;
	padding: 4px;
}
.gmmg-close:hover { color: #111; }

.gmmg-title { margin: 0 0 4px; font-size: 34px; font-weight: 700; color: #111; line-height: 1.1; }
.gmmg-subtitle { margin: 0 0 26px; color: #9a9a9a; font-size: 15px; }

.gmmg-tabs { display: flex; border-bottom: 1px solid #e6e6e6; margin-bottom: 28px; }
.gmmg-tab {
	flex: 1;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	padding: 12px 0;
	font-size: 16px;
	letter-spacing: 2px;
	color: #b0b0b0;
	cursor: pointer;
	margin-bottom: -1px;
}
.gmmg-tab.is-active { color: #111; border-bottom-color: #111; font-weight: 600; }

.gmmg-pane { display: none; }
.gmmg-pane.is-active { display: block; }

.gmmg-grid { display: flex; flex-wrap: wrap; gap: 0 18px; }
.gmmg-field { display: block; width: 100%; margin-bottom: 20px; }
.gmmg-field.gmmg-half { width: calc(50% - 9px); }
@media (max-width: 480px) { .gmmg-field.gmmg-half { width: 100%; } .gmmg-modal { padding: 40px 24px 32px; } }

.gmmg-label {
	display: block;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #555;
	margin-bottom: 8px;
	font-weight: 600;
}
.gmmg-label i { color: #c0392b; font-style: normal; }

.gmmg-field input,
.gmmg-field select,
.gmmg-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid #e2e2e2;
	background: #fafafa;
	font-size: 15px;
	color: #222;
	border-radius: 0;
	transition: border-color .15s;
	font-family: inherit;
}
.gmmg-field textarea { min-height: 90px; resize: vertical; }
.gmmg-field input:focus,
.gmmg-field select:focus,
.gmmg-field textarea:focus { outline: none; border-color: #111; background: #fff; }

.gmmg-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 4px; }
.gmmg-check { font-size: 14px; color: #333; font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }
.gmmg-check input { width: auto; }

.gmmg-submit {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 16px;
	background: #111;
	color: #fff;
	border: 0;
	font-size: 16px;
	letter-spacing: 3px;
	cursor: pointer;
	transition: background .15s;
}
.gmmg-submit:hover { background: #333; }
.gmmg-submit:disabled { opacity: .6; cursor: default; }

.gmmg-link {
	display: block;
	width: 100%;
	margin-top: 18px;
	background: none;
	border: 0;
	color: #111;
	font-size: 15px;
	cursor: pointer;
	text-align: center;
}
.gmmg-link:hover { text-decoration: underline; }

.gmmg-help { margin: 0 0 18px; color: #666; font-size: 14px; }

.gmmg-notice {
	padding: 12px 16px;
	margin-bottom: 18px;
	font-size: 14px;
	border-left: 3px solid #111;
	background: #f4f4f4;
	color: #222;
}
.gmmg-notice.is-error { border-left-color: #c0392b; background: #fdeceb; color: #a02620; }
.gmmg-notice.is-success { border-left-color: #2e7d32; background: #ecf6ed; color: #1e5e22; }

/* gated elements get a pointer cursor for guests */
.gmmg-gated { cursor: pointer; }

/* generic button rendered by shortcode */
.gmmg-button {
	display: inline-block;
	padding: 12px 26px;
	background: #111;
	color: #fff;
	border: 0;
	font-size: 15px;
	letter-spacing: 1px;
	cursor: pointer;
	text-decoration: none;
}
.gmmg-button:hover { background: #333; color: #fff; }
