 body {
     font-family: Arial, sans-serif;
 }

 /* Toggle Button */
 .chat-toggle {
     position: fixed;
     bottom: 125px;
     right: 30px;
     background: #18100f;
     color: white;
     border-radius: 50%;
     width: 50px;
     height: 50px;
     display: flex;
     justify-content: center;
     align-items: center;
     cursor: pointer;
     box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
     font-size: 24px;
     z-index: 10000;
 }

 .chat-toggle:hover {
     background: #aa2030;
 }

 /* Badge */
 .chat-badge {
     position: absolute;
     top: 6px;
     right: 6px;
     background: red;
     color: white;
     font-size: 10px;
     border-radius: 50%;
     width: 14px;
     height: 14px;
     display: flex;
     justify-content: center;
     align-items: center;
 }

 .hidden {
     display: none !important;
 }

 /* Chat Container */
 .chat-container {
     width: 350px;
     height: 450px;
     border: 1px solid #ddd;
     border-radius: 10px;
     display: flex;
     flex-direction: column;
     position: fixed;
     bottom: 85px;
     right: 20px;
     background: #fff;
     box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
     z-index: 9999;
 }

 .chat-header {
     background: #18100f;
     color: white;
     padding: 10px;
     font-weight: bold;
     display: flex;
     justify-content: space-between;
     align-items: center;
     border-radius: 10px 10px 0 0;
 }

 .chat-header button {
     background: transparent;
     border: none;
     color: white;
     font-size: 20px;
     cursor: pointer;
 }

 .chat-messages {
     flex: 1;
     padding: 10px;
     font-size: 13px;
     overflow-y: auto;
     background: #f9f9f9;
 }

 .message-row {
     display: flex;
     align-items: flex-start;
     margin: 8px 0;
 }

 .message-avatar {
     width: 35px;
     height: 35px;
     justify-content: center;
     align-items: center;
     font-size: 18px;
     margin-right: 8px;
 }

 .message-content {
     max-width: 70%;
     padding: 10px;
     border-radius: 15px;
     word-wrap: break-word;
 }

 .user-message .message-content {
     background: #18100f;
     color: white;
     margin-left: auto;
     margin-right: 8px;
 }

 .bot-message .message-content {
     background: #e4e6eb;
     color: black;
 }

 .chat-input {
     display: flex;
     border-top: 1px solid #ddd;
     background-color: white;
 }

 .chat-input input {
     flex: 1;
     border: none;
     padding: 10px;
     font-size: 14px;
     outline: none;
 }

 .chat-input button {
     border: none;
     background: #18100f;
     color: white;
     padding: 10px 15px;
     cursor: pointer;
     border-radius: 10px;
 }

 .chat-input button:hover {
     background: #aa2030;
 }

 /* Typing dots */
 .typing {
     display: inline-block;
     position: relative;
     width: 30px;
     height: 10px;
 }

 .typing span {
     position: absolute;
     height: 6px;
     width: 6px;
     background: #999;
     border-radius: 50%;
     animation: blink 1.4s infinite both;
 }

 .typing span:nth-child(1) {
     left: 0;
     animation-delay: 0s;
 }

 .typing span:nth-child(2) {
     left: 10px;
     animation-delay: 0.2s;
 }

 .typing span:nth-child(3) {
     left: 20px;
     animation-delay: 0.4s;
 }

 @keyframes blink {
     0% {
         opacity: .2;
     }

     20% {
         opacity: 1;
     }

     100% {
         opacity: .2;
     }
 }

 .chat-form {
     padding: 12px;
     background: #f9f9f9;
     border-bottom: 1px solid #ddd;
     border-radius: 10px 10px 0 0;
 }

 .chat-form-title {
     font-size: 15px;
     font-weight: bold;
     color: #18100f;
     text-align: center;
 }

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

 .chat-form-group label {
     font-size: 12px;
     margin-bottom: 3px;
     /* label ile input arasını daralttık */
     color: #333;
 }

 .chat-form-group input,
 .chat-form-group textarea {
     padding: 6px 8px;
     margin-bottom: 10px;
     /* iç boşlukları küçülttük */
     border: 1px solid #ccc;
     border-radius: 6px;
     font-size: 13px;
     outline: none;
     transition: border 0.2s ease;
 }

 .chat-form-group input:focus,
 .chat-form-group textarea:focus {
     border-color: #18100f;
 }

 .chat-form-group textarea {
     resize: none;
     /* textarea yüksekliğini de küçülttük */
 }

 .chat-form-btn {
     width: 100%;
     background: #18100f;
     color: #fff;
     border: none;
     padding: 8px;
     /* buton yüksekliğini biraz azalttık */
     border-radius: 6px;
     font-size: 13px;
     cursor: pointer;
     transition: background 0.3s ease;
 }

 .chat-form-btn:hover {
     background: #aa2030;
 }

 .option-btn {
     background: #18100f;
     color: white;
     border: none;
     padding: 6px 10px;
     border-radius: 5px;
     margin-right: 6px;
     cursor: pointer;
     font-size: 12px;
     transition: background 0.3s;
 }

 .option-btn:hover {
     background: #aa2030;
 }

 input.error,
 textarea.error {
     border-color: #aa2030 !important;
     background-color: #fff5f5 !important;
 }

 .error-message {
    color: #aa2030;
    font-size: 11px;
    margin-top: 3px;
    display: none;
}

input.error,
textarea.error {
    border-color: #aa2030 !important;
    background-color: #fff5f5 !important;
}
