body {
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Hanken Grotesk", sans-serif;
}

.message {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.2rem;
}

.audio-message {
    display: none;
}

.user-message {
    background-color: rgba(7, 89, 133, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    align-self: flex-start;
}

.ai-message {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    color: black;
    align-self: flex-start;
}

.message-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1rem;
}

.recording {
    animation: pulse 1s infinite;
    background-color: #ef4444 !important;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.chat-window {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#chatContainer {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 80px;
}

.sticky-input {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
}

#messageInput {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: none;
    background-color: #ffffff00;
    outline: none;
    border-bottom: 1px solid;
    border-color: #ffffff00;
}

#messageInput:focus {
    border-bottom: 1px solid;
    border-color: rgb(192, 192, 192);
}

#sendButton, #voiceButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

#sendButton {
    background-color: rgba(7, 89, 133, 0.85);
}

#sendButton:hover {
    background-color: rgba(4, 61, 92, 0.85);
}

#voiceButton {
    background-color: #10b981;
    transition: background-color 0.2s, transform 0.2s;
}

#voiceButton:hover {
    background-color: #059669;
}

#voiceButton.recording {
    background-color: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 80%;
    position: relative;
}

.sender-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.sender-name {
    font-weight: 600;
    margin-right: 0.5rem;
}

.message-time {
    font-size: 0.875rem;
    opacity: 0.5;
}

.ai-message .message-content {
    background-color: #e5e7eb;
}

a {
    color: rgb(2 132 199) !important;
    text-decoration: underline !important;
}

#emailCaptureForm {
    max-width: 480px;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
  }
  
  .typing-dots span {
    width: 8px;
    height: 8px;
    background-color: #b4bfc5;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1s infinite ease-in-out;
  }
  
  .typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }