:root {
	--step-header-color1:#3a1e83;
	--step-header-color2:#00a8a5;
	--pkg-a-color: #00bfb2; /* Teal */
	--pkg-b-color: #008cc1; /* Blue */
	--pkg-c-color: #f05a5a; /* Red */
	--pkg-d-color: #f6b527; /* Yellow */
	--gray-bg: #f2f2f2;
	--dark-blue: #004d80; /* Headers */
	--border-color: #ddd;
	--text-color: #333;
}



.reg-container {
	width:100%;
	max-width: 1300px; /* 限制最大寬度，避免表格過度拉伸 */
	margin: 0 auto;
	padding: 0 15px;
}

h1.page-title {
	font-size: 1.5rem;
	border-bottom: 2px solid #ccc;
	padding-bottom: 10px;
	margin-bottom: 20px;
	color: #333;
}

/* --- Step Headers --- */
.step-header {
	background: linear-gradient(90deg, var(--step-header-color1), var(--step-header-color2));
	color: #fff;
	padding: 10px 15px;
	font-weight: bold;
	border-radius: 10px 10px 0 0;
	margin-top: 30px;
	font-size: 2rem;
	line-height: 1;
}
.step-num {
	font-size: 2.7rem;
	line-height: 1;
	margin-right: .35rem;
}

/* --- Table Styling --- */
.table-scroll-wrapper {
	overflow-x: auto; /* 手機版橫向滾動關鍵 */
	border: 1px solid var(--border-color);
	border-top: none;
}

.pricing-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 700px; /* 確保在手機上有足夠寬度顯示，觸發滾動 */
}

.pricing-table th, .pricing-table td {
	padding: 20px 10px;
	/* border: 1px solid var(--border-color); */
	vertical-align: middle;
}

.pricing-table tr.fee-row td {
	border-bottom: 1px solid var(--border-color);
}

.subtotal-table {
	width: 100%;
	border-collapse: collapse;
	/* min-width: 800px;  確保在手機上有足夠寬度顯示，觸發滾動 */
}

.subtotal-table th, .subtotal-table td {
	padding: 10px;
	border: 1px solid var(--border-color);
	vertical-align: middle;
}

.subtotal-table td.sum-subtotal {
	text-align: right;
}

/* Header Columns */
.col-program {
	background-color: #777;
	color: #fff;
	width: 25%;
	text-align: center;
}

.col-package {
	color: #fff;
	text-align: center;
	position: relative;
	padding-bottom: 20px; /* 預留箭頭空間 */
	width: 18.75%;
}

/* Package Colors & Arrows */
.pkg-a { background-color: var(--pkg-a-color); }
.pkg-b { background-color: var(--pkg-b-color); }
.pkg-c { background-color: var(--pkg-c-color); }
.pkg-d { background-color: var(--pkg-d-color); }

/* 使用偽元素製作下方三角形箭頭 */
.col-package::after {
	content: "";
	position: absolute;
	bottom: -10px; /* 往下突出 */
	left: 50%;
	transform: translateX(-50%);
	width: 0; 
	height: 0; 
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 10px solid; /* 繼承上方顏色需個別設定 */
	z-index: 2;
}
.pkg-a::after { border-top-color: var(--pkg-a-color); }
.pkg-b::after { border-top-color: var(--pkg-b-color); }
.pkg-c::after { border-top-color: var(--pkg-c-color); }
.pkg-d::after { border-top-color: var(--pkg-d-color); }

.pkg-header .letter {
	display: block;
	font-size: 2rem;
	font-weight: bold;
}
.pkg-header .desc {
	font-size: 0.75rem;
	text-transform: uppercase;
	line-height: 1.2;
	display: block;
}

/* Rows */
.row-label {
	font-size: 1rem;
	line-height: 1.4;
}
.sub-list {
	list-style: circle;
	list-style-position:outside;
	padding-left: 15px;
	margin: 5px 0 0;
	font-size: 1rem;
	color: #666;
}
.sub-list li { 
	margin-bottom: 3px;
 }
 
 .sub-list li span{
	 font-size: .85rem;
	 display: block;
 } 
 
