:root{
	/* Light Theme */
	--bg:#ffffff;
	--card:#ffffff;

	--text:#111827;			/* slate-900 */
	--muted:#6b7280;		/* slate-500 */
	--line:rgba(17,24,39,.12);

	--accent:#4f46e5;		/* indigo-600 */
	--accent2:#06b6d4;		/* cyan-500 */
	--danger:#ef4444;		/* red-500 */
	--ok:#22c55e;			/* green-500 */

	--radius:18px;
	--shadow:0 18px 40px rgba(17,24,39,.10);
}

*{ box-sizing:border-box; }

body{
	margin:0;
	min-height:100vh;
	font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans KR","Apple SD Gothic Neo",sans-serif;
	color:var(--text);

	/* #FFF 기반 + 은은한 포인트 그라데이션 */
	background:
		radial-gradient(1000px 520px at 15% -5%, rgba(79,70,229,.10), transparent 60%),
		radial-gradient(900px 520px at 95% 0%, rgba(6,182,212,.10), transparent 55%),
		linear-gradient(180deg, #ffffff, #f7f8fb);
	display:flex;
	justify-content:center;
	padding:28px 16px;
}

.wrap{
	width:100%;
	max-width:980px;
}

.header{
	display:flex;
	align-items:flex-end;
	justify-content:space-between;
	gap:12px;
	margin-bottom:16px;
}

.h1{
	font-size:22px;
	font-weight:800;
	letter-spacing:-0.2px;
	margin:0;
	color:var(--text);
}

.h2{
	margin:0;
	font-size:13px;
	color:var(--muted);
}

.card{
	background:rgba(255,255,255,.92);
	border:1px solid var(--line);
	border-radius:var(--radius);
	box-shadow:var(--shadow);
	overflow:hidden;
	backdrop-filter:blur(8px);
}

.form{
	padding:18px;
}

.grid{
	display:grid;
	gap:14px;
	grid-template-columns:repeat(12, 1fr);
}

.field{
	grid-column:span 12;
	display:flex;
	flex-direction:column;
	gap:8px;
}

.label{
	font-size:12px;
	color:var(--muted);
	display:flex;
	align-items:center;
	gap:8px;
}

.req{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	font-size:11px;
	padding:2px 8px;
	border-radius:999px;
	border:1px solid rgba(79,70,229,.22);
	color:#3730a3; /* indigo-800 */
	background:rgba(79,70,229,.08);
}

.ctrl{
	display:flex;
	align-items:center;
	gap:10px;
	padding:12px 12px;
	border:1px solid rgba(17,24,39,.14);
	border-radius:14px;
	background:rgba(255,255,255,.86);
	box-shadow:0 1px 0 rgba(17,24,39,.02);
}

.ctrl input,
.ctrl select{
	width:100%;
	border:0;
	outline:0;
	background:transparent;
	color:var(--text);
	font-size:14px;
}

.ctrl input::placeholder{
	color:rgba(17,24,39,.35);
}

.ctrl:focus-within{
	border-color:rgba(79,70,229,.55);
	box-shadow:
		0 0 0 4px rgba(79,70,229,.14),
		0 1px 0 rgba(17,24,39,.02);
	background:#ffffff;
}

.row{
	display:flex;
	align-items:center;
	gap:10px;
	flex-wrap:wrap;
}

/* 라디오를 밝은 톤으로 */
.radio{
	display:flex;
	align-items:center;
	gap:10px;
	padding:10px 12px;
	border:1px solid rgba(17,24,39,.14);
	border-radius:14px;
	background:rgba(255,255,255,.86);
	cursor:pointer;
	user-select:none;
	min-height:44px;
	transition:box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}

.radio:hover{
	border-color:rgba(79,70,229,.30);
	box-shadow:0 8px 18px rgba(17,24,39,.06);
}

.radio:active{
	transform:translateY(1px);
}

.radio input{
	width:18px;
	height:18px;
	accent-color:var(--accent);
	margin:0;
}

.radio span{
	font-size:14px;
	color:rgba(17,24,39,.86);
}

.helper{
	font-size:12px;
	color:rgba(17,24,39,.52);
	line-height:1.35;
}

.error{
	font-size:12px;
	color:var(--danger);
	display:none;
}

.field.invalid .error{ display:block; }
.field.invalid .ctrl{
	border-color:rgba(239,68,68,.55);
	box-shadow:0 0 0 4px rgba(239,68,68,.12);
	background:#fff;
}

.actions{
	display:flex;
	gap:10px;
	justify-content:flex-end;
	padding:14px 18px 18px;
	border-top:1px solid rgba(17,24,39,.10);
	background:linear-gradient(180deg, rgba(255,255,255,.60), rgba(255,255,255,.92));
}

.btn{
	border:1px solid rgba(17,24,39,.14);
	background:rgba(255,255,255,.90);
	color:var(--text);
	padding:12px 14px;
	border-radius:14px;
	font-size:14px;
	cursor:pointer;
	min-width:120px;
	transition:box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}

.btn:hover{
	border-color:rgba(17,24,39,.22);
	box-shadow:0 10px 20px rgba(17,24,39,.08);
}

.btn:active{
	transform:translateY(1px);
}

.btn.primary{
	border-color:rgba(79,70,229,.35);
	background:linear-gradient(180deg, rgba(79,70,229,.12), rgba(79,70,229,.06));
	color:#312e81; /* indigo-900 */
}

.btn.primary:hover{
	box-shadow:0 14px 26px rgba(79,70,229,.14);
	border-color:rgba(79,70,229,.45);
}

/* 반응형: 태블릿 이상 */
@media (min-width:720px){
	.form{ padding:22px; }
	.field.col6{ grid-column:span 6; }
	.field.col4{ grid-column:span 4; }
	.field.col8{ grid-column:span 8; }
}

/* 작은 화면 */
@media (max-width:420px){
	.actions{ flex-direction:column; }
	.btn{ width:100%; }
}
