input:focus::placeholder {
    color: white;
}

input[readonly] {
    background-color: #f6f6f6; /* 회색 배경 */
    color: rgba(0, 0, 0, 0.5); /* 흐릿한 색상 */
    border: 1px solid #ccc; /* 경계선 색상 */
    cursor: not-allowed; /* 커서 모양 변경 */
}

input[readonly]::placeholder {
    color: rgba(0, 0, 0, 0.3); /* 더욱 흐릿한 색상 */
}

/* readonly 상태에서 포커스 시 플레이스홀더 효과 제거 */
input[readonly]:focus::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.divider {
    width: 80%;
    position: relative;
    text-align: center;
    margin: 40px auto; /* 위아래 여백 */
}

.divider hr {
    border: none;
    border-top: 1px solid #ccc; /* 줄 색상 */
    margin: 0; /* 줄과 텍스트 간격 제거 */
}

.divider-text {
    position: absolute;
    top: -10px; /* 줄 위에 위치 */
    left: 50%;
    transform: translateX(-50%); /* 중앙 정렬 */
    background-color: white; /* 배경색 */
    padding: 0 10px; /* 여백 */
    color: rgba(0, 0, 0, 0.5); /* 흐릿한 색상 */
    font-weight: bold; /* 굵은 글씨 */
}

.date {
    display: flex;
}

.label-container {
    text-align: left;
    width: 50%;
    margin: 5px auto;
}

.label-required-mark {
    color: red;
}

.address-button {
    width: 50%;
    display:flex;
    margin: 0 auto;
}

.address-button input[type="button"] {
    flex:1;
    margin-right: 10px; /* 버튼과 입력창 간의 간격 */
}

.address-button input[type="text"] {
    flex: 8;
}

.category-container {
    display: flex;
    justify-content: center; /* 중앙 정렬 */
    flex-wrap: wrap; /* 여러 줄로 배치 */
    max-width: 50%; /* 최대 너비 제한 */
    margin: 0 auto; /* 중앙 정렬 */
}

.category-button {
    flex: 1 1 20%; /* 버튼이 남은 공간을 나누어 가지도록 설정 */
    margin: 5px; /* 버튼 간 여백 */
    padding: 10px 20px; /* 버튼 안쪽 여백 */
    border: 1px solid #ccc; /* 버튼 경계선 */
    background-color: #f0f0f0; /* 버튼 배경색 */
    cursor: pointer; /* 커서 모양 변경 */
    transition: background-color 0.3s, color 0.3s; /* 부드러운 전환 효과 */
    border-radius: 5px;
    min-width: 100px; /* 버튼의 최소 너비 설정 */
}

.category-button:hover {
    background-color: #e0e0e0; /* 호버 시 색상 변화 */
}

.category-button.selected {
    background-color: #5fc463;
    color: white;
}

.hidden {
    display: none;
}

/* 체크박스 스타일 */
input[type="checkbox"] {
    width: auto;
    height: auto;
    transform: scale(1.5); /* 필요한 경우 크기 조절 */
    margin-right: 10px;
}

button[type="submit"] {
    margin: 50px;
}

.terms-container {
    width: 50%;
    max-height: 150px; /* 고정된 높이 */
    overflow-y: auto; /* 수직 스크롤바 */
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: auto;
}

#agree {
    margin-top: 20px;
}