:root {
	--primary-color: #005bac;
	--primary-dark: #003366;
	--accent-color: #ef002d;
	--bg-color: #d6ebfa;
	--card-bg: #ffffff;
	--text-color: #333333;
	--border-color: #e0e6ed;
	--input-focus: #005bac;
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	--radius: 6px;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--bg-color);
	background-image: radial-gradient(#a3d6f7 1.5px, transparent 1.5px);
	background-size: 24px 24px;
	/* Consistent dot size and spacing */
	color: var(--text-color);
	font-family: 'Inter', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
	line-height: 1.4;
	font-size: 14px;
}

#head {
	background: var(--primary-color);
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
	color: #fff;
	padding: 0.8rem 0;
	text-align: center;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

#head-in h1 {
	font-size: 1.2rem;
	margin: 0;
	font-weight: 700;
}

.container {
	max-width: 850px;
	margin: 1rem auto;
	padding: 0 1rem;
}

.section-title {
	font-size: 1.1rem;
	color: var(--primary-color);
	border-left: 4px solid var(--accent-color);
	padding: 0.3rem 0.8rem;
	margin-bottom: 1rem;
	background: #fff;
	box-shadow: var(--shadow);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.form-intro {
	margin-bottom: 1rem;
	background: #fff;
	padding: 0.5rem 1rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	font-size: 0.9rem;
}

.form-intro ol {
	margin: 0;
}

.form-card {
	background: var(--card-bg);
	border-radius: var(--radius);
	padding: 1.5rem 2rem;
	box-shadow: var(--shadow);
	margin-bottom: 1.5rem;
}

/* Compact Form Table Styling */
#form {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

#form th,
#form td {
	padding: 0.6rem 0.8rem;
	border-bottom: 1px solid var(--border-color);
	vertical-align: middle;
}

#form th {
	width: 25%;
	text-align: left;
	font-weight: 600;
	color: var(--primary-dark);
	background: #f8fafc;
	font-size: 0.9rem;
}

#form td {
	background: #fff;
}

#form tr:last-child th,
#form tr:last-child td {
	border-bottom: none;
}

/* Input Fields */
input[type="text"],
textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	font-size: 0.95rem;
	box-sizing: border-box;
	transition: all 0.2s ease;
	background-color: #fdfdfd;
}

input[type="text"]:focus,
textarea:focus {
	outline: none;
	border-color: var(--input-focus);
	box-shadow: 0 0 0 2px rgba(0, 66, 142, 0.05);
	background-color: #fff;
}

.radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 1.5rem;
	padding: 0.2rem 0;
}

.radio-group label {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-size: 0.95rem;
	position: relative;
	padding-left: 30px;
	user-select: none;
}

.radio-group input[type="radio"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

/* Custom Radio Circle */
.radio-group label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 20px;
	width: 20px;
	background-color: #fff;
	border: 2px solid var(--border-color);
	border-radius: 50%;
	transition: all 0.2s ease;
}

/* Hover state */
.radio-group label:hover::before {
	border-color: var(--primary-color);
}

/* Checked state */
.radio-group label:has(input:checked)::before {
	border-color: var(--primary-color);
	background-color: #fff;
}

/* Inner Check Mark (dot) */
.radio-group label::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 50%;
	transform: translateY(-50%) scale(0);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--primary-color);
	transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46);
}

.radio-group label:has(input:checked)::after {
	transform: translateY(-50%) scale(1);
}

/* Accent for secondary text */
.note {
	font-size: 0.8rem;
	color: var(--accent-color);
	margin-top: 0.3rem;
	font-weight: 500;
}

/* Actions & Buttons */
.form-actions {
	margin-top: 1.5rem;
	text-align: center;
}

.btn {
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.btn-submit {
	background: var(--primary-color);
	color: #fff;
	border: none;
	padding: 0.75rem 2.5rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-submit:hover {
	background: var(--primary-dark);
	transform: translateY(-1px);
}

.btn-reset {
	background: #f1f5f9;
	color: #64748b;
	border: 1px solid #e2e8f0;
	padding: 0.75rem 1.5rem;
	font-size: 0.9rem;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-reset:hover {
	background: #e2e8f0;
}

/* Privacy Section */
.privacy-card {
	background: #fff;
	border-radius: var(--radius);
	padding: 1rem 1.5rem;
	box-shadow: var(--shadow);
	margin-bottom: 2rem;
	font-size: 0.85rem;
}

.privacy-card ol {
	margin: 0;
	padding-left: 1.2rem;
}

/* Responsive Adjustments */
@media only screen and (max-width: 768px) {
	.container {
		margin: 0.5rem auto;
	}

	.form-card {
		padding: 1rem;
	}

	#form th,
	#form td {
		display: block;
		width: 100%;
		border-bottom: none;
	}

	#form th {
		background: #f8fafc;
		padding: 0.4rem 0.8rem;
		font-size: 0.85rem;
	}

	#form td {
		padding: 0.4rem 0.8rem 0.8rem;
		border-bottom: 1px solid var(--border-color);
	}

	.radio-group {
		flex-direction: column;
		gap: 0.4rem;
	}
}