/* Shared restyle for member registration wizard, admin member form/view,
   and profile form/view - matches the "Multi-step Registration" design
   (Claude Design project 9baee89b-...). Applied on top of the existing
   Bootstrap 5 card/form markup so the many existing field partials
   (register/_field/*.php) don't need to be rewritten one by one. */

.member-wizard-scope {
	background: #f6f5fa;
	font-family: "Kanit", "Noto Sans Thai", system-ui, sans-serif;
	color: #212529;
}

.member-wizard-scope a {
	color: #6d28d9;
}

.member-wizard-scope a:hover {
	color: #5b21b6;
}

.member-wizard-scope .mw-panel {
	background: #fff;
	border: 1px solid #eceaf3;
	border-radius: 22px;
	box-shadow: 0 10px 34px rgba(76, 54, 120, .07);
	padding: 34px 38px 26px;
}

.member-wizard-scope .mw-page-wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding: 28px 20px 56px;
}

.member-wizard-scope .card.border-primary,
.member-wizard-scope .mw-card {
	border: 1px solid #e8e5f0 !important;
	border-radius: 16px !important;
	overflow: hidden;
	margin-bottom: 22px;
}

.member-wizard-scope .card.border-primary .card-header,
.member-wizard-scope .mw-card .mw-card-header {
	background: #f3effe !important;
	color: #5b21b6 !important;
	border-bottom: 1px solid #eae4fb;
	font-size: 15.5px;
	font-weight: 600;
	padding: 13px 22px;
}

.member-wizard-scope .card.border-primary .card-body {
	padding: 20px 22px 24px;
}

.member-wizard-scope .form-control,
.member-wizard-scope .form-select {
	font-family: inherit;
	font-size: 15px;
	border-radius: 10px;
	border-color: #e6e2f0;
}

.member-wizard-scope .form-select {
	background-color: #faf9ff;
}

.member-wizard-scope .form-control:focus,
.member-wizard-scope .form-select:focus {
	border-color: #a78bfa;
	box-shadow: 0 0 0 .2rem rgba(124, 58, 237, .14);
}

.member-wizard-scope .form-label,
.member-wizard-scope label {
	font-size: 14px;
	color: #495057;
}

.member-wizard-scope .form-check-input:checked {
	background-color: #7c3aed;
	border-color: #7c3aed;
}

.member-wizard-scope .btn-primary {
	background-color: #7c3aed;
	border-color: #7c3aed;
}

.member-wizard-scope .btn-primary:hover {
	background-color: #6d28d9;
	border-color: #6d28d9;
}

.member-wizard-scope .btn-secondary {
	background-color: #f3effe;
	border-color: #e6e2f0;
	color: #5b21b6;
}

.member-wizard-scope .btn-secondary:hover {
	background-color: #e9e2fb;
	border-color: #d9cffb;
	color: #5b21b6;
}

/* Step progress bar */

.mw-steps {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 6px 0 30px;
	flex-wrap: wrap;
	gap: 0;
}

.mw-step {
	flex: 1 1 0;
	min-width: 90px;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	cursor: default;
}

.mw-step.mw-step-clickable {
	cursor: pointer;
}

.mw-step-line {
	position: absolute;
	top: 18px;
	height: 2px;
	background: #e9ecef;
}

.mw-step-line-left {
	left: 0;
	right: 50%;
}

.mw-step-line-right {
	left: 50%;
	right: 0;
}

.mw-step.mw-step-done .mw-step-line-left,
.mw-step.mw-step-done .mw-step-line-right,
.mw-step.mw-step-active .mw-step-line-left {
	background: #16a34a;
}

.mw-step-circle {
	position: relative;
	z-index: 1;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 600;
	background: #fff;
	color: #adb5bd;
	border: 2px solid #dee2e6;
	box-shadow: 0 0 0 4px #fff;
}

.mw-step.mw-step-done .mw-step-circle {
	background: #16a34a;
	color: #fff;
	border-color: #16a34a;
}

.mw-step.mw-step-active .mw-step-circle {
	background: #7c3aed;
	color: #fff;
	border-color: #7c3aed;
}

.mw-step-label {
	margin-top: 10px;
	font-size: 13.5px;
	text-align: center;
	color: #adb5bd;
}

