/* AFAMS Membership Details Widget Stylesheet */

.afam-membership-details-wrapper {
	width: 100%;
	padding: 40px 0 60px;
	background-color: #f8fafc;
	font-family: 'Montserrat', 'Open Sans', sans-serif;
	box-sizing: border-box;
}

.afam-membership-details-wrapper *,
.afam-membership-details-wrapper *::before,
.afam-membership-details-wrapper *::after {
	box-sizing: border-box;
}

/* CONTAINER */
.afam-membership-details-wrapper .afam-container,
.afam-container {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
}

/* SECTION TITLE WRAPPER WITH ACCENT LINES */
.afam-section-title-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 8px;
}

.afam-title-line {
	display: inline-block;
	width: 36px;
	height: 2px;
	background-color: #dfb15b;
	border-radius: 2px;
}

/* SECTION 1: TOP ROW */
.afam-top-section-row {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 24px;
	align-items: stretch;
	margin-bottom: 50px;
	width: 100%;
	max-width: 100%;
}

/* LEFT ELIGIBILITY CARD */
.afam-eligibility-col {
	display: flex;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.afam-eligibility-card {
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	padding: 30px 24px;
	box-shadow: 0 4px 18px rgba(6, 24, 48, 0.03);
	display: flex;
	flex-direction: column;
	width: 100%;
}

.afam-eligibility-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 800;
	color: #061830;
	margin: 0 0 14px 0;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.afam-eligibility-sub {
	font-size: 13.5px;
	color: #4a5568;
	line-height: 1.5;
	margin: 0 0 22px 0;
}

.afam-specialties-list {
	list-style: none;
	padding: 0;
	margin: 0 0 26px 0;
}

.afam-specialties-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13.5px;
	font-weight: 700;
	color: #1a202c;
	padding: 8px 0;
}

.afam-specialty-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #dfb15b;
	flex-shrink: 0;
}

/* OVERSEAS BOX */
.afam-overseas-box {
	background-color: #fafbfc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px;
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
}

.afam-overseas-icon {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: #f0f4f8;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.afam-overseas-info {
	display: flex;
	flex-direction: column;
}

.afam-overseas-title {
	font-size: 13.5px;
	font-weight: 700;
	color: #061830;
	margin: 0 0 3px 0;
}

.afam-overseas-desc {
	font-size: 11.5px;
	color: #64748b;
	margin: 0;
	line-height: 1.35;
}

/* RIGHT HOW TO JOIN CARD */
.afam-htj-col {
	display: flex;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.afam-htj-card {
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	padding: 30px 28px;
	box-shadow: 0 4px 18px rgba(6, 24, 48, 0.03);
	display: flex;
	flex-direction: column;
	width: 100%;
}

.afam-htj-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 800;
	color: #061830;
	margin: 0;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.afam-htj-subtitle {
	text-align: center;
	font-size: 13.5px;
	color: #64748b;
	margin: 4px 0 32px 0;
}

/* STEPPER */
.afam-steps-stepper {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 30px;
	gap: 6px;
}

.afam-step-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
	min-width: 0;
}

.afam-step-icon-wrap {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	border: 1.5px solid #dfb15b;
	background-color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: #061830;
	margin-bottom: 12px;
	box-shadow: 0 3px 10px rgba(6, 24, 48, 0.04);
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.afam-step-item:hover .afam-step-icon-wrap {
	transform: translateY(-3px);
	border-color: #061830;
}

.afam-step-num {
	font-size: 10.5px;
	font-weight: 700;
	color: #718096;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.afam-step-title {
	font-size: 13.5px;
	font-weight: 700;
	color: #061830;
	margin: 0 0 6px 0;
	line-height: 1.25;
}

.afam-step-desc {
	font-size: 11.5px;
	color: #64748b;
	margin: 0;
	line-height: 1.4;
	padding: 0 4px;
}

.afam-step-arrow {
	display: flex;
	align-items: center;
	margin-top: 21px;
	flex-shrink: 0;
	opacity: 0.6;
}

/* ACTIONS */
.afam-htj-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin-top: auto;
	padding-top: 15px;
}

.afam-btn-apply {
	display: inline-block;
	background-color: #061830;
	color: #ffffff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.6px;
	padding: 12px 26px;
	border-radius: 6px;
	text-decoration: none;
	transition: background-color 0.25s ease, transform 0.25s ease;
	text-transform: uppercase;
}

