.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-left: 5px solid #28a745;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 20px auto;  /* centers horizontally */
    max-width: 400px;    /* optional: control max width */
    text-align: center;  /* center text inside */
}

.help-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--space-xl) 0;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.help-hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.help-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.help-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.help-content {
    background: white;
    border-radius: 12px;
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.help-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.help-card {
    background: white;
    border-radius: 12px;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.help-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.help-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.help-card p {
    color: var(--gray);
    margin-bottom: var(--space-md);
}

.faq-section {
    margin-bottom: var(--space-xl);
}

.faq-item {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.faq-question {
    background: var(--light);
    padding: var(--space-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question.active {
    background: var(--primary);
    color: white;
}

.faq-answer {
    padding: 0 var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: var(--space-md);
    max-height: 200px;
}

.faq-toggle {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(180deg);
}

.contact-form {
    background: var(--light);
    padding: var(--space-lg);
    border-radius: 12px;
    margin-bottom: var(--space-lg);
}

.contact-form h3 {
    margin-bottom: var(--space-md);
    color: var(--dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

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

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-toggle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2E5D50 0%, #3B7263 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(46, 93, 80, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(46, 93, 80, 0.4);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(46, 93, 80, 0.1);
}

.chat-window.active {
    display: flex;
    animation: slideUpChat 0.3s ease forwards;
}

@keyframes slideUpChat {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-header {
    background: linear-gradient(135deg, #2E5D50 0%, #3B7263 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(46, 93, 80, 0.2);
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f8f9fa;
}

.chat-message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    word-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeInMessage 0.3s ease;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    background: linear-gradient(135deg, #2E5D50 0%, #3B7263 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 8px rgba(46, 93, 80, 0.2);
}

.chat-message.bot {
    background: white;
    color: #2d3748;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-input {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: white;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.chat-input input:focus {
    border-color: #2E5D50;
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 93, 80, 0.1);
}

.chat-input input::placeholder {
    color: #a0aec0;
}

#chat-send {
    background: linear-gradient(135deg, #2E5D50 0%, #3B7263 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 93, 80, 0.25);
    flex-shrink: 0;
}

#chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 93, 80, 0.35);
}

#chat-send:active {
    transform: scale(0.98);
}

/* Ensure the send button icon is visible */
#chat-send i {
    color: white;
    font-size: 1rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.quick-action {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: var(--space-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--dark);
}

.quick-action:hover {
    background: var(--primary);
    color: white;
}

.quick-action i {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    display: block;
}

@media (max-width: 768px) {
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .chat-window {
        width: 300px;
        height: 400px;
    }
}