.note {
	font-size: 0.8rem;
	color: #888;
	margin-top: 3px;
}

.bg-gray { background-color: var(--gray-bg); }

/* Checkmark Icon (CSS Only) */
.check-cell { text-align: center; }
.check-icon {
	display: inline-block;
	width: 24px;
	height: 24px;
	border: 2px solid #8cc63f; /* Green */
	border-radius: 50%;
	position: relative;
}
.check-icon::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 3px;
	width: 6px;
	height: 10px;
	border: solid #8cc63f;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Registration Fee Section */
.fee-header-row td {
	background-color: #777;
	color: #fff;
	text-align: center;
	font-weight: bold;
	padding: 8px;
}

/* --- Radio Button Styling inside Table --- */
.price-cell {
	padding: 5px !important; /* 縮小 padding 讓 label 填滿 */
	text-align: center;
	position: relative;
}

/* 背景色 */
.pkg-a-bg { background-color: rgba(0, 191, 178, 1); } /* 淺色背景 */
.pkg-b-bg { background-color: rgba(0, 140, 193, 1); }
.pkg-c-bg { background-color: rgba(240, 90, 90, 1); }
.pkg-d-bg { background-color: rgba(246, 181, 39, 1); }

/* 隱藏原生 Radio */
.price-radio input[type="radio"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

/* 自訂 Label 樣式 */
.price-box {
	display: flex;             /* 改用 Flex 排版 */
	flex-direction: column;    /* 垂直排列 */
	align-items: center;       /* 水平置中 */
	justify-content: center;
	padding: 10px 5px;         /* 稍微調整內距 */
	border: 2px solid transparent; 
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	min-height: 90px;          /* 確保高度一致，視覺較整齊 */
}

/* --- 2. 製作 Radio 外圈 (空心圓) --- */
.radio-circle {
	display: block;
	width: 20px;
	height: 20px;
	border: 2px solid #aaa;    /* 未選中時是灰色框 */
	border-radius: 50%;        /* 變圓形 */
	margin-bottom: 8px;        /* 與下方價格保持距離 */
	position: relative;        /* 為了讓裡面的實心圓點定位 */
	background-color: #fff;    /* 圈圈內部填白 */
	transition: all 0.2s;
}

/* --- 3. 製作 Radio 內心 (實心點 - 預設隱藏) --- */
.radio-circle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0); /* 預設縮小隱藏 */
	width: 10px;
	height: 10px;
	background-color: var(--dark-blue); /* 實心點顏色 */
	border-radius: 50%;
	transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 彈跳效果 */
}

/* --- 4. 選中狀態 (Checked State) --- */

/* 選中時：外框變色 (原本的黑框效果保留，或改深藍色) */
.price-radio input[type="radio"]:checked + .price-box {
	background-color: #fff;
	border-color: var(--dark-blue); /* 建議改為深藍色，比純黑更有質感 */
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	transform: translateY(-2px);
}

/* 選中時：Radio 外圈變色 */
.price-radio input[type="radio"]:checked + .price-box .radio-circle {
	border-color: var(--dark-blue);
}

/* 選中時：美金文字顏色 */
.price-radio input[type="radio"]:checked + .price-box .usd-price {
	color: var(--dark-blue);
}

/* 選中時：Radio 內心彈出 */
.price-radio input[type="radio"]:checked + .price-box .radio-circle::after {
	transform: translate(-50%, -50%) scale(1); /* 放大顯示 */
}

.main-price {
	font-weight: bold;
	font-size: 1rem;
	color: #fff;
	padding: 5px 10px;
	border-radius: 20px;
	display: inline-block;
	margin-bottom: 5px;
	white-space: nowrap;
}

.usd-price {
	font-size: 0.8rem;
	color: #fff;
}

