/**
 * ASCSC Membership – Public / Front-end Styles
 *
 * Colour palette (matching alfoldclub.com – minimalist black/white/grey + CTA blue):
 *   Primary text    #1e1e1e
 *   Charcoal        #32373c
 *   Accent/CTA      #0693e3
 *   Success         #00a32a
 *   Warning         #dba617
 *   Error           #cf2e2e
 *   Background      #ffffff
 *   Light BG        #f8f9fa
 *   Border          #dcdcde
 *   Muted text      #787c82
 */

/* ============================================================
   Reset & Base
   ============================================================ */
.ascsc-wrap *,
.ascsc-wrap *::before,
.ascsc-wrap *::after {
	box-sizing: border-box;
}

.ascsc-wrap {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	color: #1e1e1e;
	line-height: 1.6;
}

/* ============================================================
   Notices
   ============================================================ */
.ascsc-notice {
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
	border-left: 4px solid transparent;
}

.ascsc-notice--success {
	background: #f0fdf4;
	border-color: #00a32a;
	color: #166534;
}

.ascsc-notice--error {
	background: #fef2f2;
	border-color: #cf2e2e;
	color: #991b1b;
}

.ascsc-notice--warning {
	background: #fffbeb;
	border-color: #dba617;
	color: #92400e;
}

.ascsc-notice--info {
	background: #eff6ff;
	border-color: #0693e3;
	color: #1e40af;
}

/* ============================================================
   Buttons
   ============================================================ */
.ascsc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 11px 22px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background .15s, border-color .15s, color .15s, opacity .15s;
	white-space: nowrap;
}

.ascsc-btn--primary {
	background: #0693e3;
	color: #fff;
	border-color: #0693e3;
}

.ascsc-btn--primary:hover,
.ascsc-btn--primary:focus {
	background: #0579c0;
	border-color: #0579c0;
	color: #fff;
}

.ascsc-btn--secondary {
	background: #32373c;
	color: #fff;
	border-color: #32373c;
}

.ascsc-btn--secondary:hover,
.ascsc-btn--secondary:focus {
	background: #1e1e1e;
	border-color: #1e1e1e;
	color: #fff;
}

.ascsc-btn--outline {
	background: transparent;
	color: #32373c;
	border-color: #dcdcde;
}

.ascsc-btn--outline:hover {
	border-color: #32373c;
	color: #1e1e1e;
}

.ascsc-btn--block {
	width: 100%;
	justify-content: center;
}

.ascsc-btn--sm {
	padding: 7px 16px;
	font-size: 13px;
}

.ascsc-btn:disabled,
.ascsc-btn[disabled] {
	opacity: .6;
	cursor: not-allowed;
}

/* ============================================================
   Form Card (login / register)
   ============================================================ */
.ascsc-form-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	max-width: 520px;
	margin: 0 auto;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
	overflow: hidden;
}

.ascsc-form-header {
	background: #32373c;
	color: #fff;
	padding: 24px 28px;
	text-align: center;
}

.ascsc-form-header h2 {
	margin: 0 0 6px;
	font-size: 20px;
	color: #fff;
}

.ascsc-form-header p {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, .75);
}

.ascsc-form {
	padding: 28px;
}

/* ============================================================
   Form Groups
   ============================================================ */
.ascsc-form-group {
	margin-bottom: 18px;
}

.ascsc-form-group label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 13px;
	font-weight: 600;
	color: #32373c;
	margin-bottom: 6px;
}

.ascsc-form-group input[type="text"],
.ascsc-form-group input[type="email"],
.ascsc-form-group input[type="password"],
.ascsc-form-group input[type="number"],
.ascsc-form-group select,
.ascsc-form-group textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-size: 15px;
	color: #1e1e1e;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}

.ascsc-form-group input:focus,
.ascsc-form-group select:focus,
.ascsc-form-group textarea:focus {
	outline: none;
	border-color: #0693e3;
	box-shadow: 0 0 0 3px rgba(6, 147, 227, .15);
}

.ascsc-input--disabled {
	background: #f8f9fa !important;
	color: #787c82 !important;
	cursor: not-allowed;
}

