/* ✅ 커플 궁합 서비스 스타일 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* 전체 레이아웃 */
body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* 제목 */
h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

p {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* 커플 이미지 */
.intro-image {
    width: 70%;
    max-width: 300px;
    margin-bottom: 20px;
}

/* 사람별 입력 컨테이너 */
.person-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    width: 90%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.person-container h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

/* 입력 필드 스타일 */
.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 10px;
}

.input-group label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.input-group select, .input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
}

/* 상담하기 버튼 */
.submit-btn {
    width: 90%;
    max-width: 320px;
    padding: 12px;
    background-color: #007bff;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 8px;
    border: none;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* 광고 영역 */
.kakao-ad-container {
    margin-top: 20px;
    text-align: center;
}

/* 채팅 화면 스타일 */
.chat-container {
    display: none;
    width: 100%;
    max-width: 400px;
    background-color: #ffffff;
    margin: 0 auto;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

/* 채팅 메시지 영역 */
.chat-box {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

/* 메시지 컨테이너 */
.message-container {
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
}

.bot-message-container {
    justify-content: flex-start;
}

.user-message-container {
    justify-content: flex-end;
}

/* 프로필 이미지 */
.profile-image {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 8px;
}

/* 메시지 스타일 */
.message {
    padding: 10px;
    border-radius: 15px;
    font-size: 14px;
    max-width: 70%;
    word-break: break-word;
}

.bot-message {
    background-color: #007bff;
    color: white;
    text-align: left;
}

.user-message {
    background-color: #e5e5e5;
    color: black;
    text-align: right;
}

/* 로딩 애니메이션 */
#loader {
    display: none;
    text-align: center;
}

#loader i {
    font-size: 20px;
    color: #007bff;
}

/* 입력 컨테이너 */
.input-container {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-top: 1px solid #ddd;
}

.input-container input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.input-container button {
    margin-left: 10px;
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.input-container button:hover {
    background-color: #0056b3;
}

/* 반응형 디자인 */
@media screen and (max-width: 600px) {
    .person-container, .chat-container {
        width: 95%;
    }
}
