header + .qna-section {
  margin-top: 100px; /* header 높이만큼 여백 추가 */
}

.qna-section {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background-color: #f1f1f1;
  border-radius: 12px;
}

.qna-section h2 {
  margin-bottom: 10px;
}

.qna-section form {
  display: flex;
  flex-direction: column;
}

.qna-section label {
  margin: 10px 0 5px;
  font-weight: bold;
}
html, body {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
}

.qna-section input,
.qna-section textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.qna-section button {
  margin-top: 20px;
  padding: 12px;
  background-color: #1565c0;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #212121;
}

.button {
    --primary: #1565c0;
    /* Accent color */
    --neutral-1: #1e2a38;
    /* Dark background */
    --neutral-2: #141b25;
    /* Darker background */
    --radius: 14px;

    cursor: pointer;
    border-radius: var(--radius);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    border: none;
    box-shadow: 0 0.5px 0.5px 1px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 5px 0px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    min-width: 200px;
    padding: 20px;
    height: 68px;
    font-family: "Galano Grotesque", Poppins, Montserrat, sans-serif;
    font-style: normal;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    /* Text color */
    background: var(--neutral-1);
    /* Button background */
}

.button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.3), 0 10px 3px -3px rgba(0, 0, 0, 0.04);
}

.button:active {
    transform: scale(1);
    box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
        0 10px 3px -3px rgba(0, 0, 0, 0.2);
}

.button:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 2.5px solid transparent;
    background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)) border-box;
    z-index: 0;
    transition: all 0.4s ease;
}

.button:hover::after {
    transform: scale(1.05, 1.1);
    box-shadow: inset 0 -1px 3px 0 rgba(50, 50, 50, 1);
    /* Adjusted shine colour to a darker tone */
}

.button::before {
    content: "";
    inset: 7px 6px 6px 6px;
    position: absolute;
    background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
    border-radius: 30px;
    filter: blur(0.5px);
    z-index: 2;
}

.state p {
    display: flex;
    align-items: center;
    justify-content: center;
}

.state .icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: scale(1.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.state .icon svg {
    overflow: visible;
}

/* Outline */
.outline {
    position: absolute;
    border-radius: inherit;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    inset: -2px -3.5px;
}

.outline::before {
    content: "";
    position: absolute;
    inset: -100%;
    background: conic-gradient(from 180deg,
            transparent 60%,
            rgb(22, 22, 22) 80%,
            transparent 100%);
    animation: spin 2s linear infinite;
    animation-play-state: paused;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.button:hover .outline {
    opacity: 1;
}

.button:hover .outline::before {
    animation-play-state: running;
}

/* Letters */
.state p span {
    display: inline-block; /* block → inline-block */
    opacity: 0;
    animation: slideDown 0.8s ease forwards calc(var(--i) * 0.03s);
}

.button:hover p span {
    opacity: 1;
    animation: wave 0.5s ease forwards calc(var(--i) * 0.02s);
}

.button:focus p span {
    opacity: 1;
    animation: disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}

@keyframes wave {
    30% {
        opacity: 1;
        transform: translateY(4px) translateX(0) rotate(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px) translateX(0) rotate(0);
        color: var(--primary);
    }

    100% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0);
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px) translateX(5px) rotate(-90deg);
        color: var(--primary);
        filter: blur(5px);
    }

    30% {
        opacity: 1;
        transform: translateY(4px) translateX(0) rotate(0);
        filter: blur(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px) translateX(0) rotate(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0);
    }
}

@keyframes disapear {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateX(5px) translateY(20px);
        color: var(--primary);
        filter: blur(5px);
    }
}

/* Plane */
.state--default .icon svg {
    animation: land 0.6s ease forwards;
}

.button:hover .state--default .icon {
    transform: rotate(45deg) scale(1.25);
}

.button:focus .state--default svg {
    animation: takeOff 0.8s linear forwards;
}

.button:focus .state--default .icon {
    transform: rotate(0) scale(1.25);
}

@keyframes takeOff {
    0% {
        opacity: 1;
    }

    60% {
        opacity: 1;
        transform: translateX(70px) rotate(45deg) scale(2);
    }

    100% {
        opacity: 0;
        transform: translateX(160px) rotate(45deg) scale(0);
    }
}

@keyframes land {
    0% {
        transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2);
        opacity: 0;
        filter: blur(3px);
    }

    100% {
        transform: translateX(0) translateY(0) rotate(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Contrail */
.state--default .icon:before {
    content: "";
    position: absolute;
    top: 50%;
    height: 2px;
    width: 0;
    left: -5px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5));
}

.button:focus .state--default .icon:before {
    animation: contrail 0.8s linear forwards;
}

