.contact-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ffcd00, #77450f);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.contact-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    filter: brightness(1.2);
}

.chat-container {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    max-height: 500px;
    background: rgba(60, 47, 47, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

body.dark .chat-container {
    background: rgba(26, 26, 26, 0.44);
}

.chat-header {
    padding: 10px;
    background: #ffcd00;
    color: #1a1a1a;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #1a1a1a;
}

.chat-body {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
}

.chat-message {
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    max-width: 80%;
}

.bot-message {
    background: rgba(255, 255, 255, 0.1);
    color: #f5e8c7;
}

.user-message {
    background: #ffcd00;
    color: #1a1a1a;
    margin-left: auto;
}

.chat-input {
    display: flex;
    padding: 5px;
}

.chat-input input {
    flex: 1;
    padding: 5px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.chat-input button {
    padding: 5px 10px;
    background: #ffcd00;
    color: #1a1a1a;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.chat-buttons {
    padding: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.chat-buttons button,
.chat-buttons a {
    padding: 10px;
    background: #41cc00;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.chat-buttons button:hover,
.chat-buttons a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: rgba(60, 47, 47, 0.9);
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

body.dark .modal-content {
    background: rgba(26, 26, 26, 0.9);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #ffcd00;
}

.modal-content label {
    display: block;
    margin: 10px 0 5px;
    color: #f5e8c7;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #f5e8c7;
    outline: none;
}

.modal-content textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-content button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #ffcd00, #77450f);
    color: #1a1a1a;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.3s;
}

.modal-content button:hover {
    transform: scale(1.05);
}

.modal-content button:disabled {
    background: #666;
    cursor: not-allowed;
}

.form-status {
    margin-top: 10px;
    text-align: center;
}

.form-status .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffcd00;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-status .success {
    color: #28a745;
}

.form-status .error {
    color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .contact-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
    }

    .chat-container {
        width: 90%;
        bottom: 70px;
        right: 5%;
    }

    .modal-content {
        width: 95%;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}