.mw-step.mw-step-done .mw-step-label {
	color: #495057;
}

.mw-step.mw-step-active .mw-step-label {
	color: #7c3aed;
	font-weight: 600;
}

/* Step 1: applicant-type / plan / club cards */

.mw-choice-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.mw-pill {
	font-size: 14.5px;
	line-height: 1.45;
	white-space: nowrap;
	border-radius: 30px;
	padding: 10px 22px;
	cursor: pointer;
	border: 1px solid #d6d2e0;
	background: #fff;
	color: #343a40;
}

.mw-pill.mw-pill-on {
	border-color: #7c3aed;
	background: #7c3aed;
	color: #fff;
	font-weight: 600;
}

.mw-tile-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 30px;
}

@media (max-width: 767.98px) {
	.mw-tile-grid {
		grid-template-columns: 1fr;
	}
}

.mw-tile {
	position: relative;
	cursor: pointer;
	border: 1px solid #e8e5f0;
	border-radius: 16px;
	padding: 22px 24px;
	background: #fff;
}

.mw-tile:hover {
	border-color: #c4b5fd;
}

.mw-tile.mw-tile-on {
	border-color: #7c3aed;
	background: rgba(124, 58, 237, .045);
}

.mw-tile-check {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #7c3aed;
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 13px;
}

.mw-tile.mw-tile-on .mw-tile-check {
	display: flex;
}

.mw-tile-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #f3effe;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #6d28d9;
	margin-bottom: 16px;
}

.mw-tile-title {
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 6px;
}

.mw-tile-sub {
	font-size: 14px;
	color: #6c757d;
}

.mw-plan-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 30px;
}

@media (max-width: 767.98px) {
	.mw-plan-grid {
		grid-template-columns: 1fr;
	}
}

.mw-plan-card {
	position: relative;
	cursor: pointer;
	border: 1px solid #e8e5f0;
	border-radius: 16px;
	padding: 18px 22px 20px;
	background: #fff;
}

.mw-plan-card:hover {
	border-color: #c4b5fd;
}

.mw-plan-card.mw-tile-on {
	border-color: #7c3aed;
	background: rgba(124, 58, 237, .05);
}

.mw-plan-name {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 4px;
}

.mw-plan-sub {
	font-size: 13.5px;
	color: #6c757d;
	margin-bottom: 14px;
}

.mw-plan-price {
	font-size: 22px;
	font-weight: 700;
	color: #6d28d9;
}

.mw-plan-unit {
	font-size: 13px;
	color: #6c757d;
}

.mw-club-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 30px;
}

@media (max-width: 991.98px) {
	.mw-club-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 575.98px) {
	.mw-club-grid {
		grid-template-columns: 1fr;
	}
}

.mw-club-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid #e8e5f0;
	border-radius: 12px;
	padding: 14px;
	background: #fff;
	cursor: pointer;
	min-height: 64px;
}

.mw-club-item:hover {
	border-color: #c4b5fd;
}

.mw-club-item.mw-club-on {
	border: 1.5px solid #7c3aed;
}

.mw-club-name {
	font-size: 14px;
	line-height: 1.35;
	flex: 1 1 auto;
}

.mw-club-code {
	font-size: 11.5px;
	color: #6d28d9;
	background: #f3effe;
	border-radius: 20px;
	padding: 3px 9px;
	flex: 0 0 auto;
}

/* Step 3: payment */

.mw-pay-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	background: linear-gradient(100deg, #4c1d95, #7c3aed 55%, #a855f7);
	border-radius: 18px;
	padding: 26px 30px;
	color: #fff;
	margin-bottom: 24px;
}

.mw-pay-methods {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin-bottom: 28px;
}

@media (max-width: 767.98px) {
	.mw-pay-methods {
		grid-template-columns: 1fr;
	}
}

.mw-pay-card {
	background: #faf9ff;
	border: 1px solid #eeebf7;
	border-radius: 16px;
	padding: 22px 24px;
}

.mw-pay-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px dashed #e3ddf3;
}

.mw-pay-qr-box {
	width: 210px;
	height: 210px;
	background: #fff;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
	overflow: hidden;
}

