.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: var(--font-primary);
}

.chat-widget__toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: black;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.chat-widget__toggle:hover {
    transform: scale(1.05);
}

.chat-widget__toggle-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

.chat-widget__container {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 380px;
    height: 600px;
    background-color: white;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-widget__container.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.chat-widget__header {
    padding: 1.5rem;
    background-color: black;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-widget__avatar {
    width: 40px;
    height: 40px;
    border-radius: 0;
    object-fit: cover;
}

.chat-widget__title {
    flex: 1;
}

.chat-widget__name {
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 1px;
}

.chat-widget__status {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

.chat-widget__close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.chat-widget__close:hover {
    opacity: 1;
}

.chat-widget__messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    scroll-behavior: smooth;
}

.chat-message {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(10px);
    animation: messageAppear 0.3s ease forwards;
}

@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message--bot {
    color: var(--color-text);
}

.chat-message--user {
    color: var(--color-text);
    text-align: right;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: optionsAppear 0.3s ease forwards;
    animation-delay: 0.2s;
}

@keyframes optionsAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-option {
    background: none;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.75rem 0;
    text-align: left;
    font-size: 0.95rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateX(-10px);
    animation: optionAppear 0.3s ease forwards;
}

.chat-option:nth-child(1) { animation-delay: 0.1s; }
.chat-option:nth-child(2) { animation-delay: 0.2s; }
.chat-option:nth-child(3) { animation-delay: 0.3s; }
.chat-option:nth-child(4) { animation-delay: 0.4s; }
.chat-option:nth-child(5) { animation-delay: 0.5s; }

@keyframes optionAppear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: formAppear 0.3s ease forwards;
}

@keyframes formAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-widget__input-field {
    width: 100%;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    background: none;
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(10px);
    animation: inputAppear 0.3s ease forwards;
}

.chat-widget__input-field:nth-child(1) { animation-delay: 0.1s; }
.chat-widget__input-field:nth-child(2) { animation-delay: 0.2s; }
.chat-widget__input-field:nth-child(3) { animation-delay: 0.3s; }
.chat-widget__input-field:nth-child(4) { animation-delay: 0.4s; }
.chat-widget__input-field:nth-child(5) { animation-delay: 0.5s; }

@keyframes inputAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

textarea.chat-widget__input-field {
    min-height: 100px;
    resize: vertical;
}

.chat-widget__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background-color: black;
    color: white;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    animation: submitAppear 0.3s ease forwards;
    animation-delay: 0.6s;
}

@keyframes submitAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-widget__whatsapp-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.chat-section-title {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    opacity: 0;
    transform: translateY(10px);
    animation: titleAppear 0.3s ease forwards;
}

@keyframes titleAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .chat-widget__container {
        width: calc(100% - 2rem);
        height: calc(100vh - 6rem);
        right: 1rem;
        bottom: 5rem;
    }

    .chat-widget__messages {
        padding: 1.5rem;
    }
} 