@font-face {
	font-family: 'Pretendard';
	font-style: normal;
	font-weight: 200;
	src: url('../fonts/Pretendard-Regular.woff2') format('woff2');
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	background-color: #ffffff;
	color: #333;
	line-height: 1.6;
}

input, button{
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

input[type="radio"] {
	appearance: auto;
}


/* Header */
header {
	background-color: #ffffff;
	border-bottom: 1px solid #f5f6fa;
}

.header-container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	align-items: center;
	height: 59px;
}

.header-container a {
	display: inline-flex;
	align-items: center;
}

/* Main Container */
main {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 16px;
	margin-top: 40px;
}

/* Title Section */
.title-section {
	display: flex;
	align-items: flex-end;
	gap: 20px;
	padding: 60px 0 40px;
}

.title-section h1 {
	font-size: 32px;
	font-weight: 300;
	color: #333;
	margin: 0;
}

.title-section p {
	font-size: 15px;
	color: #9ca3af;
	margin: 0;
	padding-bottom: 5px;
}

/* Tabs */
.tabs-wrapper {
	width: 100%;
	margin-top: 0;
}

.tabs-container {
	width: 100%;
	display: flex;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
	background-color: #fff;
}

.tab-btn {
	flex: 1;
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	color: #6b7280;
	background: none;
	border: none;
	border-right: 1px solid #e5e7eb;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
}

.tab-btn:first-child {
	border-left: 1px solid #e5e7eb;
}

.tab-btn.active {
	color: #1f2937;
	font-weight: bold;
}

.tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background-color: #2563eb;
}

.tab-btn:hover {
	background-color: #f9f9f9;
}

/* Form Card */
.form-card {
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	padding: 24px;
	margin: 24px 0;
	width: 100%;
}

.payment-form {
	display: none;
}

.payment-form.active {
	display: block;
	padding-left: 40px;
}

.form-grid {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 24px 16px;
	align-items: center;
}

.form-label {
	color: #6b7280;
	font-size: 14px;
	font-weight: bold;
}

.form-label.invisible {
	visibility: hidden;
}

.radio-group {
	display: flex;
	gap: 16px;
}

.radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.radio-label input[type="radio"] {
	cursor: pointer;
}

.radio-label span {
	font-size: 14px;
}

.form-input {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 8px 12px;
	width: 100%;
	max-width: 448px;
	font-size: 15px;
}

.form-input::placeholder {
	font-size: 15px;
	color: #9ca3af;
}

.helper-text {
	font-size: 12px;
	color: #9ca3af;
	margin-top: 4px;
}

.date-range {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 448px;
}

.date-range input {
	flex: 1;
}

.date-range span {
	color: #9ca3af;
	font-size: 14px;
}

.phone-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 384px;
}

.phone-inputs input {
	flex: 1;
	text-align: center;
}

.phone-inputs span {
	color: #9ca3af;
}

.captcha-container {
	width: 100%;
	max-width: 448px;
}

.captcha-row {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.captcha-image {
	overflow: hidden;
	border-radius: 8px;
	align-items: center;
	justify-content: center;
	border: 1px solid #d1d5db;
	width: 200px;
	height: 50px;
}

.captcha-input {
	flex: 1;
}

.captcha-refresh {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 5px 15px;
	font-size: 12.5px;
	background-color: #0047a1;
	color: white;
	cursor: pointer;
	white-space: nowrap;
}

.captcha-refresh:hover {
	opacity: 0.9;
}

.checkbox-label {
	display: flex;
	align-items: start;
	gap: 8px;
	max-width: 250px;
}

.checkbox-label input {
	margin-top: 4px;
}

.checkbox-label span {
	font-size: 14px;
}

.policy-link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	color: #1f2937;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	padding: 0;
}

.policy-link:hover {
	color: #2563eb;
}

.form-actions {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	justify-content: center;
}

.submit-btn {
	padding: 0 48px;
	height: 48px;
	background-color: #0047a1;
	color: white;
	font-weight: 600;
	font-size: 12.5px;
	border: none;
	cursor: pointer;
}

.submit-btn:disabled {
	background-color: rgba(0, 71, 161, 0.4);
	cursor: not-allowed;
}

.submit-btn:not(:disabled):hover {
	opacity: 0.9;
}

.hidden {
	display: none !important;
}

.contents {
	display: contents;
}

