/* FAQ Page Layout */
.faq-layout {
    display: flex;
    height: calc(100vh - 200px);
    min-height: 600px;
    margin-bottom: 40px;
    overflow: hidden;
}

.faq-left-panel {
    flex: 0.3;
    background: #f8f8f7;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.faq-right-panel {
    flex: 0.7;
    background: white;
    border-radius: 0 12px 12px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.left-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-list li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.guide-list li:hover {
    background-color: rgba(0, 0, 0, 0.04);
    box-shadow: none;
    border: none;
    outline: none;
}

.guide-list li:active {
    box-shadow: none;
    border: none;
    outline: none;
}

.chat-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 24px 16px;
}

.chat-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.chat-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.chat-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px 20px;
    background: transparent;
    min-height: 0;
}

.chat-input-area {
    background: white;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #f8f8f7;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 10px;
    width: 100%;
    max-width: 600px;
}

.input-wrapper:focus-within {
    background: #f8f8f7;
    border: 2px solid #e5e7eb;
}

#messageInput {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 4px 6px;
    font-size: 14px;
    line-height: 1.3;
    max-height: 100px;
    overflow-y: auto;
    resize: none;
    box-shadow: none;
    color: #313131;
}

.faq-send-button {
    background: #000000;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 14px;
}

/* 비활성화 상태 */
.faq-send-button:disabled {
    background: #e5e7eb;
    color: #f8f8f7;
    cursor: not-allowed;
    opacity: 1;
}

/* 활성화 상태 */
.faq-send-button:not(:disabled) {
    background: #000000;
    color: #ffffff;
    cursor: pointer;
}

/* 아이콘 색상 */
.faq-send-button:disabled i {
    color: #f8f8f7;
}

.faq-send-button:not(:disabled) i {
    color: #ffffff;
}

@media (max-width: 1024px) {
    .faq-layout {
        flex-direction: column;
        height: auto;
    }

    .faq-left-panel,
    .faq-right-panel {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .left-panel-content {
        padding: 15px;
    }

    .messages-container {
        padding: 15px;
    }

    .chat-input-area {
        padding: 12px;
        min-height: 90px;
    }

    .guide-list li {
        padding: 10px 14px;
        font-size: 13px;
    }
}
