/* =====================================================
   Membership Form  [pgcs_membership_form]
   ===================================================== */

.pgcs-mf-wrap {
	--pgcs-mf-bg: #ffffff0a;
	--pgcs-mf-border: #c9a84c;
	--pgcs-mf-accent: #ffcd00;
	--pgcs-mf-input-bg: #ffffff0f;
	--pgcs-mf-text: #ffffff;
	--pgcs-mf-muted: #888888;
	--pgcs-mf-divider: #3a3a3a;
	--pgcs-mf-required: #e53e3e;

	max-width: 560px;
	margin: 0 auto;
	font-family: "Inter", sans-serif;
	color: var(--pgcs-mf-text);
}

/* ── Form card ──────────────────────────────────────── */

.pgcs-mf-form {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--pgcs-mf-bg);
	border: 1px solid var(--pgcs-mf-border);
	border-radius: 16px;
	padding: 40px 36px 36px;
	box-sizing: border-box;
	box-shadow: none;
}

/* ── Header ─────────────────────────────────────────── */

.pgcs-mf-header {
	margin-bottom: 28px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--pgcs-mf-divider);
}

.pgcs-mf-eyebrow {
	margin: 0 0 10px;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pgcs-mf-accent);
}

.pgcs-mf-title {
	margin: 0 0 12px;
	font-family: "Centra No2 Black", "Inter", sans-serif;
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--pgcs-mf-text);
}

.pgcs-mf-desc {
	margin: 0;
	font-family: "Inter", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--pgcs-mf-muted);
}

/* ── Plan banner ────────────────────────────────────── */

.pgcs-mf-plan-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	background: var(--pgcs-mf-input-bg);
	color: var(--pgcs-mf-text);
	padding: 14px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	border: 1px solid transparent;
}

.pgcs-mf-plan-name {
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 700;
	flex: 1;
}

.pgcs-mf-plan-type {
	font-size: 13px;
	color: var(--pgcs-mf-muted);
}

.pgcs-mf-plan-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--pgcs-mf-accent);
}

.pgcs-mf-plan-per {
	font-size: 13px;
	font-weight: 400;
	color: var(--pgcs-mf-muted);
}

/* ── Rows & fields ──────────────────────────────────── */

.pgcs-mf-fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pgcs-mf-row {
	margin-bottom: 0;
}

.pgcs-mf-row--2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.pgcs-mf-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pgcs-mf-field label {
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: var(--pgcs-mf-text);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pgcs-mf-required {
	color: var(--pgcs-mf-required);
}

.pgcs-mf-field input,
.pgcs-mf-field select,
.pgcs-mf-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 15px;
	font-family: "Inter", sans-serif;
	font-weight: 400;
	line-height: 1.4;
	color: var(--pgcs-mf-text);
	background: var(--pgcs-mf-input-bg);
	outline: none;
	transition: border-color 0.2s;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.pgcs-mf-field input::placeholder,
.pgcs-mf-field textarea::placeholder {
	color: var(--pgcs-mf-muted);
	opacity: 1;
}

.pgcs-mf-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
	cursor: pointer;
}

.pgcs-mf-field select option {
	background: #1f1f1f;
	color: #ffffff;
}

.pgcs-mf-field input:focus,
.pgcs-mf-field select:focus,
.pgcs-mf-field textarea:focus {
	border-color: var(--pgcs-mf-accent);
	box-shadow: none;
	background: var(--pgcs-mf-input-bg);
}

/* Keep browser autofill looking like the default dark inputs */
.pgcs-mf-field input:-webkit-autofill,
.pgcs-mf-field input:-webkit-autofill:hover,
.pgcs-mf-field input:-webkit-autofill:focus,
.pgcs-mf-field input:-webkit-autofill:active,
.pgcs-mf-field textarea:-webkit-autofill,
.pgcs-mf-field textarea:-webkit-autofill:hover,
.pgcs-mf-field textarea:-webkit-autofill:focus,
.pgcs-mf-field textarea:-webkit-autofill:active {
	-webkit-text-fill-color: var(--pgcs-mf-text);
	caret-color: var(--pgcs-mf-text);
	box-shadow: 0 0 0 1000px var(--pgcs-mf-input-bg) inset;
	-webkit-box-shadow: 0 0 0 1000px var(--pgcs-mf-input-bg) inset;
	border: 1px solid transparent;
	transition: background-color 99999s ease-in-out 0s;
}

.pgcs-mf-field input:-webkit-autofill:focus,
.pgcs-mf-field textarea:-webkit-autofill:focus {
	border-color: var(--pgcs-mf-accent);
	box-shadow: 0 0 0 1000px var(--pgcs-mf-input-bg) inset;
	-webkit-box-shadow: 0 0 0 1000px var(--pgcs-mf-input-bg) inset;
}

.pgcs-mf-field input.pgcs-mf-error,
.pgcs-mf-field select.pgcs-mf-error,
.pgcs-mf-field textarea.pgcs-mf-error {
	border-color: var(--pgcs-mf-required);
}

.pgcs-mf-field textarea {
	resize: vertical;
	min-height: 100px;
}

/* ── Submit row ─────────────────────────────────────── */

.pgcs-mf-submit-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-top: 28px;
}

.pgcs-mf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	min-width: 260px;
	padding: 16px 40px;
	background: var(--pgcs-mf-accent);
	color: #000000;
	border: none;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 800;
	font-family: "Inter", sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity 0.2s;
}

.pgcs-mf-btn:hover {
	opacity: 0.9;
	background: var(--pgcs-mf-accent);
}

.pgcs-mf-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ── Notice ─────────────────────────────────────────── */

.pgcs-mf-notice {
	width: 100%;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	font-family: "Inter", sans-serif;
	box-sizing: border-box;
}

.pgcs-mf-notice--error {
	background: rgba(229, 62, 62, 0.12);
	border: 1px solid transparent;
	color: #fc8181;
}

.pgcs-mf-notice--success {
	background: rgba(72, 187, 120, 0.15);
	border: 1px solid transparent;
	color: #48bb78;
}

/* ── Success state ──────────────────────────────────── */

.pgcs-mf-success {
	text-align: center;
	padding: 48px 36px;
	background: var(--pgcs-mf-bg);
	border: 1px solid var(--pgcs-mf-border);
	border-radius: 16px;
	color: var(--pgcs-mf-text);
}

.pgcs-mf-success h3 {
	margin: 16px 0 8px;
	font-family: "Centra No2 Black", "Inter", sans-serif;
	font-size: 22px;
	text-transform: uppercase;
	color: var(--pgcs-mf-text);
}

.pgcs-mf-success p {
	color: var(--pgcs-mf-muted);
	font-size: 15px;
	font-family: "Inter", sans-serif;
	margin: 0;
}

@media (max-width: 520px) {
	.pgcs-mf-form {
		padding: 28px 20px 24px;
	}

	.pgcs-mf-row--2col {
		grid-template-columns: 1fr;
	}

	.pgcs-mf-btn {
		width: 100%;
		min-width: 0;
	}
}