/* Result Section */
.result-section {
	margin-top: 32px;
}

.result-title {
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 12px;
}

.result-table {
	display: none;
}

.result-table.active {
	display: block;
}

.result-table th, .result-table td{
	text-align: center;
}

.app{
	font-weight: bold;
	color: #0047a1;
}
.cc{
	font-weight: bold;
	color: #b8310a;
	text-decoration: line-through;
}

.table-wrapper {
	width: 100%;
	overflow-x: auto;
	border: 1px solid #e5e7eb;
}

table {
	width: 100%;
	font-size: 12px;
	border-collapse: collapse;
}

thead {
	background-color: #f9fafb;
	color: #4b5563;
}

thead th {
	padding: 12px;
	text-align: left;
	font-weight: 600;
}

tbody {
	background-color: white;
}

tbody tr {
	border-top: 1px solid #f3f4f6;
}

tbody td {
	padding: 12px;
}

tbody a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	color: #0047a1;
	cursor: pointer;
}

.mobile-card-container {
	display: none;
}

.mobile-card {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px;
	background-color: white;
	margin-bottom: 12px;
}

.mobile-card-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 14px;
}

.mobile-card-label {
	color: #6b7280;
}

.mobile-card-value {
	font-weight: 500;
}

.mobile-card-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 8px;
	background-color: #0047a1;
	color: white;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	margin-top: 16px;
}

.no-result {
	font-size: 12px;
	color: #6b7280;
	margin-top: 24px;
	text-align: center;
	display: none;
}

.no-result.active {
	display: block;
}

/* Modal */
.modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: none;
}

.modal.active {
	display: block;
}

.modal-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
}

.modal-container {
	position: relative;
	height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.modal-content {
	background-color: white;
	width: 100%;
	max-width: 672px;
	border-radius: 16px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
}

.modal-title {
	font-size: 18px;
	font-weight: bold;
}

.modal-close {
	color: #6b7280;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 20px;
}

.modal-close:hover {
	color: #1f2937;
}

.modal-body {
	padding: 16px 20px;
	max-height: 70vh;
	overflow-y: auto;
}

.modal-text {
	font-size: 14px;
	color: #374151;
}

.modal-text p {
	margin-bottom: 16px;
}

.modal-text h3 {
	font-weight: bold;
	font-size: 16px;
	margin-bottom: 8px;
	margin-top: 16px;
}

.modal-text h3:first-child {
	margin-top: 0;
}

.modal-text table {
	margin-top: 12px;
	font-size: 12px;
}

.modal-text table th,
.modal-text table td {
	border: 1px solid #d1d5db;
	padding: 8px;
}

.modal-text table thead {
	background-color: #f9fafb;
}

.modal-footer {
	padding: 16px 20px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.modal-btn {
	padding: 8px 16px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}

.modal-btn-close {
	background-color: white;
	color: #374151;
}

.modal-btn-close:hover {
	background-color: #f9fafb;
}

.modal-btn-agree {
	background-color: #2563eb;
	color: white;
	font-weight: 600;
	border: none;
}

.modal-btn-agree:hover {
	opacity: 0.95;
}

/* Responsive */
@media (max-width: 870px) {
	.table-wrapper {
		display: none !important;
	}

	.mobile-card-container {
		display: block !important;
	}
}

@media (max-width: 768px) {
	.title-section {
		padding: 0 0 40px;
		display: block;
	}

	.title-section h1 {
		font-size: 24px;
	}

	.tab-btn {
		font-size: 13px;
	}

	.payment-form.active {
		padding-left: 0px;
	}
	main{
		padding: 0 16px;
	}
	.form-card{
		padding: 16px;
		overflow: hidden;
	}
	.form-grid{
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.form-grid > *{
		min-width: 0;
	}
	.form-label.invisible{
		display: none;
	}
	.form-input,
	.date-range,
	.phone-inputs,
	.captcha-container,
	.checkbox-label,
	input[type="date"],
	input[type="text"],
	input[type="tel"],
	input[type="email"]{
		max-width: 100% !important;
		width: 100% !important;
		min-width: 0 !important;
	}
	.captcha-image{
		width: 144px;
		height: 36px;
	}
	.date-range{
		display: flex;
		gap: 8px;
	}
	.date-range input{
		flex: 1;
		min-width: 0;
	}
	.date-range span{
		flex-shrink: 0;
	}

}