.afam-btn-apply:hover {
	background-color: #0d2a52;
	color: #ffffff;
	transform: translateY(-2px);
}

.afam-link-login {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: #061830;
	text-decoration: none;
	transition: color 0.25s ease;
}

.afam-link-login:hover {
	color: #dfb15b;
}

.afam-arrow-icon {
	font-size: 16px;
	transition: transform 0.25s ease;
}

.afam-link-login:hover .afam-arrow-icon {
	transform: translateX(4px);
}


/* SECTION 2: BOTTOM MEMBERSHIP FEES */
.afam-bottom-section-row {
	width: 100%;
}

.afam-fees-header {
	margin-bottom: 24px;
}

.afam-fees-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 800;
	color: #061830;
	margin: 0;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.afam-fees-content-grid {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 20px;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
}

/* TABLE STYLING */
.afam-fees-table-col {
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.afam-table-container {
	border-radius: 10px;
	overflow: hidden !important;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	width: 100% !important;
	max-width: 100% !important;
	box-shadow: 0 4px 16px rgba(6, 24, 48, 0.04);
	box-sizing: border-box;
}

.afam-table {
	width: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
	table-layout: fixed !important;
	border-collapse: collapse;
	font-size: 13.5px;
	text-align: left;
	box-sizing: border-box;
	margin: 0;
}

.afam-table th {
	background-color: #061830;
	color: #ffffff;
	font-weight: 700;
	padding: 14px 16px;
	text-align: center;
	font-size: 13.5px;
	border: none;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
	letter-spacing: 0.3px;
	white-space: normal !important;
	word-break: break-word;
	overflow-wrap: break-word;
	box-sizing: border-box;
}

.afam-table th:first-child {
	text-align: left;
	width: 55%;
}

.afam-table th:last-child {
	border-right: none;
	width: 45%;
}

.afam-table td {
	padding: 14px 16px;
	text-align: center;
	color: #2d3748;
	border-bottom: 1px solid #edf2f7;
	border-right: 1px solid #edf2f7;
	background-color: #ffffff;
	font-weight: 600;
	font-size: 13.5px;
	white-space: normal !important;
	word-break: break-word;
	overflow-wrap: break-word;
	box-sizing: border-box;
}

.afam-table td:first-child {
	text-align: left;
	width: 55%;
}

.afam-table td:last-child {
	border-right: none;
	width: 45%;
}

.afam-table tr:nth-child(even) td {
	background-color: #f8fafc;
}

.afam-table tr:last-child td {
	border-bottom: none;
}

.afam-table td.afam-td-type {
	text-align: left;
	font-weight: 700;
	color: #061830;
}

.afam-table td.afam-td-total {
	font-weight: 800;
	color: #061830;
}

/* NOTE BOX BELOW TABLE */
.afam-fees-note-box {
	background-color: #f0f5fa;
	border-radius: 8px;
	padding: 12px 16px;
	margin-top: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #e1effe;
}

.afam-note-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #2b6cb0;
	flex-shrink: 0;
}

.afam-note-text {
	font-size: 12px;
	color: #2b6cb0;
	font-weight: 600;
	line-height: 1.4;
}

