/* ============================================================
   Retirement Hero Chat — Shortcode Styles
   Matches the Replit reference design exactly
   Uses high specificity to override Beaver Builder defaults
   ============================================================ */

#rhc-wrapper.rhc-wrapper {
    max-width: 700px !important;
    margin: 32px auto 0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* ── Chat Input Container ──────────────────────────────────── */
#rhc-wrapper .rhc-input-container {
    margin-bottom: 20px !important;
}

#rhc-wrapper .rhc-input-box {
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 4px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
    display: block !important;
}

#rhc-wrapper .rhc-input-box:focus-within {
    border-color: #1a9e60 !important;
    box-shadow: 0 4px 32px rgba(26, 158, 96, 0.1), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

#rhc-wrapper textarea.rhc-textarea {
    width: 100% !important;
    border: none !important;
    outline: none !important;
    resize: none !important;
    padding: 16px 60px 16px 20px !important;
    font-size: 16px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #1a1a2e !important;
    background: transparent !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    min-height: 80px !important;
    margin: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
}

#rhc-wrapper textarea.rhc-textarea::placeholder {
    color: #9ca3af !important;
}

#rhc-wrapper button.rhc-send-btn {
    position: absolute !important;
    right: 16px !important;
    bottom: 16px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background: #1a9e60 !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

#rhc-wrapper button.rhc-send-btn:hover {
    background: #158a52 !important;
    transform: scale(1.05) !important;
}

#rhc-wrapper button.rhc-send-btn:active {
    transform: scale(0.95) !important;
}

/* ── Suggestion Pills ──────────────────────────────────────── */
#rhc-wrapper .rhc-suggestions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 32px !important;
    padding: 0 !important;
}

#rhc-wrapper button.rhc-suggestion-pill {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 9999px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #1a1a2e !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
}

#rhc-wrapper button.rhc-suggestion-pill:hover {
    border-color: #1a9e60 !important;
    color: #1a9e60 !important;
    background: #f0faf5 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(26, 158, 96, 0.1) !important;
}

#rhc-wrapper button.rhc-suggestion-pill:active {
    transform: translateY(0) !important;
}

/* ── CTA Buttons ───────────────────────────────────────────── */
#rhc-wrapper .rhc-cta-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
}

#rhc-wrapper button.rhc-btn {
    padding: 16px 40px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    display: inline-block !important;
    text-align: center !important;
}

#rhc-wrapper button.rhc-btn-primary {
    background: #1a9e60 !important;
    color: #ffffff !important;
    border: 2px solid #1a9e60 !important;
}

#rhc-wrapper button.rhc-btn-primary:hover {
    background: #158a52 !important;
    border-color: #158a52 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(26, 158, 96, 0.3) !important;
}

#rhc-wrapper button.rhc-btn-secondary {
    background: #ffffff !important;
    color: #1a1a2e !important;
    border: 2px solid #e5e7eb !important;
}

#rhc-wrapper button.rhc-btn-secondary:hover {
    border-color: #1a9e60 !important;
    color: #1a9e60 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
}

#rhc-wrapper button.rhc-btn:active {
    transform: translateY(0) !important;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    #rhc-wrapper.rhc-wrapper {
        margin: 24px auto 0 !important;
        padding: 0 16px !important;
    }

    #rhc-wrapper textarea.rhc-textarea {
        font-size: 15px !important;
        padding: 14px 56px 14px 16px !important;
    }

    #rhc-wrapper button.rhc-suggestion-pill {
        font-size: 13px !important;
        padding: 8px 16px !important;
    }

    #rhc-wrapper button.rhc-btn {
        padding: 14px 28px !important;
        font-size: 16px !important;
        width: 100% !important;
    }

    #rhc-wrapper .rhc-cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }
}

@media (max-width: 480px) {
    #rhc-wrapper .rhc-suggestions {
        gap: 8px !important;
    }

    #rhc-wrapper button.rhc-suggestion-pill {
        font-size: 12px !important;
        padding: 7px 14px !important;
        white-space: normal !important;
        text-align: center !important;
    }
}
