/* 사이트 공통 디자인 톤: border-radius 6px, Astra 테마 기본값에 맞춘 회색조
   (#3a3a3a 계열) 텍스트 계층 + Pretendard 폰트. 다른 설치된 플러그인들과
   시각적으로 통일감을 유지한다. */

.ubc-calculator {
	max-width: 560px;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", "Malgun Gothic", sans-serif;
}

.ubc-year-badge {
	margin: 0 0 10px;
	font-size: 12px;
	color: #767676;
}

.ubc-form {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: flex-start;
	padding: 16px;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ubc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 220px;
}

.ubc-field-checkbox {
	flex-basis: 100%;
}

.ubc-field-checkbox label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}

.ubc-field label {
	font-size: 13px;
	font-weight: 600;
	color: #3a3a3a;
}

.ubc-field-note {
	margin: 0;
	font-size: 11px;
	color: #999999;
	font-weight: 400;
}

.ubc-field-note-wide {
	margin: 0 0 10px;
	font-size: 12px;
	color: #545454;
	line-height: 1.6;
}

.ubc-price-korean {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #0274be;
	min-height: 16px;
}

.ubc-input {
	padding: 10px 12px;
	font-size: 15px;
	color: #3a3a3a;
	border: 1px solid #cccccc;
	border-radius: 6px;
	font-family: inherit;
}

.ubc-date-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.ubc-date-input {
	width: 100%;
	padding-right: 40px;
}

.ubc-date-icon-button {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	background: none;
	border: none;
	border-radius: 4px;
	color: #767676;
	cursor: pointer;
}

.ubc-date-icon-button:hover {
	background: #f0f0f0;
	color: #3a3a3a;
}

.ubc-date-picker-hidden {
	position: absolute;
	right: 6px;
	width: 1px;
	height: 1px;
	padding: 0;
	border: none;
	opacity: 0;
	pointer-events: none;
}

.ubc-break {
	flex-basis: 100%;
	height: 0;
	margin: 0;
	padding: 0;
	border-top: 1px solid #f0f0f0;
}

.ubc-submit-button {
	flex: 1 1 100%;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #0274be;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.ubc-submit-button:hover {
	background: #055a94;
}

.ubc-error {
	margin-top: 12px;
	font-size: 13px;
	color: #b42318;
}

.ubc-result {
	margin-top: 16px;
	padding: 18px 20px;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ubc-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
}

.ubc-summary-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ubc-summary .ubc-label {
	font-size: 12px;
	font-weight: 600;
	color: #767676;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ubc-summary .ubc-value {
	font-size: 24px;
	font-weight: 700;
	color: #0274be;
}

.ubc-warning {
	margin: 0 0 16px;
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #b42318;
	background: #fdecea;
	border-radius: 6px;
}

.ubc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ubc-table th,
.ubc-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #f0f0f0;
	text-align: left;
}

.ubc-table td:last-child {
	text-align: right;
	color: #3a3a3a;
	font-weight: 600;
}

.ubc-table thead th {
	color: #999999;
	font-weight: 600;
	font-size: 12px;
	border-bottom: 1px solid #e1e1e1;
}

.ubc-schedule-table th:last-child,
.ubc-schedule-table td:last-child {
	text-align: right;
}

.ubc-row-total td {
	border-top: 2px solid #e1e1e1;
	border-bottom: none;
	font-weight: 700;
	color: #3a3a3a;
}

.ubc-reason {
	margin: 16px 0 0;
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #3a3a3a;
	background: #fff7e6;
	border-radius: 6px;
}

.ubc-disclaimer {
	margin: 12px 0 0;
	font-size: 12px;
	color: #999999;
}

.ubc-guide {
	margin-top: 20px;
	padding: 16px 20px;
	background: #f7f7f7;
	border-radius: 6px;
}

.ubc-guide h3 {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	color: #3a3a3a;
}

.ubc-guide ol {
	margin: 0;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ubc-guide li {
	font-size: 13px;
	line-height: 1.6;
	color: #545454;
}