.ascsc-form-row--half {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ascsc-field-hint {
	display: block;
	font-size: 12px;
	color: #787c82;
	margin-top: 4px;
}

.required {
	color: #cf2e2e;
}

.ascsc-checkbox-group label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	cursor: pointer;
	font-size: 14px;
}

.ascsc-checkbox-group input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

.ascsc-forgot-link {
	font-size: 12px;
	font-weight: 400;
	color: #0693e3;
	text-decoration: none;
}

.ascsc-forgot-link:hover {
	text-decoration: underline;
}

.ascsc-form-footer-text {
	text-align: center;
	margin-top: 16px;
	font-size: 14px;
	color: #787c82;
}

.ascsc-form-footer-text a {
	color: #0693e3;
}

/* ============================================================
   Member Dashboard
   ============================================================ */
.ascsc-dashboard-header {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #32373c;
	color: #fff;
	padding: 20px 24px;
	border-radius: 6px;
	margin-bottom: 24px;
}

.ascsc-avatar {
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .3);
}

.ascsc-dashboard-welcome {
	margin: 0;
	font-size: 20px;
	color: #fff;
}

.ascsc-dashboard-subtitle {
	margin: 4px 0 0;
	font-size: 13px;
	color: rgba(255, 255, 255, .7);
}

.ascsc-logout-btn {
	margin-left: auto;
	color: #fff;
	border-color: rgba(255, 255, 255, .4);
}

.ascsc-logout-btn:hover {
	background: rgba(255, 255, 255, .1);
	border-color: #fff;
	color: #fff;
}

.ascsc-dashboard-grid {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 20px;
	margin-bottom: 20px;
}

.ascsc-dashboard-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 24px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.ascsc-profile-card {
	grid-column: 1 / -1;
}

.ascsc-card-title {
	font-size: 16px;
	font-weight: 700;
	color: #32373c;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}

/* Membership status indicator */
.ascsc-membership-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 20px;
	margin-bottom: 16px;
}