/* 根據不同方案設定按鈕顏色 */
.pkg-a-bg .main-price { background-color: var(--pkg-a-color); }
.pkg-b-bg .main-price { background-color: var(--pkg-b-color); }
.pkg-c-bg .main-price { background-color: var(--pkg-c-color); }
.pkg-d-bg .main-price { background-color: var(--pkg-d-color); }

/* Checked State (被選中時的樣式) */
.price-radio input[type="radio"]:checked + .price-box {
	background-color: #fff;
	border-color: #333;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	transform: scale(1.05);
}

.strikethrough { text-decoration: line-through; }
.disabled-look { opacity: 0.6; pointer-events: none; }
.price-text { text-align: center; font-weight: bold; color: #fff; }

/* --- Info Sections --- */
.discounts-info {
	background-color: #f9f9f9;
	padding: 15px;
	font-size: 1rem;
	border: 1px solid #eee;
	margin-top: 10px;
}

.discounts-info.s2{
	background-color: #fff;
	padding: 15px;
	margin-top: 0;
}

.discounts-info ul { padding-left: 20px; margin: 0; list-style: disc;}
ul.terms-list{
	list-style: disc;
	padding-left:20px;
}
.discounts-info li { margin-bottom: 5px; }

.discounts-info a:link,
.discounts-info a:visited,
.discounts-info a:active{
	text-decoration: underline;
}

.section-box.blue-header {
	background-color: var(--dark-blue);
	color: #fff;
	padding: 10px 15px;
	margin-top: 20px;
}

.section-box.red-header {
	background-color: var(--pkg-c-color);
	color: #fff;
	padding: 10px 15px;
	margin-top: 20px;
}

.section-box h3 { margin: 0; font-size: 1rem; }
.content-box {
	border: 1px solid var(--border-color);
	padding: 15px;
}

/* --- Checkbox Styling (Additional Purchase) --- */
.checkbox-group { margin-bottom: 15px; }
.custom-checkbox {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	position: relative;
	padding-left: 30px;
}
.custom-checkbox input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}
.checkmark {
	position: absolute;
	top: 2px;
	left: 0;
	height: 20px;
	width: 20px;
	background-color: #eee;
	border: 1px solid #ccc;
	border-radius: 3px;
}
.custom-checkbox:hover input ~ .checkmark { background-color: #ccc; }
.custom-checkbox input:checked ~ .checkmark {
	background-color: var(--dark-blue);
	border-color: var(--dark-blue);
}
.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}
.custom-checkbox input:checked ~ .checkmark:after {
	display: block;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.label-text { font-size: 0.95rem; line-height: 1.5; }

/* --- Attendee Section (Radio & Select) --- */
.attendee-selection {
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 20px;
	border: 1px solid var(--border-color);
	border-top: none;
	flex-wrap: wrap; /* RWD */
}

.form-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.attendee-label {
	font-weight: bold;
	color: #000;
}

.radio-options {
	display: flex;
	gap: 10px;
}

/* Custom Radio Pill */
.custom-radio-pill input { display: none; }
.pill-box {
	display: inline-flex;
	align-items: center;
	padding: 8px 20px;
	border: 1px solid #ccc;
	border-radius: 20px;
	cursor: pointer;
	background: #fff;
	transition: 0.3s;
}
.pill-box .dot {
	height: 12px;
	width: 12px;
	background-color: #bbb;
	border-radius: 50%;
	margin-right: 8px;
	display: inline-block;
}
.custom-radio-pill input:checked + .pill-box {
	border-color: var(--dark-blue);
	color: var(--dark-blue);
	font-weight: bold;
}
.custom-radio-pill input:checked + .pill-box .dot {
	background-color: var(--dark-blue);
}

/* Select Style */
.select-container select {
	padding: 8px 15px;
	border-radius: 20px;
	border: 1px solid #ccc;
	font-size: 1rem;
	min-width: 80px;
}

/* --- Action Button --- */
.action-area {
	text-align: center;
	margin-top: 30px;
	margin-bottom: 50px;
}
.btn-next {
	background-color: #0056b3;
	color: #fff;
	border: none;
	padding: 12px 40px;
	font-size: 1.1rem;
	border-radius: 30px;
	cursor: pointer;
	font-weight: bold;
	transition: background 0.3s;
}
.btn-next:hover {
	background-color: #004494;
}



/* =========================================
   Step 2: Registration Form Styles
   ========================================= */

/* Intro Text */
.form-intro {
	padding: 1rem 0;
	margin-bottom: 20px;
}
.form-intro h3 {
	margin-bottom: 5px;
	font-size: 1.2rem;
	color: #000;
}
.form-intro p {
	margin-top: 0;
	font-size: 0.95rem;
	color: #555;
}

/* Section Header (Dark Blue Bar) */
.form-section {
	margin-bottom: 30px;
}
.section-title-bar {
	background-color: #002d56; /* 深藍色背景 */
	color: #fff;
	padding: 10px 15px;
	font-weight: bold;
	font-size: 1rem;
	border-radius: 4px 4px 0 0;
}

.section-title-bar .att-no{
	font-size: 1.6rem;
	margin-right: .25rem;
}

.note-red {
	color: #ff6b6b;
	font-size: 0.85rem;
	font-weight: normal;
	margin-left: 10px;
}

.note-red-regular {
	color: #ff6b6b;
	font-size: 1.1rem;
	font-weight: bold;
	margin-left: 0px;
}

/* Form Grid / Table Layout */
.form-table {
	border: 1px solid #ccc;
	border-top: none;
	background-color: #fff;
}

.form-row {
	display: flex; /* 使用 Flexbox 模擬表格列 */
	border-bottom: 1px solid #ccc;
}
.form-row:last-child {
	border-bottom: none;
}

.form-row.flex-direction-column .form-input {
	align-items: flex-start;
	flex-direction: column;
}

.form-row.previewdata{
	padding:1.2rem;
	flex-direction: column;
}

.form-row.previewdata h2{
	font-size: 2.2rem;
	color:#75bc63;
	margin-bottom:1.2rem;
}

.form-row.previewdata p{
	margin-bottom:1rem;
}

.form-input input[type="text"]{
	padding: .5rem;
}

/* 左側 Label */
.form-label {
	width: 30%; /* 寬度佔比 */
	background-color: #fff; /* 圖片中為白色背景，如果想區隔可改 #f9f9f9 */
	padding: 12px 15px;
	font-size: 0.95rem;
	color: #333;
	display: flex;
	align-items: center;
	border-right: 1px solid #ccc; /* 中間的分隔線 */
	font-weight: 500;
}

.form-label.noborder {
	border-right: 0px; /* 中間的分隔線 */
}

/* 右側 Input 區域 */
.form-input {
	width: 70%;
	padding: 10px 15px;
	display: flex;
	align-items: center;
}

/* 必填星號 */
.req::before {
	content: "*";
	color: red;
	margin-right: 5px;
	font-weight: bold;
}
.note-blue-star::before {
	content: "*";
	color: #00aeff; /* 依照圖片中的淺藍色星號 */
	margin-right: 5px;
	font-weight: bold;
}

/* 輸入框樣式 */
.form-control {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box; /* 確保 padding 不會撐開寬度 */
}
.form-control:focus {
	outline: none;
	border-color: #0056b3;
	box-shadow: 0 0 5px rgba(0,86,179,0.2);
}

/* Radio Groups (Inline) */
.radio-group-inline {
	gap: 20px;
}
.radio-group-inline label {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Dietary Highlight Row (Cyan) */
.highlight-row .form-input.radio-group-highlight {
	background-color: #00ffff; /* 圖片中的亮青色背景 */
	width: 100%; /* 填滿 */
	gap: 20px;
}
.highlight-row .form-label {
	background-color: #e0faff; /* Label 也可以稍微帶點色，或保持白 */
}

/* Checkbox Bar (Same as...) */
.checkbox-bar {
	border: 1px solid #ccc;
	border-top: none;
	border-bottom: none; /* 與下方表格接合 */
	padding: 10px 15px;
	background-color: #fff;
}

/* Bottom Buttons */
.buttons-area {
	display: flex;
	justify-content: space-between;
	margin-top: 30px;
	margin-bottom: 50px;
}

.btn-back {
	background-color: #e67e22; /* 橘色 */
	color: #fff;
	border: none;
	padding: 12px 40px;
	font-size: 1.1rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
}
.btn-back:hover { background-color: #d35400; }

.btn-next-step {
	background-color: #c00095; /* 紫紅色 */
	color: #fff;
	border: none;
	padding: 12px 40px;
	font-size: 1.1rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
}
.btn-next-step:hover { background-color: #a0007c; }

/* ================= RWD Mobile ================= */
@media (max-width: 768px) {
	.form-row {
		flex-direction: column; /* 手機版改垂直排列 */
	}
	
	.form-label {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #eee; /* 改為底線區隔 */
		background-color: #f7f7f7; /* 手機版給標題加個底色比較清楚 */
		padding: 8px 15px;
	}
	
	.form-input {
		width: 100%;
		padding: 15px;
	}
	
	.radio-group-inline {
		flex-wrap: wrap; /* Radio 選項太多時自動換行 */
		gap: 15px;
	}
}


/* --- form-section 容器 --- */
.form-section .cards-wrapper {
	display: flex;
	flex-wrap: wrap; /* 自動換行 */
	gap: 20px;       /* 卡片間距 */
	margin-bottom: 30px;
}

/* --- 卡片主體 (仿 Bootstrap Card) --- */
.card {
	background-color: #fff;
	border: 1px solid rgba(0,0,0,.125);
	border-radius: 0.25rem;
	display: flex;
	flex-direction: row;
	min-width: 0;
	word-wrap: break-word;
	/* flex: 0 0 calc(33.333% - 20px); //桌機版三欄排列  */
	flex: 0 0 calc(100%);
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	transition: transform 0.2s, box-shadow 0.2s;
	gap:10px;
}

/* .card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
} */

/* --- 卡片內容區 --- */
.card-body {
	display: flex;
	flex: 1 1 auto;
	padding: 1.25rem;
	align-items: center;
	justify-content: space-between;
}

.card-text-wrapper{
	display: flex;
	flex-direction: column;
}

.additional-info{
	
}

.card-title {
	/* margin-bottom: 0.75rem; */
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--primary-blue); /* 使用您主視覺的藍色 */
}

.card-text {
	margin-top: 0;
	margin-bottom: .25rem;
	color: #6c757d;
}

/* --- 卡片底部 (選擇區) --- */
.card-footer {
	display: flex;
	padding: 0.75rem 1.25rem;
	background-color: rgba(0,0,0,.03);
	border-top: 1px solid rgba(0,0,0,.125);
	align-items: center;
}

/* --- 仿 Bootstrap 按鈕樣式 --- */
.btn-primary {
	display: inline-block;
	font-weight: 400;
	color: #fff;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	background-color: #007bff;
	border: 1px solid #007bff;
	padding: 0.375rem 0.75rem;
	font-size: 0.9rem;
	line-height: 1.5;
	border-radius: 0.25rem;
	transition: background-color 0.15s;
	text-decoration: none;
}

.btn-primary:hover {
	background-color: #0069d9;
	border-color: #0062cc;
}

/* --- RWD 響應式調整 --- */
@media (max-width: 992px) {
	.card {
		flex: 1 1 calc(50% - 20px); /* 平板版兩欄 */
	}
}

@media (max-width: 576px) {
	.card {
		flex: 1 1 100%; /* 手機版一欄 */
		flex-direction: column;
	}
}

/* --- Tab Navigation 容器 --- */
.attendee-tabs-wrapper {
	margin-bottom: 20px;
	border-bottom: 2px solid #ddd;
	overflow: hidden; /* 防止捲軸溢出 */
}

/* --- 可滑動的 Tab 區域 --- */
.attendee-tabs {
	display: flex;
	gap: 10px;
	overflow-x: auto; /* 關鍵：允許水平滑動 */
	white-space: nowrap;
	padding-bottom: 5px; /* 預留捲軸空間或避免切到底部 */
	
	/* 隱藏預設捲軸 (Chrome/Safari) */
	-webkit-overflow-scrolling: touch;
}
.attendee-tabs::-webkit-scrollbar {
	display: none; 
}

/* --- Tab 按鈕樣式 --- */
.tab-btn {
	background-color: #f8f9fa;
	border: 1px solid #ddd;
	border-bottom: none;
	border-radius: 8px 8px 0 0;
	padding: 1rem 1.5rem;
	text-align: center;
	font-size: 1rem;
	font-weight: 500;
	color: #666;
	cursor: pointer;
	transition: all 0.3s;
	flex: 0 0 auto; /* 關鍵：讓按鈕保持寬度，不被擠壓 */
}

/* --- Tab Hover 狀態 --- */
.tab-btn:hover {
	background-color: #e9ecef;
	color: #0056b3;
}

/* --- Active (選中) 狀態 --- */
.tab-btn.active {
	background-color: #0056b3; /* 主視覺藍色 */
	color: #fff;
	border-color: #0056b3;
	position: relative;
	top: 2px; /* 稍微往下蓋住底線，製造連結感 */
}

/* --- 內容區塊切換動畫 --- */
.attendee-pane {
	animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* 進度條 */

.step-process{
	display: flex;
	margin: 3rem 0;
	
}

.stepbody{
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0; 
	flex-direction: column;
	position: relative;
}

.step-process .stepbody:not(last-of-type):after {
	content: "";
	position: absolute;
	top: 28px;
	left: 50%;
	width: 0%;
	transition: width 1s ease-in;
	height: 5px;
	background: #c8c8c8;
	z-index: -1;
	width: 100%;
}

.step-process .stepbody:last-of-type:after {
	content: "";
	position: absolute;
	top: 12px;
	left: 50%;
	width: 0;
	transition: width 1s ease-in;
	height: 5px;
	background: #c8c8c8;
	z-index: -1;
	width: 0;
}

.step-process .stepbody.done:not(last-of-type):after {
	background: var(--primary-green);
}

.stepbody .stepNo{
	width: 60px;
	height: 60px;
	background: #a5a5a5;
	color:#fff;
	margin:0;
	padding:0;
	border-radius: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0; 
	margin-bottom: 1.2rem;
}

.stepbody.done .stepNo{
	background: var(--primary-green);
	
}

.stepbody h3{
	font-size: 2rem;
	line-height: 1;
	margin:0;
	padding:0;
}

.stepbody p{
	font-size: 1rem;
	margin: 0;
}


.arrowline{
	width:120px;
	display: flex;
	justify-content: center;
}

.arrowline img{
	width:40%;
	height: auto;
}


/* --- RWD Media Queries --- */
@media (max-width: 768px) {
	
	.card-body {
		align-items: flex-start;
		flex-direction: column;
	}
	
	.card-text-wrapper:first-child{
		margin-bottom:1.1rem;
	}

	
	.attendee-tabs {
		justify-content: center;
	}
	
	.step-header {
		font-size: 1.5rem;
	}
	
	/* 1. 調整外層容器：取消底線 */
	.attendee-tabs-wrapper {
		border-bottom: none; /* 手機版不需要那一條長長的 Tab 底線 */
		overflow: visible;   /* 讓高度隨按鈕行數自動撐開 */
		margin-bottom: 10px;
	}
	
	/* 2. 調整 Flex 區域：允許換行 */
	.attendee-tabs {
		flex-wrap: wrap;       /* 關鍵：讓按鈕超出寬度時自動換行 */
		overflow-x: visible;   /* 取消橫向滑動 */
		white-space: normal;   /* 取消強制不換行 */
		gap: 8px;              /* 按鈕之間的間距 */
	}
	
	/* 3. 調整按鈕樣式：變回獨立的按鈕 */
	.tab-btn {
		width:17%;
		/* 改為四周圓角 */
		border-radius: 5px; 
		
		/* 補回原本被 display: none 或 border-bottom: none 弄掉的下邊框 */
		border: 1px solid #ddd; 
		
		/* 調整內距，讓手機好點一點 */
		padding: .5rem;
		
		/* 確保字體置中 */
		text-align: center;
		
		/* 選擇性：如果您希望按鈕寬度平均分配，可以打開下面這行 */
		/* flex: 1; */ 
	}
	
	/* 4. 調整 Active 狀態：取消「蓋住底線」的位移特效 */
	.tab-btn.active {
		top: 0; /* 取消原本為了蓋住底線設定的 top: 2px */
		background-color: #0056b3;
		color: #fff;
		border-color: #0056b3;
	}
	
	
	/* 1. 設定容器捲動 */
	.table-scroll-wrapper {
		overflow-x: auto;
		border: 1px solid var(--border-color);
		border-top: none;
		/* 加入捲動時的平滑感 */
		-webkit-overflow-scrolling: touch; 
		/* 確保 sticky 運作 */
		position: relative; 
	}
	
	/* 2. 鎖定第一欄 (Header 與 Body) */
	.pricing-table th:first-child,
	.pricing-table td:first-child {
		position: sticky;
		left: 0;
		z-index: 10; /* 確保浮在其他內容上面 */
		background-color: #fff; /* 重要！必須有背景色，不然字會疊在一起 */
		border-right: 1px solid #ddd; /* 加一條右框線區隔 */
	}
	
	.pricing-table .fee-header-row td{
		background-color: #777;
		color: #fff;
		text-align: left;
		font-weight: bold;
		padding: 8px;
	}
	
	/* 針對 Header 的第一欄，因為它本身可能有背景色，需特別處理 */
	.pricing-table th:first-child {
		z-index: 11; /* Header 層級要比 Body 高 */
		background-color: #777; /* 維持原本的灰色背景 */
	}
	
	/* 3. 視覺優化：當捲動時，給第一欄加點陰影 */
	.pricing-table th:first-child::after,
	.pricing-table td:first-child::after {
		content: '';
		position: absolute;
		top: 0;
		right: -5px; /* 陰影位置 */
		bottom: 0;
		width: 5px;
		background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
		pointer-events: none;
	}
	
	.pricing-table th .desc {
		font-size: 0.65rem; /* 手機版字縮小 */
	}
	.pricing-table th .letter {
		font-size: 1.5rem;
	}
	
	.attendee-selection {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	
	.form-group {
		width: 100%;
		justify-content: space-between;
	}
	
	.form-group.sub_style{
		flex-direction: column;
		justify-content: center;
	}
	
	/* 讓價格按鈕在手機上好按一點 */
	.price-box {
		min-height: auto; /* 手機版高度自適應 */
		padding: 8px 2px;
	}
	.radio-circle {
		width: 16px;      /* 手機版圈圈稍微縮小 */
		height: 16px;
		margin-bottom: 4px;
	}
	.radio-circle::after {
		width: 8px;
		height: 8px;
	}
	
	.main-price {
		font-size: 0.9rem;
		padding: 4px 8px;
	}
	
	.row-label {
		font-size: 0.9rem;
		min-width: 100px; /* 確保第一欄不會被擠壓太小 */
		max-width: 150px; /* 也不要太大 */
	}
	
	.sub-list {
		padding-left: 20px;
	}
	
	.form-input input[type="text"]{
		width:100%;
	}
}
