@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #5175a8, #5175a8);
    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;
}

.main-txt {
	color: #000;
	text-align: center;
	font-weight: 900;
	font-size: 1.5em;
	padding: 0 0 30px 0;
}

.info-txt {
	color: red;
	text-align: right;
	font-weight: 900;
	font-size: 1em;
}

.info-txt-main {
	color: #000;
	text-align: center;
	font-weight: 900;
	font-size: 1.5em;
	padding: 50px 0 0 0;
}

.info-txt-sub {
	color: #000;
	text-align: center;
	font-weight: 500;
	font-size: 1em;
	padding: 30px 0 50px 0;
}

.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;
}

/* 라디오 버튼 스타일 */
.radio-container {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

input[type="radio"][id="agree2_1"], input[type="radio"][id="agree2_2"] {
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #00bfa5;
	border-radius: 50%; /* 동그라미 모양 */
	margin-right: 10px;
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

input[type="radio"][id="agree2_1"]:checked, input[type="radio"][id="agree2_2"]:checked {
	background-color: #00bfa5;
	border-color: #00bfa5;
}

input[type="radio"][id="agree2_1"]:checked::before, input[type="radio"][id="agree2_2"]:checked::before {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	margin: auto;
	background-color: white;
	border-radius: 50%; /* 내부 동그라미 */
	margin-top: 3px;
}

label[for="agree2_1"], label[for="agree2_2"] {
	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; /* 버튼과 폼 사이에 여백 추가 */
}

/* 기본 스타일: PC 환경 (한 줄에 2개) */
.button-container {
	display: flex;
	justify-content: space-between; /* 버튼 간 간격 균일 */
	gap: 20px; /* 버튼 사이 간격 */
}

.submit-btn-home,
.submit-btn-friend {
	width: 200px;
	height: 50px;
	padding: 0;
	line-height: 50px;
	text-align: center;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	border: none;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 버튼 별 개별 스타일 */
.submit-btn-home {
	background-color: #000;
	color: #fff;
	font-size: 15px;
}

.submit-btn-friend {
	background-color: #ee7700;
	color: #fff;
	font-size: 15px;
}


.submit-btn {
	width: 45%;
	padding: 14px;
	background-color: #ee7700;
	border: none;
	color: #fff;
	border-radius: 8px;
	font-size: 20px;
	cursor: pointer;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
	font-weight: 700;
	margin-top: 50px;
}

.submit-btn:hover {
	background-color: #ee7700;
	box-shadow: 0 8px 16px rgba(110, 63, 167, 0.3);
}

.submit-btn:active {
	background-color: #ee7700;
}

.check-btn {
	width: 45%; 
	padding: 14px;
	background-color: #007bff; 
	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: #007bff; 
	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;
	text-align: left;
}

.main-comm {
	text-align: left;
	padding: 20px;
	line-height: 1.2;
	border: 2px solid #acacac;
	border-radius: 10px;
	background-color: #dcdcdc;
}

.main-comm li {
	font-size: .9em;
	margin: 15px;
}


.chkbox_title {
	text-align: left;
	margin-top: 20px;
	font-weight: 900;
	font-size: 1.2em;
	color: #555;
}

.chkbox {
	display: flex;
	align-items: center;
	margin: 10px 0;
}

.bx_input {
	flex: 1;
	padding: 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 16px;
	background-color: #f9f9f9;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
}

.bx_input:focus {
	border-color: #7e57c2;
	box-shadow: 0 0 8px rgba(126, 87, 194, 0.2);
	outline: none;
}

/* 설문조사 스타일 */
.survey-group {
	margin-top: 30px;
	text-align: left;
}

.survey-group .survey-title {
			display: block;
			margin-bottom: 8px;
			color: #555;
			font-weight: 900;
			font-size: 1.2em;
}

.survey-options {
	display: grid;
	/*flex-direction: column;*/
	gap: 10px;
}

.survey-options input[type="radio"] {
	margin-right: 10px;
}

.survey-options label {
	display: flex;
	align-items: center;
}

.survey-comment {
	margin-top: 20px;
}

.survey-comment textarea {
	width: 100%;
	height: 120px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	resize: none;
}

/* 모바일 대응 */
@media (min-width: 768px) {
    .survey-options {
        grid-template-columns: repeat(2, 1fr);
    }
	
	.button-container {
		flex-direction: column; /* 세로 배치 */
		align-items: center; /* 가운데 정렬 */
		gap: 15px; /* 버튼 사이 간격 */
	}

	.submit-btn-home,
	.submit-btn-friend {
		width: 90%; /* 화면 너비에 맞게 */
		height: 50px; /* 높이는 유지 */
	}
}

/* 모바일 버전: 한 줄에 1개씩 */
@media (max-width: 767px) {
    .survey-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
	.container {
		padding: 25px;
	}

	.submit-btn {
		font-size: 16px;
	}
	
	.form-group textarea {
		height: 150px; /* 모바일에서도 높이 조정 */
		font-size: 13px;
		padding: 8px;
	}
	
	input::placeholder {
		font-size: .7em;
	}
	
	.submit-btn-home,
	.submit-btn-friend {
		width: 90%; /* 화면 너비에 맞게 */
		height: 50px; /* 높이는 유지 */
		font-size: 10px;
	}
}