@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #FAF5B8, #FAF5B8);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 1000px;
    box-sizing: border-box;
    text-align: center;
}

.info-txt {
	color: red;
	text-align: right;
	font-weight: 900;
	font-size: 1.2em;
}

.container img {
	display: block;
	margin: 0 auto 20px auto;
	width: 100%;
}

.form-group {
	margin-bottom: 25px;
	text-align: left;
}

.req {
	color: red;
	font-weight: 900;
	margin-left: 10px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: #555;
	font-weight: 900;
	font-size: 1.2em;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 14px; /* 패딩을 약간 더 넓게 설정 */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
	border-color: #7e57c2;
	box-shadow: 0 0 8px rgba(126, 87, 194, 0.2);
}

.form-group input[type="radio"] {
	margin-right: 8px;
}

.form-group div {
	display: flex;
	justify-content: start;
	gap: 20px;
}

.form-group select {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 16px;
	background-color: #fff;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group select:focus {
	border-color: #7e57c2;
	box-shadow: 0 0 8px rgba(126, 87, 194, 0.2);
	outline: none;
}

.form-group select option {
	font-size: 16px;
	padding: 10px;
}

.form-group select:invalid {
	color: #999;
}

.form-group textarea {
    width: 100%;
    height: 250px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: none;
    background-color: #f7f7f7;
    box-sizing: border-box; /* 테두리와 패딩을 포함하여 너비 계산 */
}

.form-group textarea:focus {
	border-color: #00bfa5;
	background-color: #fff;
	outline: none;
}

/* 체크박스 스타일 */
.checkbox-container {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

input[type="checkbox"][id="agree"] {
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #00bfa5;
	border-radius: 4px;
	margin-right: 10px;
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

input[type="checkbox"][id="agree"]:checked {
	background-color: #00bfa5;
	border-color: #00bfa5;
}

input[type="checkbox"][id="agree"]:checked::before {
	content: '✓';
	display: block;
	text-align: center;
	color: white;
	font-weight: bold;
	font-size: 14px;
	line-height: 18px;
}

label[for="agree"] {
	font-size: 14px;
	color: #333;
	cursor: pointer;
	margin-left: 5px;
}

.agree_chk {
	font-weight: 900;
}

.button-container {
	display: flex;
	justify-content: space-between; /* 버튼들을 양쪽으로 배치 */
	margin-top: 20px; /* 버튼과 폼 사이에 여백 추가 */
}

.submit-btn {
	width: 45%;
	padding: 14px;
	background-color: #334a91;
	border: none;
	color: #ffe510;
	border-radius: 8px;
	font-size: 20px;
	cursor: pointer;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
	font-weight: 700;
}

.submit-btn:hover {
	background-color: #334a91;
	box-shadow: 0 8px 16px rgba(110, 63, 167, 0.3);
}

.submit-btn:active {
	background-color: #334a91;
}

.check-btn {
	width: 45%; 
	padding: 14px;
	background-color: #ed3279; 
	border: none;
	color: #ffe510;
	border-radius: 8px;
	font-size: 20px;
	cursor: pointer;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
	font-weight: 900;
}

.check-btn:hover {
	background-color: #ed3279; 
	box-shadow: 0 8px 16px rgba(110, 63, 167, 0.3);
}

.check-btn:active {
	background-color: #ed3279;
}

/* 에러 스타일 */
.error {
	border: 2px solid red; /* 에러 시 빨간 테두리 */
}
.error-message {
	color: red; /* 에러 메시지 빨간색 */
	font-size: 0.9rem; /* 메시지 폰트 크기 */
	margin-top: 5px; /* 메시지와 입력 필드 사이 여백 */
	margin-left: 5px;
}

/* 모바일 대응 */
@media (max-width: 480px) {
	.container {
		padding: 25px;
	}

	.submit-btn {
		font-size: 16px;
	}
	
	.form-group textarea {
		height: 150px; /* 모바일에서도 높이 조정 */
		font-size: 13px;
		padding: 8px;
	}
}