/* RIGHT PAYMENT CTA CARD */
.afam-pay-card-col {
	display: flex;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.afam-pay-card {
	background-color: #061830;
	border-radius: 14px;
	padding: 32px 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	box-shadow: 0 8px 24px rgba(6, 24, 48, 0.16);
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.afam-pay-card-icon {
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 12px;
	border: 1.5px solid rgba(223, 177, 91, 0.35);
	background: rgba(255, 255, 255, 0.04);
}

.afam-pay-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #dfb15b;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.afam-pay-desc {
	font-size: 12.5px;
	color: #a0aec0;
	line-height: 1.5;
	margin: 0 0 24px 0;
}

.afam-btn-pay {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: linear-gradient(135deg, #e6c278 0%, #cba248 100%);
	color: #061830;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.5px;
	padding: 13px 20px;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.25s ease;
	text-transform: uppercase;
	box-shadow: 0 4px 14px rgba(223, 177, 91, 0.25);
}

.afam-btn-pay:hover {
	background: linear-gradient(135deg, #ecd08c 0%, #d8b259 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(223, 177, 91, 0.4);
	color: #061830;
}


/* RESPONSIVE DESIGN FOR TABLET & MOBILE */
@media (max-width: 1024px) {
	.afam-membership-details-wrapper {
		padding: 35px 0 50px;
	}

	.afam-top-section-row {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-bottom: 40px;
	}

	.afam-fees-content-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.afam-steps-stepper {
		flex-wrap: wrap;
		gap: 20px;
		justify-content: center;
	}

	.afam-step-item {
		flex: 1 1 140px;
		min-width: 120px;
	}

	.afam-step-arrow {
		display: none;
	}
}

@media (max-width: 768px) {
	.afam-container {
		padding: 0 16px;
	}

	.afam-eligibility-card,
	.afam-htj-card {
		padding: 24px 18px;
	}

	.afam-eligibility-title,
	.afam-htj-title,
	.afam-fees-title {
		font-size: 18px;
	}

	.afam-eligibility-sub,
	.afam-htj-subtitle {
		font-size: 13px;
		margin-bottom: 20px;
	}

	.afam-title-line {
		width: 24px;
	}

	.afam-steps-stepper {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
		margin-bottom: 24px;
	}

	.afam-step-icon-wrap {
		width: 52px;
		height: 52px;
		font-size: 18px;
		margin-bottom: 8px;
	}

	.afam-step-title {
		font-size: 13px;
	}

	.afam-step-desc {
		font-size: 11px;
	}

	.afam-overseas-box {
		padding: 12px;
		gap: 10px;
	}

	.afam-overseas-icon {
		width: 38px;
		height: 38px;
	}

	.afam-overseas-title {
		font-size: 13px;
	}

	.afam-overseas-desc {
		font-size: 11px;
	}
}

@media (max-width: 640px) {
	.afam-fees-content-grid {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
	}

	.afam-fees-header {
		margin-bottom: 20px;
	}

	.afam-fees-title {
		font-size: 18px;
		letter-spacing: 0.5px;
	}

	.afam-table-container {
		overflow: hidden !important;
		border-radius: 8px;
		width: 100% !important;
		max-width: 100% !important;
		display: block;
		box-sizing: border-box;
	}

	.afam-table {
		width: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
		table-layout: fixed !important;
		font-size: 12px;
		box-sizing: border-box;
	}

	.afam-table th {
		padding: 10px 8px !important;
		font-size: 11.5px !important;
		white-space: normal !important;
		word-break: break-word !important;
		overflow-wrap: break-word !important;
	}

	.afam-table th:first-child {
		width: 55% !important;
		text-align: left !important;
	}

	.afam-table th:last-child {
		width: 45% !important;
		text-align: center !important;
	}

	.afam-table td {
		padding: 11px 8px !important;
		font-size: 12px !important;
		white-space: normal !important;
		word-break: break-word !important;
		overflow-wrap: break-word !important;
	}

	.afam-table td:first-child {
		width: 55% !important;
		text-align: left !important;
	}

	.afam-table td:last-child {
		width: 45% !important;
		text-align: center !important;
	}

	.afam-table td.afam-td-type {
		white-space: normal !important;
		font-weight: 700;
	}

	.afam-htj-actions {
		flex-direction: column;
		gap: 14px;
		align-items: stretch;
		text-align: center;
	}

	.afam-btn-apply {
		width: 100%;
		text-align: center;
		padding: 12px 18px;
	}

	.afam-link-login {
		justify-content: center;
	}

	.afam-fees-note-box {
		padding: 11px 12px;
		align-items: flex-start;
		border-radius: 8px;
		margin-top: 12px;
	}

	.afam-note-text {
		font-size: 11.5px;
		line-height: 1.45;
	}

	.afam-pay-card {
		padding: 26px 18px;
		border-radius: 12px;
	}

	.afam-pay-card-icon {
		width: 52px;
		height: 52px;
		margin-bottom: 12px;
	}

	.afam-pay-title {
		font-size: 17px;
		margin-bottom: 6px;
	}

	.afam-pay-desc {
		font-size: 12px;
		line-height: 1.45;
		margin-bottom: 18px;
	}

	.afam-btn-pay {
		padding: 12px 20px;
		font-size: 12px;
		max-width: 320px;
		width: 100%;
	}
}

@media (max-width: 420px) {
	.afam-steps-stepper {
		grid-template-columns: 1fr;
	}

	.afam-step-item {
		width: 100%;
	}

	.afam-table th {
		padding: 10px 8px;
		font-size: 11.5px;
	}

	.afam-table td {
		padding: 11px 8px;
		font-size: 12px;
	}

	.afam-pay-card {
		padding: 22px 14px;
	}
}