@keyframes contrail {
    0% {
        width: 0;
        opacity: 1;
    }

    8% {
        width: 15px;
    }

    60% {
        opacity: 0.7;
        width: 80px;
    }

    100% {
        opacity: 0;
        width: 160px;
    }
}

/* States */
.state {
    padding-left: 29px;
    z-index: 2;
    display: flex;
    position: relative;
}

.state--default span:nth-child(4) {
    margin-right: 5px;
}

.state--sent {
    display: none;
}

.state--sent svg {
    transform: scale(1.25);
    margin-right: 8px;
}

.button:focus .state--default {
    position: absolute;
}

.button:focus .state--sent {
    display: flex;
}

.button:focus .state--sent span {
    opacity: 0;
    animation: slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}

.button:focus .state--sent .icon svg {
    opacity: 0;
    animation: appear 1.2s ease forwards 0.8s;
}

@keyframes appear {
    0% {
        opacity: 0;
        transform: scale(4) rotate(-40deg);
        color: var(--primary);
        filter: blur(4px);
    }

    30% {
        opacity: 1;
        transform: scale(0.6);
        filter: blur(1px);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 전체 레이아웃 */
.qna-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  margin: 100px auto;
  padding: 20px;
  max-width: 1200px;
}

/* 왼쪽 폼 */
.qna-form-box {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

/* 오른쪽 FAQ */
.qna-faq-box {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.qna-faq-box h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
}

/* 전체 컨테이너 */
.qna-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
  min-height: 100vh;
}

/* 챗봇 섹션 */
.chatbot-section {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 600px;
}

.chatbot-header {
  background: linear-gradient(135deg, #1a237e, #283593);
  color: white;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.chatbot-avatar {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.chatbot-info h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
}

.chatbot-info p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

/* 채팅 메시지 영역 */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
}

.message {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.bot-message {
  align-items: flex-start;
}

.user-message {
  align-items: flex-end;
}

.message-content {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.bot-message .message-content {
  background: white;
  color: #333;
  border: 1px solid #e9ecef;
  border-bottom-left-radius: 6px;
}

.user-message .message-content {
  background: #1a237e;
  color: white;
  border-bottom-right-radius: 6px;
}

.message-time {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  padding: 0 4px;
}

/* 빠른 질문 버튼 */
.quick-questions {
  padding: 16px 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-btn {
  background: white;
  border: 2px solid #e9ecef;
  color: #495057;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.quick-btn:hover {
  border-color: #1a237e;
  color: #1a237e;
  background: #f0f8ff;
  transform: translateY(-1px);
}

/* 채팅 입력 영역 */
.chat-input-container {
  border-top: 1px solid #e9ecef;
}

.input-group {
  display: flex;
  padding: 16px 20px;
  gap: 12px;
  background: white;
}

.input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #1a237e;
}

.input-group button {
  background: #1a237e;
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group button:hover {
  background: #283593;
  transform: scale(1.05);
}

/* 문의 폼 섹션 */
.qna-form-section {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.qna-form-section h2 {
  color: #1a237e;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
}

.qna-form-section h2 i {
  color: #667eea;
}

.qna-form-section p {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* 폼 스타일 */
.qna-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a237e;
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  background: linear-gradient(135deg, #1a237e, #283593);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 35, 126, 0.3);
}

.submit-btn i {
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: translateX(5px);
}

/* 반응형 디자인 */
@media screen and (max-width: 1024px) {
  .qna-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .chatbot-section {
    height: 500px;
  }
}

@media screen and (max-width: 768px) {
  .qna-container {
    padding: 15px;
  }
  
  .chatbot-header {
    padding: 20px;
  }
  
  .chatbot-avatar {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .chatbot-info h3 {
    font-size: 18px;
  }
  
  .chat-messages {
    padding: 16px;
  }
  
  .quick-questions {
    padding: 12px 16px;
  }
  
  .input-group {
    padding: 12px 16px;
  }
  
  .qna-form-section {
    padding: 24px;
  }
}

@media screen and (max-width: 480px) {
  .qna-container {
    padding: 10px;
  }
  
  .chatbot-section {
    height: 450px;
  }
  
  .chatbot-header {
    padding: 16px;
  }
  
  .chatbot-avatar {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  
  .chatbot-info h3 {
    font-size: 16px;
  }
  
  .chatbot-info p {
    font-size: 12px;
  }
  
  .chat-messages {
    padding: 12px;
  }
  
  .message-content {
    max-width: 90%;
    font-size: 13px;
    padding: 10px 14px;
  }
  
  .quick-questions {
    padding: 10px 12px;
    gap: 6px;
  }
  
  .quick-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .input-group {
    padding: 10px 12px;
  }
  
  .input-group input {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .input-group button {
    width: 40px;
    height: 40px;
  }
  
  .qna-form-section {
    padding: 20px;
  }
  
  .qna-form-section h2 {
    font-size: 20px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .submit-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
}