.ascsc-membership-status--active    { background: #d1fae5; color: #065f46; }
.ascsc-membership-status--expired   { background: #fee2e2; color: #991b1b; }
.ascsc-membership-status--cancelled { background: #f3f4f6; color: #6b7280; }
.ascsc-membership-status--pending   { background: #fef3c7; color: #92400e; }

.ascsc-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.ascsc-definition-list {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	margin: 0 0 16px;
	font-size: 14px;
}

.ascsc-definition-list dt {
	font-weight: 600;
	color: #787c82;
}

.ascsc-definition-list dd {
	margin: 0;
	color: #1e1e1e;
}

.ascsc-expiry-badge {
	display: inline-block;
	background: #fef3c7;
	color: #92400e;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 6px;
}

/* Empty state */
.ascsc-membership-empty {
	text-align: center;
	padding: 20px 0;
}

.ascsc-empty-icon {
	font-size: 48px !important;
	width: 48px !important;
	height: 48px !important;
	color: #dcdcde;
	margin-bottom: 12px;
}

.ascsc-empty-text {
	color: #787c82;
	font-style: italic;
}

/* Payment list */
.ascsc-payment-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 320px;
	overflow-y: auto;
}

.ascsc-payment-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 10px 12px;
	background: #f8f9fa;
	border-radius: 4px;
	font-size: 13px;
}

.ascsc-payment-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ascsc-payment-desc {
	font-weight: 600;
	color: #32373c;
}

.ascsc-payment-date {
	color: #787c82;
	font-size: 12px;
}

.ascsc-payment-amount {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
}

.ascsc-amount {
	font-weight: 700;
	color: #1e1e1e;
}

.ascsc-payment-status {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
	font-weight: 600;
}

.ascsc-payment-status--succeeded { background: #d1fae5; color: #065f46; }
.ascsc-payment-status--pending   { background: #fef3c7; color: #92400e; }
.ascsc-payment-status--failed    { background: #fee2e2; color: #991b1b; }
.ascsc-payment-status--refunded  { background: #f3f4f6; color: #6b7280; }

/* Divider */
.ascsc-divider {
	border: none;
	border-top: 1px solid #f0f0f0;
	margin: 20px 0;
}

/* ============================================================
   Payment / Membership Type Selection
   ============================================================ */
.ascsc-payment-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 28px;
	align-items: start;
}

.ascsc-section-title {
	font-size: 20px;
	font-weight: 700;
	color: #32373c;
	margin: 0 0 20px;
}

.ascsc-type-cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ascsc-type-card {
	cursor: pointer;
	display: block;
}

.ascsc-type-radio {
	display: none;
}

.ascsc-type-card-inner {
	background: #fff;
	border: 2px solid #dcdcde;
	border-radius: 8px;
	padding: 20px;
	transition: border-color .2s, box-shadow .2s;
}

.ascsc-type-card:hover .ascsc-type-card-inner {
	border-color: #0693e3;
}

.ascsc-type-radio:checked + .ascsc-type-card-inner {
	border-color: #0693e3;
	box-shadow: 0 0 0 3px rgba(6, 147, 227, .15);
}

.ascsc-type-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
}

.ascsc-type-name {
	font-size: 17px;
	font-weight: 700;
	color: #32373c;
}

.ascsc-type-price {
	font-size: 20px;
	font-weight: 700;
	color: #0693e3;
}

.ascsc-type-price small {
	font-size: 13px;
	font-weight: 400;
	color: #787c82;
}

.ascsc-type-description {
	font-size: 14px;
	color: #787c82;
	margin: 0 0 10px;
}

.ascsc-type-features {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	font-size: 14px;
}

.ascsc-type-features li {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
	color: #3c434a;
}

.ascsc-type-features .dashicons {
	color: #00a32a;
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.ascsc-type-select-indicator {
	font-size: 13px;
	font-weight: 600;
	color: #0693e3;
	opacity: 0;
	transition: opacity .15s;
	display: flex;
	align-items: center;
	gap: 4px;
}

.ascsc-type-radio:checked + .ascsc-type-card-inner .ascsc-type-select-indicator {
	opacity: 1;
}

/* Payment panel */
.ascsc-payment-form-panel {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
	position: sticky;
	top: 32px;
}

.ascsc-order-summary {
	background: #f8f9fa;
	border-radius: 6px;
	padding: 14px 16px;
	margin-bottom: 20px;
}

.ascsc-order-summary h3 {
	margin: 0 0 8px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #787c82;
}

.ascsc-order-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 15px;
}

.ascsc-order-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 15px;
	border-bottom: 1px solid #e8e8e8;
}

.ascsc-order-row:last-child {
	border-bottom: none;
}

.ascsc-order-row--total {
	padding-top: 10px;
	font-size: 16px;
}

.ascsc-order-label {
	color: #50575e;
}

.ascsc-order-total {
	font-size: 18px;
	color: #1e2327;
}

.ascsc-payment-security-note {
	display: flex;
	align-items: center;
	gap: 6px;
	justify-content: center;
	font-size: 13px;
	color: #787c82;
	margin-top: 12px;
}

/* Stripe card element container */
.ascsc-card-element {
	padding: 12px 14px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}

.ascsc-card-element.StripeElement--focus {
	border-color: #0693e3;
	box-shadow: 0 0 0 3px rgba(6, 147, 227, .15);
}

.ascsc-card-errors {
	color: #cf2e2e;
	font-size: 13px;
	margin-top: 6px;
	min-height: 18px;
}

.ascsc-stripe-badges {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #787c82;
	margin: 14px 0 16px;
}

.ascsc-stripe-badges .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #00a32a;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
	.ascsc-form-row--half {
		grid-template-columns: 1fr;
	}

	.ascsc-dashboard-grid {
		grid-template-columns: 1fr;
	}

	.ascsc-dashboard-header {
		flex-wrap: wrap;
	}

	.ascsc-logout-btn {
		margin-left: 0;
	}

	.ascsc-payment-layout {
		grid-template-columns: 1fr;
	}

	.ascsc-payment-form-panel {
		position: static;
	}
}

@media (max-width: 480px) {
	.ascsc-form {
		padding: 20px;
	}

	.ascsc-type-header {
		flex-direction: column;
		gap: 4px;
	}
}