.mw-slip-drop {
	border: 1.5px dashed #d6cff0;
	border-radius: 12px;
	padding: 18px 20px;
	background: #fcfbff;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* Step 4: review */

.mw-review-group {
	border: 1px solid #eeebf7;
	border-radius: 16px;
	background: #fdfcff;
	overflow: hidden;
	margin-bottom: 18px;
}

.mw-review-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 22px;
	background: #f7f4fe;
	border-bottom: 1px solid #eeebf7;
}

.mw-review-badge {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #7c3aed;
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 10px;
}

.mw-review-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 44px;
	padding: 6px 22px 14px;
}

.mw-review-extra {
	padding: 14px 22px 20px;
}

@media (max-width: 575.98px) {
	.mw-review-body {
		grid-template-columns: 1fr;
	}
}

.mw-review-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 18px;
	padding: 11px 2px;
	border-bottom: 1px solid #f1eff6;
	font-size: 14px;
}

.mw-review-row b {
	font-size: 14.5px;
	font-weight: 600;
	text-align: right;
}

/* Nav buttons */

.mw-nav {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #f1eff6;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.mw-btn-back {
	font-size: 15px;
	color: #343a40;
	background: #fff;
	border: 1px solid #d6d2e0;
	border-radius: 30px;
	padding: 11px 30px;
}

.mw-btn-next {
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #15803d;
	border: none;
	border-radius: 30px;
	padding: 11px 30px;
}

/* Profile photo (edit form upload + read-only view) */

.member-wizard-scope .avatar-upload {
	position: relative;
	max-width: 160px;
	margin: 4px auto 20px;
}

.member-wizard-scope .avatar-upload .avatar-preview {
	width: 160px;
	height: 160px;
	position: relative;
	border-radius: 100%;
	border: 4px solid #f3effe;
	box-shadow: 0 2px 8px rgba(76, 54, 120, .12);
}

.member-wizard-scope .avatar-upload .avatar-preview > div {
	width: 100%;
	height: 100%;
	border-radius: 100%;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

.member-wizard-scope .avatar-upload .avatar-edit {
	position: absolute;
	right: 6px;
	bottom: 6px;
}

.member-wizard-scope .avatar-upload .avatar-edit input[type="file"] {
	display: none;
}

.member-wizard-scope .avatar-upload .avatar-edit label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	border-radius: 100%;
	background: #7c3aed;
	color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
	cursor: pointer;
}

.member-wizard-scope .avatar-upload .avatar-edit label:after {
	content: "\f040";
	font-family: "FontAwesome";
	font-size: 15px;
}

.mw-btn-next:hover,
.mw-btn-back:hover {
	opacity: .92;
}

/* Enlarged-font opt-in for the read-only member detail pages
   (member/profile/view, admin/members/view). Scoped to .mw-view-lg so the
   registration wizard's own review step keeps its normal size. */

.mw-view-lg .mw-review-head span {
	font-size: 17.5px;
}

.mw-view-lg .mw-review-row {
	font-size: 16px;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
}

.mw-view-lg .mw-review-row > span {
	font-size: 13px;
	color: #8b8594;
}

.mw-view-lg .mw-review-row b {
	font-size: 16.5px;
	text-align: left;
}

.mw-view-lg .mw-review-badge {
	width: 28px;
	height: 28px;
	font-size: 14px;
}

.mw-view-lg .mw-club-name {
	font-size: 15.5px;
}

.mw-view-lg .mw-club-code {
	font-size: 12.5px;
}

/* Mobile: cut the left/right padding on every member-wizard-scoped page
   (registration wizard, admin member form/view, profile form/view) so
   content isn't squeezed on narrow screens. */

@media (max-width: 575.98px) {
	.member-wizard-scope .mw-page-wrap {
		padding: 18px 0px 0px;
	}

	.member-wizard-scope .mw-panel {
		padding: 20px 16px 18px;
	}

	.mw-review-head {
		padding: 12px 14px;
	}

	.mw-review-body {
		padding: 4px 14px 10px;
	}

	.mw-review-extra {
		padding: 10px 14px 16px;
	}

	.mw-pay-card {
		padding: 18px 16px;
	}

	.mw-slip-drop {
		padding: 14px 16px;
	}
}
